MSFN Forum: call WPI from cmdlines.txt? - MSFN Forum

Jump to content



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

call WPI from cmdlines.txt? Rate Topic: -----

#1 User is offline   a06lp 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 976
  • Joined: 19-August 04

Posted 06 January 2005 - 06:26 PM

Does anyone else call WPI from cmdlines.txt?

I'm pretty sure this is how to do it, and it allows running WPI off the CD too!

cmdlines.txt said:

[COMMANDS]
"REGEDIT /S ..\Tweaks\RegTweaks.reg"
"..\WPI\WPI.cmd"


WPI.cmd said:

cmdow @ /HID
@ECHO OFF

for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\WIN51 set CDROM=%%i:

regedit /S wpi.reg

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY%\001 /V 1 /D "%CDROM%\WPI\WPI.hta" /f

EXIT

This post has been edited by a06lp: 07 January 2005 - 08:18 AM



#2 User is offline   totoymola 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 944
  • Joined: 24-September 04

Posted 08 January 2005 - 06:40 AM

yes. it will work for sure. :)

#3 User is offline   mad_mattx 

  • Newbie
  • Group: Members
  • Posts: 48
  • Joined: 11-January 04

Posted 09 January 2005 - 03:41 AM

Hi, just wondered if the wpi.hta displayed properly on the 640x480 screen alright. Or if you might be able to change it anyway.

thanks

Matt

#4 User is offline   a06lp 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 976
  • Joined: 19-August 04

Posted 09 January 2005 - 10:34 AM

mad_mattx, on Jan 9 2005, 05:41 AM, said:

Hi, just wondered if the wpi.hta displayed properly on the 640x480 screen alright. Or if you might be able to change it anyway.

thanks

Matt

what in the world does this have to do with the topic?

#5 User is offline   mad_mattx 

  • Newbie
  • Group: Members
  • Posts: 48
  • Joined: 11-January 04

Posted 09 January 2005 - 04:38 PM

Quote

what in the world does this have to do with the topic?
Well when I run stuff in the cmdlines.txt, it normaly runs there and then which means what I thought was a 640x480 resolution by default. Am I not correct?

I tried to put the code in any how, but I could not get it to work so I can not confirm my comments...

cmdlines.txt

Quote

[COMMANDS]
"useraccounts.cmd"
"RunOnceExt.cmd"
"%systemdrive%\install\wpi\wpi.cmd"


wpi.cmd

Quote

cmdow @ /HID
@ECHO OFF

for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\WIN51 set CDROM=%%i:

regedit /S %systemdrive%\install\wpi\wpi.reg

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY%\001 /V 1 /D "%CDROM%\Software\7z413b.exe -y /q /r:n" /f
REG ADD %KEY%\001 /V 2 /D "%systemdrive%\install\wpi\WPI.hta" /f
REG ADD %KEY%\001 /V 3 /D "%cdrom%\Software\cleanup.cmd" /f

EXIT


#6 User is offline   a06lp 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 976
  • Joined: 19-August 04

Posted 09 January 2005 - 06:56 PM

no.
this code in cmdlines.txt is NOT running immediatly - it is adding it to RunOnceEx, which runs later (at first logon).
if your code said "start wpi.hta" then it would run. (if it is even possible for it to run at that point). but the code is ADDING IT TO RUNONCEEX, so it won't run till later.
for me, it runs at 1024x768, but that's because i set my resolution.

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