locked
does fileEntries= Directory.getfiles(targetdirectory) list all/hidden files in all folders RRS feed

  • Question

  • I want to do a listing of system folders and check for executable apps

    does fileEntries= Directory.getfiles(targetdirectory) list all/hidden files/folders in all folders whether hidden or not and what executable extensions other than exe & bat are there

    Any help much appreciated

    Saturday, January 26, 2013 6:20 AM

Answers

All replies

  • According to the MS documentation the GetFiles method returns all files in a folder.  However, if this is important to your application you should test it for yourself.
    http://msdn.microsoft.com/en-us/library/07wt70x2(v=vs.100).aspx

    • Marked as answer by x38class Saturday, January 26, 2013 8:16 PM
    Saturday, January 26, 2013 6:54 AM
  • Yes, directory.getfiles(targetdirectory) list all/hidden files/ folders in all folders/subdirectories whether hidden or not. And below are some executable extension.

    MSI Windows Installer Package Windows
    MSP Windows Installer Patch Windows
    MST Windows Installer Setup Transform File Windows


    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful". CRMHUNT http://crmhunt.com

    • Proposed as answer by CRM HUNT Saturday, January 26, 2013 9:06 AM
    Saturday, January 26, 2013 9:06 AM
  • http://pcsupport.about.com/od/tipstricks/a/execfileext.htm

    List of Executable File Extensions

    An Incomplete List of Executable File Extensions

    .
    Extension Format Operating System(s)
    ACTION Automator Action Mac OS
    APK Application Android
    APP Executable Mac OS
    BAT Batch File Windows
    BIN Binary Executable Windows, Mac OS, Linux
    CMD Command Script Windows
    COM Command File Windows
    COMMAND Terminal Command Mac OS
    CPL Control Panel Extension Windows
    CSH C Shell Script Mac OS, Linux
    EXE Executable Windows
    GADGET Windows Gadget Windows
    INF<sup>1</sup> Setup Information File Windows
    INS Internet Communication Settings Windows
    INX InstallShield Compiled Script Windows
    IPA Application iOS
    ISU InstallShield Uninstaller Script Windows
    JOB Windows Task Scheduler Job File Windows
    JSE JScript Encoded File Windows
    KSH Unix Korn Shell Script Linux
    LNK File Shortcut Windows
    MSC Microsoft Common Console Document Windows
    MSI Windows Installer Package Windows
    MSP Windows Installer Patch Windows
    MST Windows Installer Setup Transform File Windows
    OSX Executable Mac OS
    OUT Executable Linux
    PAF Portable Application Installer File Windows
    PIF Program Information File Windows
    PRG Executable GEM
    PS1 Windows PowerShell Cmdlet Windows
    REG Registry Data File Windows
    RGS Registry Script Windows
    RUN Executable Linux
    SCT Windows Scriptlet Windows
    SHB Windows Document Shortcut Windows
    SHS Shell Scrap Object Windows
    U3P U3 Smart Application Windows
    VB VBScript File Windows
    VBE VBScript Encoded Script Windows
    VBS VBScript File Windows
    VBSCRIPT Visual Basic Script Windows
    WORKFLOW Automator Workflow Mac OS
    WS Windows Script Windows
    WSF Windows Script Windows


    You've taught me everything I know but not everything you know.

    Saturday, January 26, 2013 11:14 AM
  • Saturday, January 26, 2013 8:19 PM