View Full Version : having problems with spaces in file/folder name with 'for' command

07-11-2012, 01:59 AM
hi all i'm trying to use the 'for' command along with 'move' to help move all .rar files from one folder to another but some files have spaces and don't get moved as the spaces break the script

i've tried adding " to the folder path but that didn't work any ideas?

this is what i have so far:

for /F %%f in ("F:\old\*.rar") do move "%%f" "F:\new\"