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: Creating Batch File with Robo Copy

20 May 2012   #1

Win7 x 64
 
 
Creating Batch File with Robo Copy

Hi
I am currently running the following to supposedely create a directory IE V:\Backup Folder\Pictures\Backup 21-05-2012
robocopy /e "c:\users\jon\pictures" "v:\Backup Folder\Pictures\Backup %date:~-10,2%-%date:~-7,2%-%date:~-4,4%"

Evrything works fine except the backed up pictures folder is just named as V:\Backup Folder\Pictures\My Pictures

If for arguments sake I backup my outlook file using the above parameters I get what I want EG
V:\Backup Folder\Outlook\Backup 21-05-2012

It's as though there is something within the pictures folder? that is preventing the corrctly named folder from beign created?
The same happens when I try and backup Desktop and Documents folders
What am I missing?

My System SpecsSystem Spec
21 May 2012   #2

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64 Ubuntu 12.04 LTS Tri-Boot
 
 

Quote   Quote: Originally Posted by Big Tung View Post
Evrything works fine except the backed up pictures folder is just named as V:\Backup Folder\Pictures\My Pictures
Hi,

I can't quite understand where the \My Pictures is coming from. Do you mind posting a screen capture image of the folder arrangement, so I can see what it looks like?

regards,
Golden
My System SpecsSystem Spec
21 May 2012   #3

Win7 x 64
 
 

Not sure how the \My Pictures folder is was being generated other that to suggest that perhaps a system\hidden file created it no matter what folder I tried to create and backup to.

I have just this minute solved the equation with: -
robocopy /e "c:\users\jon\pictures" "v:\Backup Folder\Pictures\Backup %date:~-10,2%-%date:~-7,2%-%date:~-4,4%" /XA:SH

It now gives me exactly what I want i.e.
v:\Backup Folder\Pictures\Backup 21-05-2012

I would suggest the inclusion of /XA:SH, which I believe excludes system\hidden files from within the original My Pictures folder on C Drive is the answer and now allows me to create the folder that I want - not what the computer wants.

Thank you for having a look in any case.

Regards

Jon
My System SpecsSystem Spec
.


21 May 2012   #4

Microsoft Community Contributor Award Recipient

Windows 7 Ult. x64 Windows 8.1 x64 Ubuntu 12.04 LTS Tri-Boot
 
 

Hi,

Thats great news - thanks for posting back your solution.

Regards,
Golden
My System SpecsSystem Spec
Reply

 Creating Batch File with Robo Copy





Thread Tools



Similar help and support threads for2: Creating Batch File with Robo Copy
Thread Forum
Windows7 Batch File Copy Possible? Performance & Maintenance
How to copy a file from 1 pc to another pc in network using batch file General Discussion
Help required creating batch file to read .csv file General Discussion
Help creating a batch file to auto login to a website General Discussion
Help Needed Creating Batch File General Discussion
Help creating batch file General Discussion
Creating a welcoming batch file... Software

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 11:06 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33