Projects > Poasm

Windows Preinstallation Environment detection

(1/1)

Vortex:
IsWinPE is a tiny tool to detect if the user is operating under Windows PE ( Preinstallation Environmet ) or Windows. The environment variable ERRORLEVEL is set to 1 if WinPE is detected. Otherwise, ERRORLEVEL is set to 0

test.bat :


--- Code: ---IsWinPE.exe

@IF %ERRORLEVEL% == 1 ( @echo Operating in WinPE environment

                      ) ELSE (
                              @echo Operating in Windows environment
                             )
--- End code ---

Vortex:
Here is the 64-bit version.

Navigation

[0] Message Index

Go to full version