Saved Bookmarks
| 1. |
Solve : urgent:check file type and move file to accurate folder type!!!? |
|
Answer» sorry make up confused. Please post the full path to your .tgz files and the full path to which you want them moved. Please post your entire script.echo on cls set sourcefolder=D:\FW_Purge_Archive\ set dirfile=%FW_Purge_1%\.tgz dir /b %SOURCEFOLDER%*.tgz> %dirfile% for /f "Delims=*" %%a in (%dirfile%) do ( set tgz=%%a && call :con ) goto end :con set DESTFOLDER=%SOURCEFOLDER%\zipfile\%tgz:~4,4%\%tgz:~4,4%-%tgz:~8,2%\ if not exist %SOURCEFOLDER%\%tgz:~4,4% md %SOURCEFOLDER%\%tgz:~4,4% if exist %SOURCEFOLDER% md %DESTFOLDER% move %SOURCEFOLDER%%tgz% %DESTFOLDER% > nul goto :eof :end pause Quote but one folder name 2008 always AUTOMATIC create by script in my path Quote echo on Look at the two emboldened and underlined command lines. |
|