MSFN Forum: HFGUIRUNONCE & VBScripts - MSFN Forum

Jump to content



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

HFGUIRUNONCE & VBScripts HFGUIRUNONCE & VBScripts Rate Topic: -----

#1 User is offline   mserbin 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 27-October 09

Posted 28 October 2009 - 01:42 PM

I was curious as to whether it would be possible to take a VBScript that sets the Power Options for a user account and integrate this into the Windows setup process by including the .vbs into the HFGUIRUNONCE folder. I read some of the forum posts that indicated the acceptable file types that could go in this folder but VBScript was not mentioned. I thought it might work since batch files work and the vbscript itself takes no parameters or outside arguments as inputs. Please let me know if anyone thinks this might be possible.


#2 User is offline   tommyp 

  • MSFN Addict
  • Group: Developers
  • Posts: 1,664
  • Joined: 09-January 04
  • OS:none specified
  • Country: Country Flag

Posted 28 October 2009 - 04:14 PM

hfslip doesn't support vbscripts. You're best bet is to ask on the unattended forum.

#3 User is offline   Geej 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 571
  • Joined: 01-January 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 30 October 2009 - 07:13 AM

U can try to create a batch file with the following syntax:

Start "poweroption" /B wscript poweroption.vbs

Put poweroption.vbs & poweroption.cmd in HFGUIRUNONCE and see how it goes. (Not tested)

If it is not working, I believe it can be replace with a .reg file since it is kinda of registry tweak.

edit:
Did a small testing and the following works:

create and put a batch file (say poweroption.cmd) in HFGUIRUNONCE
wscript %windir%\poweroption.vbs
exit


Put poweroption.vbs in HFEXPERT\WIN folder

This post has been edited by Geej: 01 November 2009 - 04:57 PM


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