diginode Posted August 6, 2009 Share Posted August 6, 2009 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? Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted August 6, 2009 Share Posted August 6, 2009 I run several .cmd files in my wpi (Without modifications)Please ATTACH your config.js and the cmd file. Link to comment Share on other sites More sharing options...
AlBundy33 Posted August 6, 2009 Share Posted August 6, 2009 I think you cmd-file looks like this:setup.exe /your /argsRight?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 /argsor thisPUSHD "%~dp0"setup.exe /your /argsPOPDAl Link to comment Share on other sites More sharing options...
diginode Posted August 7, 2009 Author Share Posted August 7, 2009 I am attach the configure.js and one sample .cmd file.config.jsTuneup1.cmd Link to comment Share on other sites More sharing options...
mritter Posted August 7, 2009 Share Posted August 7, 2009 Try it without the {CMD} tag.Or do: cmd /c Tuneup1.cmdWhere did you find {CMD} and why did you use {CMD}? Link to comment Share on other sites More sharing options...
diginode Posted August 8, 2009 Author Share Posted August 8, 2009 Try it without the {CMD} tag.Or do: cmd /c Tuneup1.cmdWhere did you find {CMD} and why did you use {CMD}?to enable {CMD} need to change install.js flle.... OK my problem I solve out ok thanks for help.I use PUSD and popd in CMD file. Link to comment Share on other sites More sharing options...
mritter Posted August 9, 2009 Share Posted August 9, 2009 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now