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: Can I move files from nested folders with a single command?

20 Jun 2015   #21
GokAy

Windows 7 Ultimate x64 SP1
 
 

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 System SpecsSystem Spec
.
21 Jun 2015   #22
badspell68

Windows 7
 
 

I tried everything so I had to write software to do the task.
My System SpecsSystem Spec
12 Jul 2015   #23
stsaerox

Windows 7 Home premium x64
 
 

Quote   Quote: Originally Posted by GokAy View Post
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
My System SpecsSystem Spec
.

Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How to copy multiple .wma files in different folders to single folder?
I need to 'extract' .wma files from within many different folders to a single, main folder. It looks like this: Main Folder>Artist>Album>Track (.wma) but there are many artists. I want to get all the tracks from within the two subfolders into a single folder. I've searched around online and haven't...
Music, Pictures & Video
I need to move thousands of files from one folder to new folders
I need to figure out a way to take thousands of .dwg,.docx,.xlsx, ect. files and organize them all into folders. I want to take file named 54321.xlsx and 54321.docx and put them in the folder 54321. Right now all my .docx files are in a folder, but I want them all seperated by seperate folders. ...
Software
Can't move folders with files, but can move files
I am attempting to move folders and files around, doing a little organization on my HDD. However if I attempt to move the loaded folder I get the error message " The action can't be completed because the folder or a file in it is open in another program." However I have no other programs open,...
General Discussion
Nested Application Folders Directory (many times)
I re-installed Windows 7 so that I could run a 64bit version instead of the 32bit version. When I searched for old user files in Windows.old so that I could restore old favorites and documents, I found that All Users\Application Data had Application Data nested underneath it and that repeated many...
General Discussion
Nested folders in Favorites in Navigation Pane
Hi, I was wondering if it was possible to make the folders nested in the Favorites of the Navigation Pane. AFAIK nested folders work in both Libraries and Computer of the Navigation Pane, however when moved to Favorites they are just a simple link. I've Googled a bit and all signs point to no...
General Discussion
automatically delete/move files to folders
hi all! is there something like a handy method to automatically move files depending on their extension to custom folders? (either by the time they are generated or at a specific date). ps: b.) i would be also interested in finding a method to have windows7 delete files in custom folders at a...
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 16:22.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App