1.

Solve : Running a batch file from a different directory?

Answer»

Hello,

I have a BATCH file in the location C:\Program Files\IBM\WebSphere\AppServer\bin\configurewebserver_1.bat

and I WANT to run it from the location C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01


Any quick solution ? I tried googling this but GOT no luck

Thanks in advanceQuote from: kashifusmani on September 28, 2009, 08:01:21 AM

Hello,

I have a batch file in the location C:\Program Files\IBM\WebSphere\AppServer\bin\configurewebserver_1.bat

and I want to run it from the location C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01


Any quick solution ? I tried googling this but got no luck

Thanks in advance

Use the complete path to configurewebserver_1.bat
regardless which folder you are in:
C:\Program Files\IBM\WebSphere\AppServer\bin\configurewebserver_1.bat
or
copy configurewebserver_1.bat
to the new folder and then execute.


Discussion

No Comment Found