MSFN Forum: Drive Mappings in WinPE - MSFN Forum

Jump to content



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

Drive Mappings in WinPE Rate Topic: -----

#1 User is offline   PanFriedPossum 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 30-January 04

  Posted 03 February 2004 - 03:02 PM

Hey all again.

Having switched to Bart's PEBuilder, (building WinPE based on XPSP1) I've run into another snag. Is there no way to script a net use command so that it runs automatically after the network configuration is assigned? It works fine if I do it manually but my scripting always fails...

Thanks all.


#2 User is offline   gosh 

  • gosh 2.0
  • Group: Patrons
  • Posts: 2,347
  • Joined: 03-October 03
  • OS:none specified
  • Country: Country Flag

Posted 03 February 2004 - 10:42 PM

well put the command in netstart.cmd

-gosh

#3 User is offline   likuidkewl 

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

Posted 03 February 2004 - 11:23 PM

I agree with Gosh , just write your batch file store it in:
- %yourdir%:\i386\system32\mybatfile.bat
-Edit startnet.cmd:
regsvr32 /s netcfgx.dll
     factory -minint
     netcfg -v -winpe
     net start dhcp
     net start nla
     a:\floppy.cmd
     mybatfile.bat

--Your batch will be executed last..

This is basically how I did it to make my PE have the option to install OS's also. :)

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