Computing.Net > Forums > Programming > Advance Batch file help needed

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Advance Batch file help needed

Reply to Message Icon

Name: Overlord15
Date: October 12, 2008 at 16:52:46 Pacific
OS: Vista
CPU/Ram: 3GHz/3GB
Product: DYS
Comment:

i have 2 freeware programs called 7-zip and ecm
both work to compress my files really good but i need a batch program to ecm and 7-zip multiple files in different directories and sub dir, like i would have all my folders i want to zip in one folder and it would find and ecm/zip all the files in seperate zip files and would erase the files that got ecm/ziped the ecm program usage ecm File [File] ,7-zip.org if u wanna look at that more



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: October 13, 2008 at 03:57:56 Pacific
Reply:

@echo off
setLocal EnableDelayedExpansion

for /f "tokens=* delims= " %%a in (foldlist.txt) do (
pushd %%a
for /f "tokens=* delims= " %%i in ('dir/b') do (
ecm %%i
)
)


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 2
Name: Overlord15
Date: October 13, 2008 at 07:36:18 Pacific
Reply:

Most of that code works but it gives me this Batch.bat.ecm , Batch.bat.ecm.ecm, Batch.bat.ecm.ecm.ecm etc and so on, it just makes a whole bunch of files with .ecm and keeps adding more of the same and i have 85 other files in that same dir and it only does 3 of them the smallest files and does them over and over again


0

Response Number 3
Name: Mechanix2Go
Date: October 13, 2008 at 08:02:58 Pacific
Reply:

"Batch.bat.ecm , Batch.bat.ecm.ecm,"

Is that your output?


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 4
Name: Overlord15
Date: October 13, 2008 at 09:54:26 Pacific
Reply:

ya its the way the ext adds on, file.ext.ecm and it keeps compressing the file with no resault and keeps adding the .ecm then does it again over and over until i manually stop it


0

Response Number 5
Name: Mechanix2Go
Date: October 13, 2008 at 21:20:14 Pacific
Reply:

I have no idea.


=====================================
If at first you don't succeed, you're about average.

M2


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Advance Batch file help needed

advanced batch file help needed www.computing.net/answers/programming/advanced-batch-file-help-needed/8803.html

Batch file help needed www.computing.net/answers/programming/batch-file-help-needed/13589.html

DOS Batch File Help? www.computing.net/answers/programming/dos-batch-file-help/15613.html