Search found 6 matches
- 06 Nov 2007 05:37
- Forum: DOS Batch Forum
- Topic: how to get the return value on variable
- Replies: 10
- Views: 23801
Well spotted Jeb Thats what happens when you don't test..... /F needs to be included, but its not there so that tokens and delims work. /F identifies that the 'set' in the round brackets is not a filename to be interrogated, but either a file with a list of filenames in it, or a command that the ind...
- 05 Nov 2007 07:01
- Forum: DOS Batch Forum
- Topic: how to get the return value on variable
- Replies: 10
- Views: 23801
- 02 Nov 2007 10:03
- Forum: DOS Batch Forum
- Topic: how to get the return value on variable
- Replies: 10
- Views: 23801
- 29 Oct 2007 07:42
- Forum: DOS Batch Forum
- Topic: evaluate a program's output as a command
- Replies: 4
- Views: 11073
- 29 Oct 2007 05:01
- Forum: DOS Batch Forum
- Topic: evaluate a program's output as a command
- Replies: 4
- Views: 11073
- 19 Oct 2007 05:50
- Forum: DOS Batch Forum
- Topic: How was I called?
- Replies: 6
- Views: 13348
Command Line parameters
Use a command line parameter from the first batch and check for it in the second batch eg one batch calls another 1stbatch.bat contains IF blah blah blah DO START /wait 2ndbatch.bat called 2ndbatch.bat contains IF "%1"=="called" GOTO blah blah blah If 2ndbatch.bat is run on its o...