asked on
xcopy autocp.exe c:\cuptools
if if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
if errorlevel 0 goto error
copy nvspbind.exe /y /v c:\cuptools
:lowmemory
ECHO COPY FAILED due to low memory
goto :enderror
:abort
ECHO User aborted this!
goto :enderror
:error
ECHO Error
goto :enderror
:enderror
Echo quitting
pause
exit
Rem You need CHOICE to run this
CHOICE /N /C:YN Is this a Tablet? (Y, N)%1
REM - THE NEXT LINES ARE DIRECTING USER DEPENDING UPON INPUT
IF ERRORLEVEL ==Y GOTO Y
IF ERRORLEVEL ==N GOTO ONE
GOTO END
:Y
ECHO YOU HAVE PRESSED Y NO SYSPREP...BLAH
GOTO END
:N
ECHO YOU HAVE PRESSED N SYSPREP RUNNING...BLAH
C:\sysprep\sysprep -mini -reseal
GOTO END
:END
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
ASKER
Most development for the Microsoft platform is done utilizing the technologies supported by the.NET framework. Other development is done using Visual Basic for Applications (VBA) for programs like Access, Excel, Word and Outlook, with PowerShell for scripting, or with SQL for large databases.
TRUSTED BY
OK what you need then is something like this:
@Echo off
echo *** Copying AutoCP.EXE ***
copy autocp.exe /y /v c:\cuptools
if errorlevel 1 (set error=autocp.exe & goto error)
pause
echo *** Copying NVSPBIND.EXE ***
copy nvspbind.exe /y /v c:\cuptools
if errorlevel 1 (set error=nvspbind.exe & goto error)
pause
echo *** Running Install.bat ***
Call install.bat
if errorlevel 1 (set error=install.bat & goto error)
pause
echo *** Copying Sep ***
Xcopy /s sep c:\cuptools\sep /y
if errorlevel 1 (set error=sep & goto error)
pause
echo *** Copying vdefhub.zip ***
copy vdefhub.zip /y /v c:\cuptools\SEP
if errorlevel 1 (set error=vdefhub.zip & goto error)
pause
echo *** Copying IPSDef.zip ***
copy IPSDef.zip /y /v c:\cuptools\SEP
if errorlevel 1 (set error=IPSDef.zip & goto error)
pause
echo There were no errors during the process
pause
exit /b
:error
echo There was an error during the process for %error%
pause
exit /b