Welcome to MS Vista Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

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

 
   MS Vista Forums (Home) -> Setup & Installation RSS
Next:  Multiboot problem  
Author Message
Pud

External


Since: Dec 20, 2006
Posts: 1



(Msg. 1) Posted: Wed Dec 20, 2006 4:24 pm
Post subject: How to move "Program Files" to another drive/partition
Archived from groups: microsoft>public>windows>vista>installation_setup (more info?)

The way I have had my past several machines configured is to have a number of
different drives/partitions configured eg 'System' (CSmile, 'Programs (PSmile,
Files (FSmile 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 (CSmile somewhat quicker.

 >> Stay informed about: How to move ""Program Files"" to another drive/partition 
Back to top
Login to vote
Bill Frisbee

External


Since: Jan 02, 2007
Posts: 20



(Msg. 2) Posted: Wed Dec 20, 2006 8:07 pm
Post subject: Re: How to move "Program Files" to another drive/partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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


Bill F.



"Pud" wrote in message

> The way I have had my past several machines configured is to have a number
> of
> different drives/partitions configured eg 'System' (CSmile, 'Programs (PSmile,
> Files (FSmile 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 (CSmile somewhat quicker.
>

 >> Stay informed about: How to move ""Program Files"" to another drive/partition 
Back to top
Login to vote
reinux

External


Since: May 30, 2008
Posts: 1



(Msg. 3) Posted: Fri May 30, 2008 1:22 pm
Post subject: Re: How to move "Program Files" to another drive/partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
 >> Stay informed about: How to move ""Program Files"" to another drive/partition 
Back to top
Login to vote
Mick Murphy

External


Since: Jun 29, 2007
Posts: 701



(Msg. 4) Posted: Fri May 30, 2008 2:03 pm
Post subject: Re: How to move "Program Files" to another drive/partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

WHY?
--
Mick Murphy - Qld - Australia


"reinux" wrote:

>
> 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
>
>
 >> Stay informed about: How to move ""Program Files"" to another drive/partition 
Back to top
Login to vote
reinux

External


Since: May 30, 2008
Posts: 1



(Msg. 5) Posted: Fri May 30, 2008 10:32 pm
Post subject: Re: How to move "Program Files" to another drive/partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
 >> Stay informed about: How to move ""Program Files"" to another drive/partition 
Back to top
Login to vote
Gew

External


Since: May 03, 2010
Posts: 1



(Msg. 6) Posted: Sun May 02, 2010 9:25 pm
Post subject: Re: How to move "Program Files" to another drive/partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I have another theory on solving this issue.
I'd like to keep NTFS junction points out of the picture.
Therefor, my solution goes something like this.

Change the following registry key:
-HKEY LOCAL
MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProgramFilesDir\-

This is Windows main reference on %PROGRAMFILES%. Thing is, Windows
itself is locking many of the files within this folder, so you can't
re-target the whole folder right away. So, grab an
FreeDOS/MSDOS/Hiren/whatever boot disc, and then move (eg. -'ren
"C:\Program Files" "D:\Progs"'-)

Some people say you could just boot into fail-safe mode, and you'd be
able to rename the directory. I haven't tried it, so I wouldn't know. To
be honest, I havn't tried this method at all, it's all theory for now.
But it sounds like a plan. Just to be safe, after successfully booting
with the new main registry key, plus the changed directory, you could
search the registry in its whole for oldisch \Program files\ entries,
and pull a simple "Replace all" on that.

So, any thoughts, ideas?


--
Gew
Posted via http://www.vistaheads.com
 >> Stay informed about: How to move ""Program Files"" to another drive/partition 
Back to top
Login to vote
Badger

External


Since: Oct 23, 2009
Posts: 3



(Msg. 7) Posted: Mon May 03, 2010 9:42 am
Post subject: Re: How to move "Program Files" to another drive/partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Why try so hard to complicate a proven operating system?
All you are doing is slowing the system down.

"Gew" wrote in message

>
> I have another theory on solving this issue.
> I'd like to keep NTFS junction points out of the picture.
> Therefor, my solution goes something like this.
>
> Change the following registry key:
> -HKEY LOCAL
> MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProgramFilesDir\-
>
> This is Windows main reference on %PROGRAMFILES%. Thing is, Windows
> itself is locking many of the files within this folder, so you can't
> re-target the whole folder right away. So, grab an
> FreeDOS/MSDOS/Hiren/whatever boot disc, and then move (eg. -'ren
> "C:\Program Files" "D:\Progs"'-)
>
> Some people say you could just boot into fail-safe mode, and you'd be
> able to rename the directory. I haven't tried it, so I wouldn't know. To
> be honest, I havn't tried this method at all, it's all theory for now.
> But it sounds like a plan. Just to be safe, after successfully booting
> with the new main registry key, plus the changed directory, you could
> search the registry in its whole for oldisch \Program files\ entries,
> and pull a simple "Replace all" on that.
>
> So, any thoughts, ideas?
>
>
> --
> Gew
> Posted via http://www.vistaheads.com
>
 >> Stay informed about: How to move ""Program Files"" to another drive/partition 
Back to top
Login to vote
Gew

External


Since: May 04, 2010
Posts: 1



(Msg. 8) Posted: Tue May 04, 2010 10:26 am
Post subject: Re: How to move "Program Files" to another drive/partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Badger;1682193 Wrote:
> Why try so hard to complicate a proven operating system?
> All you are doing is slowing the system down.
>
> "Gew" wrote in message
>
> >
> > I have another theory on solving this issue.
> > I'd like to keep NTFS junction points out of the picture.
> > Therefor, my solution goes something like this.
> >
> > Change the following registry key:
> > -HKEY LOCAL
> > MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProgramFilesDir\-
> >
> > This is Windows main reference on %PROGRAMFILES%. Thing is, Windows
> > itself is locking many of the files within this folder, so you can't
> > re-target the whole folder right away. So, grab an
> > FreeDOS/MSDOS/Hiren/whatever boot disc, and then move (eg. -'ren
> > "C:\Program Files" "D:\Progs"'-)
> >
> > Some people say you could just boot into fail-safe mode, and you'd
> be
> > able to rename the directory. I haven't tried it, so I wouldn't know.
> To
> > be honest, I havn't tried this method at all, it's all theory for
> now.
> > But it sounds like a plan. Just to be safe, after successfully
> booting
> > with the new main registry key, plus the changed directory, you
> could
> > search the registry in its whole for oldisch \Program files\
> entries,
> > and pull a simple "Replace all" on that.
> >
> > So, any thoughts, ideas?
> >
> >
> > --
> > Gew
> > Posted via http://www.vistaheads.com
> >

How am I slowing Windoze down by changing this key? After all, the
regkey is for reference, huh? The idea is -- of course -- that I dislike
the 'long path' of default %PROGRAMFILES%. I'm using NTFS junction
points to have access through eg. C:\P\ for now, but moving the whole
kit and kaboodle sounds nifty to me!


--
Gew
Posted via http://www.vistaheads.com
 >> Stay informed about: How to move ""Program Files"" to another drive/partition 
Back to top
Login to vote
Curious

External


Since: Nov 07, 2009
Posts: 17



(Msg. 9) Posted: Tue May 04, 2010 10:26 am
Post subject: Re: How to move "Program Files" to another drive/partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I would be worried about all of the references to specific program files by
Icons and other links and by all the services and or registry entires that
are installed on the computer that do not use "%PROGRAMFILES%" when
referencing a specific program file.

"Gew" wrote in message

>
> Badger;1682193 Wrote:
>> Why try so hard to complicate a proven operating system?
>> All you are doing is slowing the system down.
>>
>> "Gew" wrote in message
>>
>> >
>> > I have another theory on solving this issue.
>> > I'd like to keep NTFS junction points out of the picture.
>> > Therefor, my solution goes something like this.
>> >
>> > Change the following registry key:
>> > -HKEY LOCAL
>> > MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProgramFilesDir\-
>> >
>> > This is Windows main reference on %PROGRAMFILES%. Thing is, Windows
>> > itself is locking many of the files within this folder, so you can't
>> > re-target the whole folder right away. So, grab an
>> > FreeDOS/MSDOS/Hiren/whatever boot disc, and then move (eg. -'ren
>> > "C:\Program Files" "D:\Progs"'-)
>> >
>> > Some people say you could just boot into fail-safe mode, and you'd
>> be
>> > able to rename the directory. I haven't tried it, so I wouldn't know.
>> To
>> > be honest, I havn't tried this method at all, it's all theory for
>> now.
>> > But it sounds like a plan. Just to be safe, after successfully
>> booting
>> > with the new main registry key, plus the changed directory, you
>> could
>> > search the registry in its whole for oldisch \Program files\
>> entries,
>> > and pull a simple "Replace all" on that.
>> >
>> > So, any thoughts, ideas?
>> >
>> >
>> > --
>> > Gew
>> > Posted via http://www.vistaheads.com
>> >
>
> How am I slowing Windoze down by changing this key? After all, the
> regkey is for reference, huh? The idea is -- of course -- that I dislike
> the 'long path' of default %PROGRAMFILES%. I'm using NTFS junction
> points to have access through eg. C:\P\ for now, but moving the whole
> kit and kaboodle sounds nifty to me!
>
>
> --
> Gew
> Posted via http://www.vistaheads.com
>
 >> Stay informed about: How to move ""Program Files"" to another drive/partition 
Back to top
Login to vote
Frankster

External


Since: May 05, 2010
Posts: 1



(Msg. 10) Posted: Wed May 05, 2010 9:55 am
Post subject: Re: How to move "Program Files" to another drive/partition [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> Some people say you could just boot into fail-safe mode, and you'd be
> able to rename the directory. I haven't tried it, so I wouldn't know. To
> be honest, I havn't tried this method at all, it's all theory for now.
> But it sounds like a plan.

I've been through this little hoop/exercise in the "olden days". Before I
was smarter (grin). Bottom line... forget it. You'll have ton more problems
than being short of disk space. Just cure the space issue and move on.

-Frank
 >> Stay informed about: How to move ""Program Files"" to another drive/partition 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Hard Drive Partition and Program Files? - I have 2 questions that I hope someone can help me with. I orginally had XP SP1 and my hard drive was split to a C: (15GB) Drive and a D: (135 GB) Drive. I got the Home Premium Upgrade, and since it needed a larger disk space to install I put it on D...

Move BCD store to other partition - Hello In advance I created 3 partitions and intended them to use in this way: partition 1: NTFS primary and active/boot (2GB) partition 2: NTFS primary (50GB) partition 3: NTFS primary (100GB) However, when I begin the installation of Windows Vista,....

Move the actual boot loader to different partition? - Hi, Is it possible to move the whole boot loader to a different partition? Here's the current setup: P1 Dell Utility p2 Vista boot loader and old o/s (was C drive of old o/s) p3 Data p4 Vista o/s Can I move the the whole boot loader to p4 and then se...

Move D Drive (Vista) to C Drive Position (Currently Win XP) - Hello group, I did a windows xp home install, to drive C clean install, I then did a clean install from the Windows XP install to drive D and installed Vista Ultimate there. I tried to remove the C drive, and try to just boot to drive D with Vista, ....

Move user accounts from drive C: to D: - How do I move the user accounts from the C: to the D: drive? I have Vista Premium, The C: is going to be reserved for main system programs and the D: drive will be used for the user files and games. Thanks Al
   MS Vista Forums (Home) -> Setup & Installation All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]