Search found 4 matches
- 26 Aug 2014 05:41
- Forum: DOS Batch Forum
- Topic: Batch script to zip like files using wildcard
- Replies: 6
- Views: 3671
Re: Batch script to zip like files using wildcard
Thanks again. Here's the finish code if someone may need it. @echo off set datef=%date:~10,4%%date:~4,2% for /f "delims=" %%a in ('dir *~* /b /a-d ') do ( for /f "delims=~" %%b in ("%%a") do ( if not exist "ZipFiles\%%b~Sports_%datef%.zip" 7z.exe a "ZipF...
- 22 Aug 2014 09:36
- Forum: DOS Batch Forum
- Topic: Batch script to zip like files using wildcard
- Replies: 6
- Views: 3671
Re: Batch script to zip like files using wildcard
Thank you Foxidrive the code worked!
The output should be the identifier, name and year month so
Example:
id001~Sports_YYYYMM
id001~Sports_201408
The output should be the identifier, name and year month so
Example:
id001~Sports_YYYYMM
id001~Sports_201408
- 22 Aug 2014 08:49
- Forum: DOS Batch Forum
- Topic: Batch script to zip like files using wildcard
- Replies: 6
- Views: 3671
Re: Batch script to zip like files using wildcard
Yes every text file will start with the identifier and tilda character at the end and all files are in the same folder. Example: id001~testfilebasketball.txt id001~testfilebaseball.txt id001~testfilehockey.txt id001~testfilesoccer.txt id001~testfilefootball.txt id002~testfilebasketball.txt id002~tes...
- 22 Aug 2014 08:25
- Forum: DOS Batch Forum
- Topic: Batch script to zip like files using wildcard
- Replies: 6
- Views: 3671
Batch script to zip like files using wildcard
I'm new to the forum, I hope to learn a great deal from this community. I have a folder with 600 text files, I'm looking to zip together files with similar identifiers. So for instance I have 10 files with id001~ as the identifier, those 10 will be zipped in the same directory and so forth. So far I...