I am trying both WPI 7.5 and 7.7 to run a cmd file. It shows execution is success in log file but I write some command in .cmd file which is not executed properly. If I run manually run that .cmd file all command resides in it executed properly. pls help to run CMD file successfully.
I already change install.js file to run cmd command. pls help. is it bud?
Page 1 of 1
WPI 7.7 & 7.5 CMD problem Request help. for cmd file run
#2
Posted 06 August 2009 - 03:58 PM
I run several .cmd files in my wpi (Without modifications)
Please ATTACH your config.js and the cmd file.
Please ATTACH your config.js and the cmd file.
#3
Posted 06 August 2009 - 04:43 PM
I think you cmd-file looks like this:
Right?
The problem is, that the working-directory is "%WINDIR%\system32" - so your exe-files can not be found.
You can make all your path fully qualified by using %~dp0 (path to the script-directory).
So you can modify your script like this:
or this
Al
setup.exe /your /args
Right?
The problem is, that the working-directory is "%WINDIR%\system32" - so your exe-files can not be found.
You can make all your path fully qualified by using %~dp0 (path to the script-directory).
So you can modify your script like this:
"%~dp0setup.exe" /your /args
or this
PUSHD "%~dp0" setup.exe /your /args POPD
Al
#4
Posted 07 August 2009 - 05:46 AM
I am attach the configure.js and one sample .cmd file.
Attached File(s)
-
config.js (12.52K)
Number of downloads: 23 -
Tuneup1.cmd (303bytes)
Number of downloads: 19
#5
Posted 07 August 2009 - 09:35 AM
Try it without the {CMD} tag.
Or do: cmd /c Tuneup1.cmd
Where did you find {CMD} and why did you use {CMD}?
Or do: cmd /c Tuneup1.cmd
Where did you find {CMD} and why did you use {CMD}?
#6
Posted 07 August 2009 - 11:24 PM
#7
Posted 08 August 2009 - 08:22 PM
I know how to enable {CMD}, I wrote the code. Why are you turning it on? It is not needed, yet. It may some day.
Share this topic:
Page 1 of 1



Help
Back to top











