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: Robocopy wildcard woes

23 Mar 2016   #1
nikalis

windows 10 pro
 
 
Robocopy wildcard woes

Uploaded the 3 working files, basically it is a script that closes outlook and saves any drafts and will then backup user profile including .pst that would be otherwise locked. Exclude.txt should be exclude.rcj but its a non allowed filetype

My problem is when I try and use %username% in the source or destination in the job file (.RCJ) it will give me a message along the lines of

The file was sitting on my desktop (reason for the first part of directory)

invalid source destination C:/user/kriern/desktop/robocopy/user/%username%/

rather then just using the source i specify of user/%username%

This works when i implement it in a .bat instead of a job file why does it stop working?

Bat files have a 2000ish character limit and i do not want to run into issues when i get more and more specific with my exclusions


I would love to be able to just throw it on users computers without changing anything and procced to use windows scheduler to run it




Attached Files
File Type: bat Test.bat (97 Bytes, 0 views)
File Type: vbs CloseOL.vbs (412 Bytes, 0 views)
File Type: txt EXCLUDE.txt (1.8 KB, 0 views)
My System SpecsSystem Spec
.
Reply

 Robocopy wildcard woes




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Robocopy (help please)
Hi, I have 2 questions which I desperately need help with. Here's the question: 1. robocopy shoud Run in a separate terminal window and recheck file system changes every minute. 2. write a continous logfile that contains all detected file system changes including full pathnames of affected ...
General Discussion
Robocopy
I have created a robocopy.bat as below : robocopy C:\Users\Faust_000\Documents\Alfredo "F:\Backups Documents" /e /mir /z /np /tee /log:Alfredo_log.txt and I have created a Planned Activity into the Planning Utility to run at certain time every day. Now my question is : 1. if manually...
General Discussion
Robocopy how?
Need to back up data-drive regularly on drive F and send to data-drive G Robocopy has been mentioned as win7 built-in. I'm confused what is it & how to use it?
Backup and Restore
newb- Search/Replace wildcard question ...?
In search and replace in MS Word, or Excel, how do I replace this: (415e) with this: (415e) ie: simply search for a number within parenthesis and make it italicized?
Microsoft Office
I need some help with Robocopy GUI please.
Hello all, To save my life I could not get the Robocopy GUI to work. I have no problem using it with command line by dropping in to CMD. Tried the GUI it reported that the job is finished as soon as I click "RUN" but nothing copied. Thank you kindly, Nid
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 13:56.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App