forach batch files in dir and run
Posted: 11 Sep 2010 03:22
hi,
im trying to loop trought a dir with batch files and run the batch files inside.
After the batch file is run it can be deleted or moved to a other folder
the script in the batch files that i want to loop trought look like this:
"C:\Program Files\EraHW\Aries\EraHW.exe" -a "T:\Programma\edr_files\36089l.txt"
I also have another problem with moving files from one folder to antoher:
xcopy "\\Bdfs2k3\ARIES_data\Programma\edr_files" "C:\Program Files\EraHW\Aries\Progetti\Aries1" /C /R
xcopy "\\Bdfs2k3\ARIES_data\Programma\m1_files" "C:\NEXT\DataPrg" /C /R
When the file already exist it ask to overwrite by typing Y or N, so my batch file stops
I dont want it to stop, so is there any way i can kill this message by setting the overwrite value to YES or NO as default?
Melvin
im trying to loop trought a dir with batch files and run the batch files inside.
After the batch file is run it can be deleted or moved to a other folder
the script in the batch files that i want to loop trought look like this:
"C:\Program Files\EraHW\Aries\EraHW.exe" -a "T:\Programma\edr_files\36089l.txt"
I also have another problem with moving files from one folder to antoher:
xcopy "\\Bdfs2k3\ARIES_data\Programma\edr_files" "C:\Program Files\EraHW\Aries\Progetti\Aries1" /C /R
xcopy "\\Bdfs2k3\ARIES_data\Programma\m1_files" "C:\NEXT\DataPrg" /C /R
When the file already exist it ask to overwrite by typing Y or N, so my batch file stops
I dont want it to stop, so is there any way i can kill this message by setting the overwrite value to YES or NO as default?
Melvin