help please with batch move files to folder
Posted: 27 May 2011 13:17
hi i have a problem
i want to move winrar part files files to the same filename(folder) (witout part1 part2 etc) i have a code but if this code is not working right see image
@echo off & setLocal EnableDELAYedeXpansion
for /f "tokens=* delims= " %%a in ('dir/b/a-d') do (
set F=%%a
set F=!F:~0,9!
rem if not exist "!F!" md "!F!"
move "%%a" "!F!"
)
the filenames can change all the time with less or more characters (4 to 40)
can you tell me 'the solution?
please help
thank you
i want to move winrar part files files to the same filename(folder) (witout part1 part2 etc) i have a code but if this code is not working right see image
@echo off & setLocal EnableDELAYedeXpansion
for /f "tokens=* delims= " %%a in ('dir/b/a-d') do (
set F=%%a
set F=!F:~0,9!
rem if not exist "!F!" md "!F!"
move "%%a" "!F!"
)
the filenames can change all the time with less or more characters (4 to 40)
can you tell me 'the solution?
please help
thank you