SetPF.EXE - Set "Program Files" locations version: 1.0x001 last updated: 30 December 2002 Description:This command line utility allow you to change the location of the "Program Files" directory. The reason it was created is to allow installing the SQL Server Client Tools (like SQL Enterprise Manager and SQL Query Analyzer etc.) in to a different location then "C:\Program Files\Microsoft SQL Server\80\Tools". If you do not want install everything on the C: drive, this utility allows you to simply change the location, to for example point to an other drive like "D:\Program Files" instead of "C:\Program Files" or you can change it to a different directory name like "D:\APPS" if you do not like long directory names with spaces in them.
Technically SetPF changes the location of the well-known location CSIDL_PROGRAM_FILES.
Usage: Get the currently set "Program Files" location: SetPF -g Set new "Program Files" location: SetPF -s "C:\Program Files" Examples:
Example 1: Get the currently set Program Files location: setpf -g
Result example 1: SetPF - Set Program Files location current CSIDL_PROGRAM_FILES = "C:\Program Files"
Example 2: Set new Program Files (drive) location: setpf -s "D:\Program Files"
Result example 2: SetPF - Set Program Files location old CSIDL_PROGRAM_FILES = "C:\Program Files" new CSIDL_PROGRAM_FILES = "D:\Program Files" Example 3: Set new Program Files location (when location does not exist) setpf -s "D:\APPS"
Result example 3: SetPF - Set Program Files location Error: Directory "D:\APPS" does not exist Installation:Simply copy SetPF.exe onto your machine. Download SetPF.zip Download SetPFsrc.zip (Visual C++ 7.0 project) *** |