/build/static/layout/Breadcrumb_cap_w.png

To run *.ins file through a batch file

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

Answers (2)

Posted by: Jamie B 15 years ago
Orange Senior Belt
0
Probably because your resetting the system path to C:

Remove this line:

SET PATH C:
Posted by: anonymous_9363 15 years ago
Red Belt
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ