Step 10Software Build Part 3 (Custom Scripts)
Creating AutoRun9MySlideshow.cmd
You could call this file the "heart" of the slideshow program, on the disc anyway.
In a nutshell, it does this following:
- Silently connect to local network
- Confirm network connection successful
- If successful, load slideshow batch file from remote share
- If network can't be found, load slideshow with locally stored photos
- Continually poll network share for remote reload, reboot, or shutdown commands (more on this later)
- Browse to the existing directory called "..\plugin\autorun\"
- Create a file named AutoRun9MySlideshow.cmd in this directory
(We'll edit and add to this file in the next step after our nextwork share is in place) - Go back into PEBuilder->Plugins, and find "Startup Group"
- Click Edit
- Add the line: AutoRun9MySlideshow.cmd=2,,1 under [SourceDisksFiles]
- This line of code tells it to include this file and copy it to the System32 directory
- Click File->Save, and then exit your text editor
- Click Done
The next piece is adding a couple files so that our network connection is automatically setup upon boot-up without user interaction.
- Browse to the existing directory called "..\plugin\penetcfg\"
- Rename autorun0penetcfg.cmd to autorun8penetcfg.cmd
- Edit autorun8penetcfg.cmd using a text editor
Change the source from:
@echo off
title Starting Network Support
call %SystemRoot%\system32\penetcfg.exe /UseProfile
rem call mstcp.cmd
exit
To:
@echo off
title Starting Network Support
call %SystemRoot%\system32\penetcfg.exe /UseProfile:penetcfg-auto.ini
rem call mstcp.cmd
exit
- Create a second file (also in ..\plugin\penetcfg\) called: PENETCFG-AUTO.INI
- Edit the file using your text editor, and add the following source:
Note that you will have to edit the above section to suite your network if you're not connecting to an open WiFi network (or physical cable connection). I opted to show a simple config, but if you're connecting to a secure network you'll have to add more parameters (search Google for PENETCFG-AUTO.INI).[General]
AutoStartNet=Yes
PromptForProfile=No
ShowGUI=No
[NetProfiles]
Dynamic IP Address (DHCP)= penetcfg-dhcp.ini
Static IP Address (Manual)= penetcfg-static.ini
Custom from A:\= a:\penetcfg.ini
Custom from C:\= c:\penetcfg.ini
[NetAdapter1]
EnableDHCP=Yes
UseStaticGateway=No
DefaultGateway=
UseStaticDNS=No
DNSServer=
UseStaticWINS=No
WINSServer=
[NetID]
Workgroup=WORKGROUP
ComputerName=PICFRAME
[FileSharing]
- Finally, go back into PEBuilder
- Click Plugins
- Select "PENETCFG: Automatically start PE Network configurator" and click Edit
- Edit the [SourceDisksFiles] section so it includes just these two lines:
autorun8penetcfg.cmd=2,,1
PENETCFG-AUTO.INI=2,,1
- Click File->Save, and then exit your text editor
- Click Done and Exit PE Builder for now (or conduct another quick Build Test before exiting)
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|













































