Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista installation & setup

Vista - How to move "Program Files" to another drive/partition

Reply
 
Old 12-20-2006   #1 (permalink)
Pud


 
 

How to move "Program Files" to another drive/partition

The way I have had my past several machines configured is to have a number of
different drives/partitions configured eg 'System' (C, 'Programs (P,
Files (F which contains 'My Documents', downloads, Setup and other files etc

On XP this was achieved by the brute force method - boot to 'Safe Mode',
move the 'Program Files' folder from C: to P: and then edit the registry,
changing every occurence of 'C:\Pro' to 'P:\Pro'. After this and rebooting
the machine worked fine and all new programs installed to the new drive.

I've recently downloaded 'Vista Ultimate' and have attempted to do the same
as formerly on XP as detailed, but after rebooting many programs will not
work, and running a Setup file from CD throws up an error.

Is there a means by which this can be achieved as it does make backup of the
System drive (C somewhat quicker.


My System SpecsSystem Spec
Old 12-20-2006   #2 (permalink)
Bill Frisbee


 
 

Re: How to move "Program Files" to another drive/partition

You can move the profiles via Local Policy via the MMC. It takes a little
work, but it does indeed work.


Bill F.



"Pud" <Pud@discussions.microsoft.com> wrote in message
news:AE458B70-D2F1-4CA9-9C68-A33341722057@microsoft.com...
> The way I have had my past several machines configured is to have a number
> of
> different drives/partitions configured eg 'System' (C, 'Programs (P,
> Files (F which contains 'My Documents', downloads, Setup and other files
> etc
>
> On XP this was achieved by the brute force method - boot to 'Safe Mode',
> move the 'Program Files' folder from C: to P: and then edit the registry,
> changing every occurence of 'C:\Pro' to 'P:\Pro'. After this and
> rebooting
> the machine worked fine and all new programs installed to the new drive.
>
> I've recently downloaded 'Vista Ultimate' and have attempted to do the
> same
> as formerly on XP as detailed, but after rebooting many programs will not
> work, and running a Setup file from CD throws up an error.
>
> Is there a means by which this can be achieved as it does make backup of
> the
> System drive (C somewhat quicker.
>


My System SpecsSystem Spec
Old 05-30-2008   #3 (permalink)
reinux


 
 

Re: How to move "Program Files" to another drive/partition


Hey people, I figured out a good way to do this.

Start the computer with the Vista installer CD and run the system
recovery tool -- specifically, the command prompt. Windows will have
some files in the Users and Program Files folders locked, so it has to
be done from another OS instance.

First we xcopy the Users and Program Files folders to the destination
drive; then we rename (or remove) the original folders and replace them
with 'junctions' (http://en.wikipedia.org/wiki/NTFS_junction_point)
pointing to the copied folders. For all intents and purposes, Vista
becomes oblivious to the fact that anything had moved. You don't have to
tinker with the registry.

I think this trick would probably work for Windows XP as well.

I've made a .bat script that does this; you can either use this or
punch everything in in the command prompt yourself. %1 is assumed to be
the source drive and %2 is assumed to be the destination drive. Be sure
to specify these parameters before you run the script.


Code:
--------------------

%2
cd \
mkdir "Program Files"
cd "Program Files"
%1
xcopy "%1\Program Files" %2 /s /h
rename "Program Files" "Program Files_"
mklink /j "Program Files" "%2\Program Files"

%2
cd \
mkdir "Users"
cd "Users"
%1
xcopy "%1\Users" %2 /s /h
rename "Users" "Users_"
mklink /j "Users" "%2\Users"

--------------------


Sample usage would be as follows:

Code:
--------------------
movefolders.bat c: b:
--------------------


Hope this helps,

Rei


--
reinux
Posted via http://www.vistaheads.com

My System SpecsSystem Spec
Old 05-30-2008   #4 (permalink)
Mick Murphy


 
 

Re: How to move "Program Files" to another drive/partition

WHY?
--
Mick Murphy - Qld - Australia


"reinux" wrote:
Quote:

>
> Hey people, I figured out a good way to do this.
>
> Start the computer with the Vista installer CD and run the system
> recovery tool -- specifically, the command prompt. Windows will have
> some files in the Users and Program Files folders locked, so it has to
> be done from another OS instance.
>
> First we xcopy the Users and Program Files folders to the destination
> drive; then we rename (or remove) the original folders and replace them
> with 'junctions' (http://en.wikipedia.org/wiki/NTFS_junction_point)
> pointing to the copied folders. For all intents and purposes, Vista
> becomes oblivious to the fact that anything had moved. You don't have to
> tinker with the registry.
>
> I think this trick would probably work for Windows XP as well.
>
> I've made a .bat script that does this; you can either use this or
> punch everything in in the command prompt yourself. %1 is assumed to be
> the source drive and %2 is assumed to be the destination drive. Be sure
> to specify these parameters before you run the script.
>
>
> Code:
> --------------------
>
> %2
> cd \
> mkdir "Program Files"
> cd "Program Files"
> %1
> xcopy "%1\Program Files" %2 /s /h
> rename "Program Files" "Program Files_"
> mklink /j "Program Files" "%2\Program Files"
>
> %2
> cd \
> mkdir "Users"
> cd "Users"
> %1
> xcopy "%1\Users" %2 /s /h
> rename "Users" "Users_"
> mklink /j "Users" "%2\Users"
>
> --------------------
>
>
> Sample usage would be as follows:
>
> Code:
> --------------------
> movefolders.bat c: b:
> --------------------
>
>
> Hope this helps,
>
> Rei
>
>
> --
> reinux
> Posted via http://www.vistaheads.com
>
>
My System SpecsSystem Spec
Old 05-30-2008   #5 (permalink)
reinux


 
 

Re: How to move "Program Files" to another drive/partition


Because I want my Program Files and User profiles on my software RAID.
Windows can't be installed to a software RAID.


--
reinux
Posted via http://www.vistaheads.com

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Delete or Move files within "Search" Vista General
Moving "My DOcuments" and remainder of "My" files to second drive Vista file management
"Windows cannot format the system partition on this drive" Vista installation & setup
Can't move or delete files "in use" Vista file management
Vista EULA -- "hardware partition" == "disk partition"??? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46