Hi all,

I have some ins files which will be run throught cmd.bat file.

I tried like this,

@echo off
SET PATH C:
CALL DB2CFIMP C:\Program files\BOXIReg\DATG.INS
CALL DB2CFIMP C:\Program files\BOXIReg\DAUG.INS

But it is not working........


And how to know whether my ins file executed or not?


Please help me[&o]
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Probably because your resetting the system path to C:

Remove this line:

SET PATH C:
Answered 10/03/2008 by: Jamie B
Orange Senior Belt

Please log in to comment
0
Tut, tut, Mr B. I expected better of you. Certainly the PATH shouldn't be messed about with unless there's a good reason but here's how to do FOR loops in batch:

@echo off
setlocal EnableDelayedExpansion
set fileList=DATG.INS DAUG.INS

FOR %%i IN (%fileList%) DO (
ECHO %%i
)
endlocal
Answered 10/03/2008 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity