MSFN Forum: autorunning a .bat file in WinPE 2.0 - MSFN Forum

Jump to content



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

autorunning a .bat file in WinPE 2.0 Rate Topic: -----

#1 User is offline   UT_Longhorn 

  • Group: Members
  • Posts: 3
  • Joined: 19-June 06

Posted 19 June 2006 - 11:30 AM

I'm booting WinPE 2.0 from a DVD right now. In the windows/system32 directory, i've added a file called begin.bat. I'm trying to get begin.bat to autorun after the DVD boots and the default winPE shell is loaded.

In winpeshl.ini, I've put the following code:

[LaunchApps]
begin.bat


Since i'm posting here, this obviously doesn't work. Any suggestions on what i can do?


#2 User is offline   mats 

  • Member
  • PipPip
  • Group: Members
  • Posts: 206
  • Joined: 10-May 05

Posted 20 June 2006 - 01:03 AM

Have you tried with

cmd /C begin.bat.

.bat isn't a true executable format. It needs cmd to handle it

#3 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 20 June 2006 - 05:06 AM

Try AppPath = %SYSTEMROOT%\SYSTEM32\Begin.bat

That is what works for me.

#4 User is offline   UT_Longhorn 

  • Group: Members
  • Posts: 3
  • Joined: 19-June 06

Posted 21 June 2006 - 08:11 AM

hmmmmmmm, neither of those worked for me

#5 User is offline   likuidkewl 

  • [Centos~]$
  • PipPipPipPipPip
  • Group: Members
  • Posts: 960
  • Joined: 16-September 03

Posted 21 June 2006 - 10:36 AM

View PostUT_Longhorn, on Jun 21 2006, 10:11 AM, said:

hmmmmmmm, neither of those worked for me

Post your begin.bat file.. That may shed some light on it.
Also try changing your winpeshl.ini to reflect something simple like cmd.exe or the like to ensure it is not another problem with your build.

#6 User is offline   techquiet 

  • Group: Members
  • Posts: 2
  • Joined: 21-June 06

Posted 21 June 2006 - 10:38 AM

Edit the Startnet.bat file in the winpe image.
Add the begin.bat file path into the Startnet.bat.
This will execute your begin.bat file

#7 User is offline   UT_Longhorn 

  • Group: Members
  • Posts: 3
  • Joined: 19-June 06

Posted 21 June 2006 - 11:34 AM

thanks techquiet...that worked perfectly!

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