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
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
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.
Summary: Does anyone know if there is a batch file option to execute all programs or files in a directory? If not, does anyone know any easy C++ code on how to do this? ...
Summary: I need a batch file to copy files from 1 location to another on a network daily. The only problem I have is I dont know the exact folder the files are in as they is generated randomly. The folder cont...
Summary: Hi, new to this forum, hoping someone can help me with a pretty simple batch file. I need to go through a directory and rename every folder in it, from the original name to original name.gif. Yes, the...