List Items in the Program Files Folder

Reports the path to the Program Files folder, and then lists any items found in that folder. For Windows NT 4.0 and Windows 98, this script requires Windows Script Host 5.1 and In

 
 
 
 
 
3 Star
(1)
Add to favorites
8/10/2009
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • &H2A for "Program Files (x86) folder
    1 Posts | Last post June 18, 2010
    • I found the constant for the "Program Files (x86)" folder. It is &H2A&. Tested on Windows Server 2008 R2 (64-bit) and on 32-bit Vista (where it returns the "Program Files" folder). On Windows 2000 and XP the resulting folder object is Nothing.
  • Works on Vista (32-bit) and Windows Server 2008 R2
    1 Posts | Last post June 18, 2010
    • The script was tested and works on 32-bit Vista and on Windows Server 2008 R2 (which is 64-bit). The question is, how do you determine the (x86) folder name, Program Files (x86)? Indeed, how do you tell for sure if the OS is 32 or 64-bit?