G
Guest
I have been trying to configure my winxpe image to run a batch file upon
bootup but have not been able to. I have followed these steps:
1) Batch file, cfgip.bat, placed in root directory - just to make things
simple for now.
2) Added Extra Resources->RunOnce Request. RunOnce arguments = . RunOnce
FilePath = %11%\cmd.exe /c d:\cfgip.bat. RunOnce flag = 2. Also tried
FilePath = %24%\cfgip.bat, flag = 1, but the fbalog.txt file turned up an
error - "cfgip.bat error code 0x1.
The batch file simply changes the ip address to a static address:
netsh interface ip set address name="Local Area Connection" source=static
addr=192.168.10.2 255.255.255.0 192.168.10.1 1
netsh interface ip set dns name="Local Area Connection" static 192.168.10.1
primary
After allowing the image to come up, checking the ip address shows that it
has not been changed. If I then run the batch file, it does change. So, it is
as if the batch file is not actually being executed. I have tried RunOnce
flags 0-2 with no luck. Also tried starting the batch via cmd.exe - no luck.
I am sure it is something I am doing wrong, just not sure what. Note, that
the image does not have any logins, simply comes up to the desktop.
Any help appreciated.
Thanks,
Lloyd
bootup but have not been able to. I have followed these steps:
1) Batch file, cfgip.bat, placed in root directory - just to make things
simple for now.
2) Added Extra Resources->RunOnce Request. RunOnce arguments = . RunOnce
FilePath = %11%\cmd.exe /c d:\cfgip.bat. RunOnce flag = 2. Also tried
FilePath = %24%\cfgip.bat, flag = 1, but the fbalog.txt file turned up an
error - "cfgip.bat error code 0x1.
The batch file simply changes the ip address to a static address:
netsh interface ip set address name="Local Area Connection" source=static
addr=192.168.10.2 255.255.255.0 192.168.10.1 1
netsh interface ip set dns name="Local Area Connection" static 192.168.10.1
primary
After allowing the image to come up, checking the ip address shows that it
has not been changed. If I then run the batch file, it does change. So, it is
as if the batch file is not actually being executed. I have tried RunOnce
flags 0-2 with no luck. Also tried starting the batch via cmd.exe - no luck.
I am sure it is something I am doing wrong, just not sure what. Note, that
the image does not have any logins, simply comes up to the desktop.
Any help appreciated.
Thanks,
Lloyd