Hide Comments

@EXETYPE[filename]: Returns the application type for an executable file:

 

Code

Application type

0

Unknown

1

DOS app

2

PIF file

3

Win16

4

Win 3.x VxD

5

OS/2

6

Win32 GUI

7

Win32 console

8

Posix

9

Windows x64 GUI

10

Windows x64 console

11

EFI

12

EFI boot driver

13

EFI runtime driver

14

EFI ROM

15

XBox

16

Windows boot application

 

Examples:

 

echo %@exetype["dc:\windows\explorer.exe"]

6

 

echo %@exetype["%comspec"]

7