- C:
- Program Files
FolderRisk: Caution
- Localized name
Program Files C:\Program Files
Default install folder for 64-bit desktop applications. Localized as "Programmes" in the French File Explorer.
What it’s for
C:\Program Files receives desktop (win32) applications by default, 64-bit ones on 64-bit Windows. The %ProgramFiles% variable points to it. Applications should get the path from SHGetKnownFolderPath instead of hard-coding it. The French File Explorer displays it as “Programmes”.
What it contains
- One subfolder per installed application (Microsoft Office, browsers, vendor tools) and the shared components (
Common Files). - Built-in Windows components, for example
Windows DefenderorWindows NT. WindowsApps, hidden and protected, which hosts Microsoft Store apps.Program Files (x86)only exists on 64-bit Windows. It receives 32-bit software, and some 64-bit software installs there too, depending on the vendor.
Risks and best practices
- Writing here requires administrator rights, so an application that stores user data here is poorly designed.
- Uninstall an application rather than deleting its folder by hand, so the Registry and services are cleaned up as well.
- Do not move the folder: registered paths (services, shortcuts, scheduled tasks) would stop working.
- To audit installed software, cross-check its contents with the list of registered programs.
Useful commands
# Variable value and list of subfolders$env:ProgramFilesGet-ChildItem $env:ProgramFiles | Select-Object Name
# 32-bit (WOW64) applications for comparisonGet-ChildItem ${env:ProgramFiles(x86)} | Select-Object Name