Search found 3 matches
- 30 Mar 2011 19:39
- Forum: DOS Batch Forum
- Topic: Looping and Zipping of files
- Replies: 3
- Views: 5115
Re: Looping and Zipping of files
Finally, I made it. But it will take a very long time if there are alot of folders in each folder and many files in each folder. Here's the code: @echo off echo.going to execute loop call:loop echo.returned from loop echo.&pause&goto:eof :loop FOR /R C:\Users\ayaka\Desktop\ZipTask\TestDir\ %...
- 30 Mar 2011 03:44
- Forum: DOS Batch Forum
- Topic: Looping and Zipping of files
- Replies: 3
- Views: 5115
Re: Looping and Zipping of files
I managed to create the batch file to do it. But I have no idea why the program stopped after the first zipped folder is made. Here's the new code: @ECHO off FOR /R C:\Users\ayaka\Desktop\ZipTask\TestingDirectory\ %%G IN (*) DO ( FOR /f "tokens=1-7 delims=\ " %%i in ('dir /b /s "%%G&q...
- 29 Mar 2011 23:11
- Forum: DOS Batch Forum
- Topic: Looping and Zipping of files
- Replies: 3
- Views: 5115
Looping and Zipping of files
Hi All, I am new to Dos Batch. My problem now is that I need to loop through a directory with many subfolders. I need to zip those subfolders (using 7zip) and place the zipped subfolders into another directory. Before zipping My main root is C:\Users\ayaka\Desktop\ZipTask\TestingDirectory Sample Fol...