@echo off echo Please wait, initialization might take a while... start /wait regsvr32 /s netcfgx.dll if ERRORLEVEL 0 goto go_on goto error :go_on start /b /wait wpeutil InitializeNetwork if ERRORLEVEL 0 goto go_on1 goto error :go_on1 cls echo Please wait, initialization might take a while... start /wait wpeinit if ERRORLEVEL 0 goto go_on2 goto error :go_on2 start /wait /B netcfg -v -winpe if ERRORLEVEL 0 goto success :error echo. echo Networking could not be started!!! pause goto finish :success rem Commented, information will be displayed in message box rem echo. rem echo. rem echo Networking has been started rem echo To map a network drive, you can either use the "Map Net Drive..." rem echo button in the BART CD Shell, or the "net use" command rem echo in the Command Line Tool. rem echo. :finish