MSFN Forum: 7.2.1 Problems with JScript TimeWaitForFile - MSFN Forum

Jump to content



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

7.2.1 Problems with JScript TimeWaitForFile Rate Topic: -----

#1 User is offline   Jackson0 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 02-December 08

Posted 08 December 2008 - 05:42 PM

Hi,

the comando TimeWaitForFile will not work.

Seem's like a "comma" problem .....exe",10) ,10) will be cut

Regards
Jackson

This post has been edited by Jackson0: 08 December 2008 - 06:23 PM



#2 User is offline   mritter 

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

Posted 08 December 2008 - 08:38 PM

You are correct. Forgot all about these. Use the new %comma% variable.......for now. I will automate this in next maintenance release.


{JSCRIPT}=TimedWaitForFile("C:\path\file"%comma%10)

{JSCRIPT}=TimedWaitForDelete("C:\path\file"%comma%10)

{JSCRIPT}=WriteRegKey("HKEY_CURRENT_USER\Software\WPI\blah"%comma%1%comma"REG_DWORD")


The simplest things can make the most headaches................

#3 User is offline   mritter 

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

Posted 18 December 2008 - 04:00 PM

I automated the %comma% placement/replacement. Should be automatic. Put back your commas and try it with the version I PM'ed you.

#4 User is offline   dolivas 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 01-July 06

Posted 03 January 2009 - 08:42 PM

mritter Happy New Years.....

I am also have a problem with this I find that it is replacing the second comma with %comma% but not the first. After I changed the first one to %comma% and ram WPI I keep getting this error the second one I add just to check your example to see if it worked? Any thoughts?

Saturday, January 03, 2009 9:37:00 PM
   Program: DriveSpace
   Unique ID: DRIVESPACE
   Order: 900027
   Category: Applications
   Saturday, January 03, 2009 9:37:02 PM - cmd1 Success (returned code 0): "D:\AutoImage\RVM\Plugins\WPI\Install\DriveSpace.exe"
   Saturday, January 03, 2009 9:37:02 PM - cmd2 *** Fail *** (returned code undefined): "JSCRIPT=WriteRegKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Doug\\DriveSpace\\Library_Icon",1,"REG_DWORD")"
   Saturday, January 03, 2009 9:37:02 PM - cmd3 *** Fail *** (returned code undefined): "JSCRIPT=WriteRegKey("HKEY_CURRENT_USER\\Software\\WPI\\WPI_Rocks",1,"REG_DWORD")"
   Saturday, January 03, 2009 9:37:03 PM - Finished installation.


#5 User is offline   dolivas 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 01-July 06

Posted 03 January 2009 - 08:58 PM

mritter never mind was user error I got it working with this.

{JSCRIPT}=WriteRegKey("HKEY_LOCAL_MACHINE\\SOFTWARE\\Doug\\DriveSpace\\Library_Icon",1%comma%"REG_DWORD")

The only weired thing is when I saved it and then ran WPI to test it it changed the second comma with the variable but left the first one a comma? Looks like I was not putting the JSCRIPT in brackets was causing my first problem.

Thanks
dolivas

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