Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Moving profile folders (docs, pics, etc.) via command line?

04 Apr 2016   #1
Donny Bahama

W7 Ultimate, 32
 
 
Moving profile folders (docs, pics, etc.) via command line?

For a variety of reasons, I like moving profile folders to a separate drive. Currently, I do this using the procedure found here but that's GUI-based and I'd like to be able to automate it. Does anyone know if there's a shell command that can accomplish this task? I don't want to just robocopy it or move it - the beauty of the linked procedure is that the OS knows that the folders have been moved (and their new locations) so all the favorites links and shortcuts in an Explorer window, the desktop, etc. are all automatically and transparently updated.


My System SpecsSystem Spec
.
04 Apr 2016   #2
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

My System SpecsSystem Spec
04 Apr 2016   #3
Donny Bahama

W7 Ultimate, 32
 
 

Thanks for the response whs but you obviously didn't read my entire question...
Quote   Quote: Originally Posted by Donny Bahama View Post
I don't want to just robocopy it or move it - the beauty of the linked procedure is that the OS knows that the folders have been moved (and their new locations) so all the favorites links and shortcuts in an Explorer window, the desktop, etc. are all automatically and transparently updated.
I'm not a shell newb and am well aware of the move command, but it does not do the same thing as the procedure I linked.
My System SpecsSystem Spec
.

04 Apr 2016   #4
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

I see, fair enough.
My System SpecsSystem Spec
04 Apr 2016   #5
mjf

Windows 7x64 Home Premium SP1
 
 

Not sure if this is what you are wanting?
User Folders - Change Default Location
It may be what you are doing already.
My System SpecsSystem Spec
05 Apr 2016   #6
Alejandro85

Windows 7 Ultimate x64
 
 

An option could be replace the original folder with a junction that takes its place. That could be done entirely under command line, but must be done under a separate, administrator account. Good thing is that after the procedure is done, nothing else needs to be changed, since, every program will still use the old path, and the junction will do the redirection to the new path.

It would be something along the lines of:
Logoff the affected account.
Using a second, administrator account, move the whole profile folder to the new location.
Create a junction in the users folder, with the exact same name as the original profile had
Login in the affected account. Everything should work as before.
My System SpecsSystem Spec
Reply

 Moving profile folders (docs, pics, etc.) via command line?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
User Profile My Docs, Pics, favorites moved via Location Moveturnedbad
Hello.. I'll try to keep this as simple as I can. A server I work with has users on it. They each have a shared drive that is their own personal drive to store files on. (It's a folder on the server but appears as a Drive location under network locations say Z) So I was asked that the...
Customization
add folders in indexing options using registry or command line?
Hello, I'm trying to add folders in the indexing options by using either registry or command lines. This is for an unattended silent install. Any ideas ? Thanks.
Performance & Maintenance
Problem accessing folders from command line
I'm trying to use Winzip to back up the My Documents folder onto another drive. Win7 keeps saying it cannot find the path specified. Here are my command line options being run from a batch file: PATH=%PATH%;C:\_Bin (wzzip.exe is stored here) c: cd\users takeown /f George icacls George ...
General Discussion
Need help restoring Docs, Pics and Videos user folders
Hey, this is my first time on the forum so please excuse this issue is here and I couldn't find it in search. I installed a NAS drive and created default folders on it for Docs, Pics and Videos. 2 Weeks ago my NAS drive died on me so not having the directories is causing my PC to run pretty slow....
General Discussion
Network shows my computer with 11 folders each of docs, music, pics
I had some trouble a couple of weeks ago after an automatic Windows Update, which you guys solved after lengthy system restores and a couple of other ways. At the time I thought I noticed something lengthy being listed in the Network folder of the sidebar. Yesterday, I went into the folder and...
Network & Sharing
Open downloaded docs and pics on Win 7
I am trying to open documents that I receive from vendors that have photos and text on them. The system first brings up scanners and cameras page with nothing in it. The if I try to choose open with... I can not seem to find a program to open them. Do you have any ideas? Thanks Kris
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:40.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App