geoffgin Posted May 10, 2012 Posted May 10, 2012 Hello All,I have 1 issue with existing batch file and another adding functionality to that batch file1. start /b /wait copy does not allow the following command to be invoked. It simply goes back to the prompt::start /b /wait copy \\server1\dumps\dump1_date.zip c:\windbgtemp\start /b /wait 7z e "c:\windbgtemp\*.zip" -oc:\windbgtempdel c:\windbgtemp\*.zipstart /b /wait sleep 10ren c:\windbgtemp\*.dmp dump.dmpstart /b /wait sleep 10start /b /wait windbg -Q -z C:\windbgtemp\dump.dmp -c ".logopen /t c:\windbgtemp\dbglog.txt;||;.time;.exr -1;.ecxr;kb1000;.logclose"2. I was hoping to feed a list into the batch with different unc/filenames so that i can simply change a list of path/filename and the batch will process itExamplein my list file \\server1\dumps\dump1_date.zip\\server1\dumps\dump5_date.zip\\server2\dumps\dump1_date.zipThe batch would some how replace the path/filename in the copy command, process then once completes the first move on to line 2...so on so fourth. I know if can be done with "for in do", but i can't seem to get it.Any help would be appreaciated
jaclaz Posted May 10, 2012 Posted May 10, 2012 1. start /b /wait copy does not allow the following command to be invoked. It simply goes back to the promptTry asking yourself this question:Is "copy" an internal or an external command? Then you will probably also understand why it desn't start. A general good "rule of the thumb" is to ALWAYS provide a "title" to the start, see:http://ss64.com/nt/start.htmlAbout your other question read first:http://www.robvanderwoude.com/ntfor.phphttp://www.robvanderwoude.com/ntfortokens.phpjaclaz
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now