Quantcast
Browsing latest articles
Browse All 2 View Live

Answer by Indrek for For loop in batch file not moving file

When comparing the file extensions, put the current file's extension in quotation marks as well, like so:for %%i in (D:\test\*.*) do if "%%~xi" == ".zip" move /Y "D:\test\%%~ni%%~xi""D:\test\complete"I...

View Article


For loop in batch file not moving file

I am looping through a particular directory and if a zip file or files exist they are moved to a secondary folder in that directory however the code below doesn't seem to work i.e. it doesn't move the...

View Article

Browsing latest articles
Browse All 2 View Live