Search found 7 matches

by TBQ
23 Feb 2015 22:27
Forum: DOS Batch Forum
Topic: Replace text in XML file - Problem with !
Replies: 4
Views: 7264

Re: Replace text in XML file - Problem with !

Thanks @Aacini. That took care of the !s. I had to play around with blank lines. I had to make sure the template.xml had at least a space on an otherwise blank line (otherwise it would be skipped), and to trim blanks and check for an empty line, I ended up with @ECHO Off setlocal DisableDelayedExpan...
by TBQ
23 Feb 2015 20:33
Forum: DOS Batch Forum
Topic: Replace text in XML file - Problem with !
Replies: 4
Views: 7264

Re: Replace text in XML file - Problem with !

I'd like to do this with batch only (no variation of other scripting), and I don't actually want to make the change in the original file. The actual task is creating an XML file instance that contains values specified as input to the batch file (as command line parameters, environment variables, val...
by TBQ
23 Feb 2015 18:15
Forum: DOS Batch Forum
Topic: Replace text in XML file - Problem with !
Replies: 4
Views: 7264

Replace text in XML file - Problem with !

I am writing a script to drive a 3rd party command line utility that requires an XML input/settings file for one of its commands. I need to replace a few simple values in the XML file each time it is run, and I'm building a temporary XML file to use based on a simple model settings file with the spe...
by TBQ
19 May 2014 17:51
Forum: DOS Batch Forum
Topic: Start and wait for parallel batch jobs
Replies: 9
Views: 17546

Re: Start and wait for parallel batch jobs

penpen - thanks for all your help! I don't expect I'll need to worry about the input - except any debugging "PAUSE"s will probably fail. I can probably live with that if I can't get you technique below to work. The TIMEOUT utility is part of the XP Resource kit (if that's still available)....
by TBQ
19 May 2014 16:17
Forum: DOS Batch Forum
Topic: Start and wait for parallel batch jobs
Replies: 9
Views: 17546

Re: Start and wait for parallel batch jobs

penpen - excellent! Simplified to my situation where one batch file launches others - and to avoid the garbled output, this seems to work wonders: Main batch file invokes three other batch files in parallel with three parameters specifying the number of seconds for three wait ("timeout") p...
by TBQ
19 May 2014 10:24
Forum: DOS Batch Forum
Topic: Start and wait for parallel batch jobs
Replies: 9
Views: 17546

Re: Start and wait for parallel batch jobs

Thanks! It looks like I have 4 workable methods to use: Dave - I like the fact that your solution can launch from a list of tasks - I may eventually get to the point of having a declarative batch setup. However, I have predefined parallel tracks, so some of the logic would need to be looked at for m...
by TBQ
15 May 2014 17:51
Forum: DOS Batch Forum
Topic: Start and wait for parallel batch jobs
Replies: 9
Views: 17546

Start and wait for parallel batch jobs

I'd like to use a batch job to start multiple other batch jobs that will run in parallel and wait for all of them to finish. In each case I know how many are parallel but each set of parallel jobs may have a different number of parallel jobs - it is a basic job-controller for our dev environment. I ...