Search found 6 matches

by bsod
06 Nov 2007 05:37
Forum: DOS Batch Forum
Topic: how to get the return value on variable
Replies: 10
Views: 22270

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...
by bsod
05 Nov 2007 07:01
Forum: DOS Batch Forum
Topic: how to get the return value on variable
Replies: 10
Views: 22270

ECHO %RESULT%
by bsod
02 Nov 2007 10:03
Forum: DOS Batch Forum
Topic: how to get the return value on variable
Replies: 10
Views: 22270

FOR "TOKENS=1-3,DELIMS= " %%A IN ('REG QUERY HKLM\Software\Oracle /v FORMS60') DO SET result=%%C
by bsod
29 Oct 2007 07:42
Forum: DOS Batch Forum
Topic: evaluate a program's output as a command
Replies: 4
Views: 10287

Sorry, Should have said, something like this,

start cmd /k yourbatch.bat

which sets environment variables then executes whatever it is you want to run.
by bsod
29 Oct 2007 05:01
Forum: DOS Batch Forum
Topic: evaluate a program's output as a command
Replies: 4
Views: 10287

If I understand it correctly, You want to be using 'START' , call the batch file that sets the environment, use /k to remain in command prompt,
JOB DONE
The environment variables will be lost when the window is closed.
by bsod
19 Oct 2007 05:50
Forum: DOS Batch Forum
Topic: How was I called?
Replies: 6
Views: 12401

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