Can I move files from nested folders with a single command?

Open notepad and write the following (3 lines), save as - file type (all files) - save as Mozilla.bat

robocopy "%USERPROFILE%\AppData\Roaming\Mozilla" "S:\Users\%USERNAME%\AppData\Roaming\Mozilla" *.* /s /move
mklink /j "%USERPROFILE%\AppData\Roaming\Mozilla" "S:\Users\%USERNAME%\AppData\Roaming\Mozilla"
mklink /j "%USERPROFILE%\AppData\Local\Mozilla" "S:\Users\%USERNAME%\AppData\Local\Mozilla"

Try it and lets see if it works. There is nothing to move in appdata/local by the way?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
I tried everything so I had to write software to do the task.
 
Last edited:

My Computer My Computer

OS
Windows 7
Open notepad and write the following (3 lines), save as - file type (all files) - save as Mozilla.bat

robocopy "%USERPROFILE%\AppData\Roaming\Mozilla" "S:\Users\%USERNAME%\AppData\Roaming\Mozilla" *.* /s /move
mklink /j "%USERPROFILE%\AppData\Roaming\Mozilla" "S:\Users\%USERNAME%\AppData\Roaming\Mozilla"
mklink /j "%USERPROFILE%\AppData\Local\Mozilla" "S:\Users\%USERNAME%\AppData\Local\Mozilla"

Try it and lets see if it works. There is nothing to move in appdata/local by the way?

Forgot to check for answers. Something came up and I didn't get it started. Also I'm from Greece and building something is getting more and more difficult those days. Thanks for your help. I'll let you know if I start the tests.

Edit:I searching robocopy command and it seems like it doesn't copy subfolders. That won't work for sure in chrome which has subfolders. Maybe somehow I have to use this parameter:

c:\hope c:\hope2 /e

Read from site: Windows command line robocopy command help and information
 
Last edited:

My Computer My Computer

Computer Manufacturer/Model Number
Sony Vaio
OS
Windows 7 Home premium x64
CPU
Intel i5 520m at 2.4GHz(plus turbo mode at 2.9GHz)
Memory
4GB ddr3 1067
Graphics Card(s)
Nvidia 330m
Back
Top