Topic: Custom EXE To Run At Boot Time  (Read 9386 times)

Re: Custom EXE To Run At Boot Time
« Reply #20 on: November 01, 2012, 11:36:35 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
In Lancelot's additions. There is a new option PeNetwork_After.cmd which allows to write directly in PENetwork.ini

Code: [Select]
[Dynamic IP address]
CMDStart.CMD1=PeNetwork_After.cmd"
CMDStart.Start1=Normal"
CMDStart.Wait1=Yes"
and same for [Static IP address]

A default batch PeNetwork_After.cmd could be added, perhaps in this case in PENetwork_Include, if not already exist.
A good option for end user as long as PEnetwork editor is not used (does not seem to be your case  :wink:). Maybe some small things to add on this basis.

:cheers:
« Last Edit: November 01, 2012, 11:38:30 AM by ChrisR »

Re: Custom EXE To Run At Boot Time
« Reply #21 on: November 01, 2012, 11:43:26 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Still not sure what the new script changed?
ChrisR explained.... (when I was writing)

I wonder your test result of "IP thing without the timeout.exe" , which if succeed, can result with a last improvment


Hehe, today's free time going short now, well we will buy a new dress for work... and had some time waiting time pass....  :cool:

:ymca:

Re: Custom EXE To Run At Boot Time
« Reply #22 on: November 01, 2012, 11:45:42 AM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
Oh, ok. No PeNetwork_After.cmd in my folder, just my command. The new build is almost done and will know in a few if after IP change works. I like the idea of the PeNetwork_After.cmd  :thumbsup: I like doing stuff the hard way! lol

Re: Custom EXE To Run At Boot Time
« Reply #23 on: November 01, 2012, 11:52:55 AM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
DISM is injecting drivers now. 10 mins or less I will have an answer. By the way, what Index would I use for this PE wim to mount it with DISM? Index:2 doesn't work. I have to use another program to mount and then DISM to do the drivers and unmount

Re: Custom EXE To Run At Boot Time
« Reply #24 on: November 01, 2012, 11:59:17 AM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
My command did not run after IP change. The only way that is successful so far is the timeout way after PENetwork runs

Re: Custom EXE To Run At Boot Time
« Reply #25 on: November 01, 2012, 12:07:03 PM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
Chris answered my mount question on the other topic. Thanks, ChrisR

Re: Custom EXE To Run At Boot Time
« Reply #26 on: November 01, 2012, 12:16:03 PM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
Ok, I see the PENetwork cmd option that, Lancelot added. Are you saying I just add my command lines into this PeNetwork_After.cmd and it edits the ini without having to use Editor?

Re: Custom EXE To Run At Boot Time
« Reply #27 on: November 01, 2012, 12:18:59 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
I guess,
penetwork finishes its "network start" tasks... , and it takes windows some time to get services start running properly ... ( like normal windows ;))

himm, so there is always a way required, either timeout/sleep or like ChrisR batch above, or ....
or with something that detects network ready ;),

Quote
but at this point I have some notes:
Recently I restart using hamachi and logmein, and notice they also fail at startup properly,
--> network/internet ready, but they have not start immadiately, waiting its time-interval passing....
so maybe, there is no such good detect way, since if exists such utilities should be responding more quickly.
==> or , programmers also decide to workaround by checking with timeinterval :)

so we pinpoint problem, side by side with a newbie easy to use way,
and life goes  :smile:

 :ymca:

Re: Custom EXE To Run At Boot Time
« Reply #28 on: November 01, 2012, 12:24:39 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Ok, I see the PENetwork cmd option that, Lancelot added. Are you saying I just add my command lines into this PeNetwork_After.cmd and it edits the ini without having to use Editor?

Yes No,
Yes, if you never use editor before

No, if you use editor before,
( hence having Win7PESE\Components\penetwork.ini)
this option cancells itsself, assuming you are capable of using editor, and can do develop tasks without such interaction by penetwork plugin.

Still it would be helpful for your usage, having PeNetwork_After.cmd since after project updates no need make some settings on penetwork ;)

keep in mind, there are much more rookie users than you, yes way produced for them to get an easy start and for others who like to keep previous option through project updates.

:ymca:

Re: Custom EXE To Run At Boot Time
« Reply #29 on: November 01, 2012, 03:52:13 PM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
Code: [Select]
A tip founded in batch if needed:
For /l %%A in (1,1,5) do (<nul (set/p z=#) & >nul ping 127.0.0.1 -n 2

Thanks for this, ChrisR. I forgot about this command. I do allot of stuff in Vscript and I am rust on CMD stuff. Lancelot, makes sense to me. I got what I needed to get working, just with a 20 second timeout with script above but it works. Took my Asus at home 13 seconds to get IP and a new laptop here at work 5 seconds so I set it at 20 to be safe.

 

Powered by EzPortal