Topic: PeNetwork_After.cmd not running  (Read 4058 times)

PeNetwork_After.cmd not running
« on: June 13, 2013, 12:33:27 PM »

biatche

  • Jr. Chef
  • **
  • Date Registered: Jun 2013
  • Posts: 57
http://i.imgur.com/MdBMJNP.jpg

PeNetwork_After.cmd never executes. The file does exist in Target\.....
Although not directly related to this topic... It won't create a network drive either, or execute anything (after ip change / startup)
What's going on? What's wrong? The warning "Option is inactive if you use your own PENetwork.ini" is so vague, how do I know what's my own and what's ?not my own?
To clarify on my requirement, I have a batch script on a network share. After (getting an ip |or| mapping network drive (Guest username)) it has to execute this batch script. Right now, it won't execute anything.

Re: PeNetwork_After.cmd not running
« Reply #1 on: June 13, 2013, 04:33:12 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Did you use Start Editor to configure your profile ?
and did you put your PeNetwork.ini the right place %GlobalTemplates%\PENetwork\%ProjectName%\ini\PENetwork.ini or other, Written on the interface.

For your shared drive you must have in PeNetwork.ini
NetPath=xxx
NetDrv.Path1=xxx
NetDrv.User1=xxx
NetDrv.Pass1=xxx
NetDrv.Letter1=Z:

Once built, PeNetwork.ini is copied in 'Target\Win8PESE\Program Files\PENetwork' folder

The option PeNetwork_After.cmd is only for users who have not configured their own PeNetwork.ini (otherwise it must be set in the editor)
PeNetwork_After.cmd must be written before building in the folder defined "Include files in system32 from this directory:"

Re: PeNetwork_After.cmd not running
« Reply #2 on: June 13, 2013, 04:40:53 PM »

biatche

  • Jr. Chef
  • **
  • Date Registered: Jun 2013
  • Posts: 57
What must be done to make right?

Please see http://i.imgur.com/COwka7V.jpg

I did use start editor to make my own profile, and its in "W:\w8pese\Workbench\Common\PENetwork\Win8PESE\ini\PENetwork.ini"
Inside start editor,
PeNetwork_after.cmd does exist in the booted win8pe se... just that it doesn't get executed.

Re: PeNetwork_After.cmd not running
« Reply #3 on: June 13, 2013, 04:50:26 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Do you have in your penetwork.ini:
CMDStart.CMD1=PeNetwork_After.cmd
CMDStart.Start1=Normal
CMDStart.Wait1=Yes

Can you share penetwork.ini and PeNetwork_After.cmd (mediafire, zshare,...). It may be easier, it works here.
I have to leave now, I'll look tonight or tomorrow.

Re: PeNetwork_After.cmd not running
« Reply #4 on: June 13, 2013, 04:55:03 PM »

biatche

  • Jr. Chef
  • **
  • Date Registered: Jun 2013
  • Posts: 57
Code: [Select]
[custom]
Workgroup=WORKGROUP
NetAdapter1.UseDHCP=1
NetAdapter1.IP=
NetAdapter1.SM=
NetAdapter1.DG=
NetAdapter1.DNS=
NetAdapter1.WINS=
NetAdapter1.MAC=
NetAdapter1.Filter=
StartSharing=
ShareAll=
NetPath=
NetDrv.Path1=\\bbx\iw7pe$
NetDrv.User1=4673626F6F
NetDrv.Pass1=
NetDrv.Letter1=Z:
Desc.Line1=DHCP-irwin
CMDStart.CMD1=z:\_netcmd\startup.cmd
CMDStart.Start1=Hidden
CMDStart.Wait1=Yes

It doesn't add the network drive (fine in win7se_pe with very old winbuilder... since ive never updated it)... perhaps this needs fixing first?
The username should be Guest... but maybe taht's what its translated to here.

Re: PeNetwork_After.cmd not running
« Reply #5 on: June 13, 2013, 10:06:49 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
It doesn't add the network drive (fine in win7se_pe with very old winbuilder... since ive never updated it)... perhaps this needs fixing first?
yes, try to settle things independantly, the network drive of one part and PeNetwork_After on the other hand.
For info PeNetwork_After was not working with PeNetwork 0.56 Holger has fixed it in the following versions.
Try cmd after, in local first (X:\windows\system32) and with CMDStart.Start1=Normal
Perhaps creates a log echo ping xxx.xxx >X:\Windows\Temp\PeNetwork_After.log

Happy testing  :smile:

Re: PeNetwork_After.cmd not running
« Reply #6 on: June 14, 2013, 10:10:21 AM »

biatche

  • Jr. Chef
  • **
  • Date Registered: Jun 2013
  • Posts: 57
Code: [Select]
CMDStart.CMD2=%SystemRoot%\system32\ipchangetest.cmd
CMDStart.Start2=Normal
CMDStart.Wait2=Yes
CMDChange.CMD1=%SystemRoot%\system32\ipchangetest.cmd
CMDChange.Start1=Normal
CMDChange.Wait1=Yes

Code: [Select]
@echo off

echo %time% after startup
ping 192.168.3.1
pause

Neither triggers for either batch file

Re: PeNetwork_After.cmd not running
« Reply #7 on: June 14, 2013, 10:11:37 AM »

biatche

  • Jr. Chef
  • **
  • Date Registered: Jun 2013
  • Posts: 57
Hmm, no edit button,

what i meant was, neither batch file executes.

Re: PeNetwork_After.cmd not running
« Reply #8 on: June 14, 2013, 12:18:01 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Hmm, no edit button,

what i meant was, neither batch file executes.
spam protection, you need 10 post to edit, one more

Change 2 by 1
Code: [Select]
CMDStart.CMD1=%SystemRoot%\system32\ipchangetest.cmd
CMDStart.Start1=Normal
CMDStart.Wait1=Yes

and it works
ila_rendered

You have to play now  :thumbsup:

 

Powered by EzPortal