aGerman,
Thanks, that worked perfectly!
Search found 3 matches
- 20 May 2010 07:12
- Forum: DOS Batch Forum
- Topic: Help with long filenames in batch loop
- Replies: 6
- Views: 9254
- 19 May 2010 15:53
- Forum: DOS Batch Forum
- Topic: Help with long filenames in batch loop
- Replies: 6
- Views: 9254
Re: Help with long filenames in batch loop
Thanks for the reply, but when I do that: for %%a in ("weekly status update*.*") do zip "%%a" "%%~na.zip" I get: zip "weekly" "weekly.zip" zip warning: name not matched: weekly.zip If I leave off the double-quotes in the do command, I get: zip weekly...
- 19 May 2010 14:13
- Forum: DOS Batch Forum
- Topic: Help with long filenames in batch loop
- Replies: 6
- Views: 9254
Help with long filenames in batch loop
I want to create a batch file to zip several files into separate archive files. The files in question look like: weekly status update 20080229.xls weekly status update 20080321.xls etc. I want to preserve the long filename but just make it a .zip file my batch file reads: for /f %%a in ('dir /b &quo...