@echo off REM REM MAIN SLIDSHOW EXECUTION FILE REM AutoRun9MySlideShow.cmd REM Trick delay for 10 seconds while networking setup completes REM We need to do this otherwise the slideshow will attempt to start before REM the network connection has been established ping -n 11 127.0.0.1 >NUL REM EDIT THIS SECTION!!! REM Attempt to connect to network share net use p: \\shareserver\sharename /USER:servername\username password REM Check to see if network connection was successful. If not, use offline photos if exist == "P:\netcheck.txt" goto online goto offline :online ECHO NETWORK SHARE FOUND REM Now kill the BartPE Start Menu Button REM Note: For debugging, REM this out so you can run additional REM programs from within BartPE %SystemDrive%\Programs\pstools\pskill /accepteula nu2menu.exe P: call MySlideshow.cmd goto delay :offline ECHO NETWORK SHARE NOT FOUND! USING LOCALLY SAVED PHOTOS REM Now kill the BartPE Start Menu Button REM Note: For debugging, REM this out so you can run additional REM programs from within BartPE %SystemDrive%\Programs\pstools\pskill /accepteula nu2menu.exe cd %SystemDrive%\Programs\irfanview i_view32.exe /fs /slideshow=pictureshow.txt goto end :check REM At this point we should already be connected to the share if exist == "P:\reload.txt" goto reload if exist == "P:\reboot.txt" goto reboot if exist == "P:\shutdown.txt" goto shutdown goto delay :reload P: del /Q reload.txt %SystemDrive%\Programs\pstools\pskill /accepteula i_view32 %SystemDrive%\Programs\pstools\pskill /accepteula firefox call MySlideshow.cmd goto delay :reboot del /Q reboot.txt %SystemDrive%\i386\system32\nu2shell.exe -r :shutdown del /Q shutdown.txt %SystemDrive%\i386\system32\shutdown.cmd :delay REM Trick delay for 10 seconds ping -n 11 127.0.0.1 >NUL goto check :end exit