Jump to content

Recommended Posts

Posted

Hello All,

I have 1 issue with existing batch file and another adding functionality to that batch file

1. 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:\windbgtemp

del c:\windbgtemp\*.zip

start /b /wait sleep 10

ren c:\windbgtemp\*.dmp dump.dmp

start /b /wait sleep 10

start /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 it

Example

in my list file

\\server1\dumps\dump1_date.zip

\\server1\dumps\dump5_date.zip

\\server2\dumps\dump1_date.zip

The 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


Posted

1. start /b /wait copy does not allow the following command to be invoked. It simply goes back to the prompt

Try asking yourself this question:

Is "copy" an internal or an external command? :unsure:

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.html

About your other question read first:

http://www.robvanderwoude.com/ntfor.php

http://www.robvanderwoude.com/ntfortokens.php

jaclaz

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...