Author Topic: Windows Preinstallation Environment detection  (Read 1048 times)

Vortex

  • Moderator
  • Member
  • *****
  • Posts: 1733
Windows Preinstallation Environment detection
« on: May 08, 2016, 07:38:49 PM »
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: [Select]
IsWinPE.exe

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

                      ) ELSE (
                              @echo Operating in Windows environment
                             )

Vortex

  • Moderator
  • Member
  • *****
  • Posts: 1733
Re: Windows Preinstallation Environment detection
« Reply #1 on: April 09, 2017, 11:46:21 PM »
Here is the 64-bit version.