+ Reply to Thread
Results 1 to 2 of 2

Thread: How to find whether file is an executable or not?

  1. #1

    How to find whether file is an executable or not?

    How to find whether file is an executable or not?

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Posts
    109
    You can is PathIsExe API for this.

    It returns TRUE if the file name extension is .cmd, .bat, .pif, .scf, .exe, .com, or .scr; otherwise, FALSE.

    Example:

    Code:
    void UsePathIsExe()
    {
    	bool bIsEeecutable	= PathIsExe(L"calc.exe") ;
    	bIsEeecutable		= PathIsExe(L"cards.dll") ;
    }

    Note:
    For more information: http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts