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

Donny Bahama

New member
Local time
8:33 AM
Messages
6
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 Computer My Computer

At a glance

W7 Ultimate, 32
OS
W7 Ultimate, 32

My Computer My Computer

At a glance

Vista, Windows7, Mint Mate, Zorin, Windows 8from 1.6GHz Duo to i7
Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000
Thanks for the response whs but you obviously didn't read my entire question...
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 Computer My Computer

At a glance

W7 Ultimate, 32
OS
W7 Ultimate, 32
I see, fair enough.
 

My Computer My Computer

At a glance

Vista, Windows7, Mint Mate, Zorin, Windows 8from 1.6GHz Duo to i7
Computer Manufacturer/Model Number
HP, Dell, Gateway, Toshiba - 4 laptops and 2 desktops
OS
Vista, Windows7, Mint Mate, Zorin, Windows 8
CPU
from 1.6GHz Duo to i7
Monitor(s) Displays
2x HP w2207
Hard Drives
5x HDD, 7x SSD, 12x Externals
Keyboard
with trackball - no mices
Mouse
Trackball mice
Internet Speed
DSL 6000

My Computer My Computer

At a glance

Windows 7x64 Home Premium SP1Intel i7 2600kG.Skill Ripjaws (DDR3-1600) 2x4GBNvidia GeForce GTS 450; Intel HD Graphics 300...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build
OS
Windows 7x64 Home Premium SP1
CPU
Intel i7 2600k
Motherboard
ASUS P8Z68 Deluxe
Memory
G.Skill Ripjaws (DDR3-1600) 2x4GB
Graphics Card(s)
Nvidia GeForce GTS 450; Intel HD Graphics 3000(GT2+)
Monitor(s) Displays
Dell Ultrasharp IPS panel U2311H, Samsung SyncMaster P2350
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro SSD 256GB, Samsung SSD 840 120GB, Seagates 1TB Barracuda ST31000528AS x2
PSU
Seasonic M12II 520W
Case
Lian Li Lancool PC-K60
Cooling
Case: 1x120mm, 3x140mm CPU: Hyper 212+
Keyboard
Logitech MK520 (wireless)
Mouse
Logitech MK520
Internet Speed
6-7 Mbps
Antivirus
Norton Security Premium, Malwarebytes on 2 (MSE on 3rd PC)
Browser
FireFox
Other Info
Audio: Logitech Z523 2.1
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.
 
Last edited by a moderator:

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Back
Top