MSFN Forum: WPI 7.7 & 7.5 CMD problem - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

WPI 7.7 & 7.5 CMD problem Request help. for cmd file run Rate Topic: -----

#1 User is offline   diginode 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 05-September 06
  • OS:XP Pro x86
  • Country: Country Flag

Posted 06 August 2009 - 12:39 PM

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?


#2 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,652
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

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.

#3 User is offline   AlBundy33 

  • Member
  • PipPip
  • Group: Members
  • Posts: 217
  • Joined: 02-January 05

Posted 06 August 2009 - 04:43 PM

I think you cmd-file looks like this:
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 User is offline   diginode 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 05-September 06
  • OS:XP Pro x86
  • Country: Country Flag

Posted 07 August 2009 - 05:46 AM

I am attach the configure.js and one sample .cmd file.

Attached File(s)



#5 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

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}?

#6 User is offline   diginode 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 05-September 06
  • OS:XP Pro x86
  • Country: Country Flag

Posted 07 August 2009 - 11:24 PM

View Postmritter, on Aug 7 2009, 08:35 PM, said:

Try it without the {CMD} tag.

Or do: cmd /c Tuneup1.cmd


Where 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.

#7 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

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
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy