Topic: WinBuilder - help with modifying startnet.cmd  (Read 1850 times)

WinBuilder - help with modifying startnet.cmd
« on: May 28, 2016, 10:50:18 PM »

mickh

  • Apprentice
  • *
  • Date Registered: May 2016
  • Posts: 2


Forum  -  I badly need a little help with modifying the startnet.cmd file that Winbuilder uses in it's build of the final Win7PESE ISO.I have assumed that the version of startnet.cmd in Target\Win7PESE\Windows\System32 is the one used in the final build and have repeatedly modified that version (using the edit command in 7z) to add two lines. After saving the modded file, both 7z and Windows Explorer show the modded version. However, after running WinBuilder, the final ISO does not contain this modified version, just the original, and the version in the folder above (Target\etc.) has reverted back to the original. I can't get the modifications to persist/remain or be used.

Questions:

1. How can I get the mods to startnet.cmd be permanent?

         AND/OR

2. How and with what tool do I edit the version of startnet.cmd that WinBuilder uses (where is the version that is used?) so that the modded version will appear in the final build and be run at WinPE startup?

The objective here is to run two app installation exe files after WinPE has started. Several threads in this forum have indicated that startnet.cmd should do do this.

Sorry but I am just not getting the idea here. Any available help with this will be profoundly appreciated.

Thanks. Mickh

Re: WinBuilder - help with modifying startnet.cmd
« Reply #1 on: May 30, 2016, 12:37:35 PM »

0scar

  • Code Baker
  • Chef
  • ***
  • Date Registered: Jan 2013
  • Posts: 309
Workaround: create a starnet.script in a folder under Projects folder and put together the modified starnet.cmd file

 starnet.script:
Code: [Select]
[Main]
Title= my own startnet.cmd
Type=script
Selected=True
Level=5

[Process]
FileCopy,"%ScriptDir%\startnet.cmd","%target_sys%"

Re: WinBuilder - help with modifying startnet.cmd
« Reply #2 on: May 30, 2016, 08:17:57 PM »

mickh

  • Apprentice
  • *
  • Date Registered: May 2016
  • Posts: 2
Oscar  -  thanks for the reply and the suggestion; I certainly can and will try that approach. However, several contributors to threads here have stated things like "I modified my startnet.cmd file" or "I added to my startnet.cmd", etc. I would really like to learn how to do that. Any help with accomplishing such edits/modifications (so they would be part of the next Win7PE boot process) would be much appreciated.

Thanks, Mickh

 

Powered by EzPortal