Pelles C forum

Assembly language => Assembly discussions => Topic started by: Vortex on November 04, 2023, 08:52:05 PM

Title: Retrieving the type of a file
Post by: Vortex on November 04, 2023, 08:52:05 PM
Hello,

A small tool to retrieve the type of a file :

Code: [Select]
GetFileType GetFileType.exe
Console application or batch file

GetFileType C:\WINDOWS\NOTEPAD.EXE
GUI Windows application

GetFileType Hello.com
MS-DOS executable or .COM file

GetFileType Test.bat
Console application or batch file

GetFileType GetFileType.asm
Not an executable file or an error condition