Questions tagged [robocopy]

ROBOCOPY.exe - "Robust File Copy" is a Windows command line file & directory replication utility published by Microsoft.

ROBOCOPY.exe

Robust File Copy is a Windows command line file & directory replication utility published by Microsoft.

It is included with Windows Vista & later versions & is available for download for older versions of Windows as part of the Windows Server 2003 Resource Kit Tools.

References:

1005 questions
0
votes
1 answer

Copying User Profile to Default Profile in Windows 7

I'm trying to find a way using, hopefully, a batch file to copy a modified user profile to the default user profile so that any user that logs in to the computer will adopt the profile setup. We're using a utility called pGina to call the default…
ThomasECH
  • 5
  • 1
  • 4
0
votes
2 answers

Batch Script: Robocopy exclude files not working

Here is how I am creating and using the exclude file list: :: Pull out parameters set srcDir=%1 set destDir=%2 :: Create exclude file Set excludeFile=%temp%\exclude_list.txt :: Populate exclude file Echo.%srcDir%\web.config >…
LynchDev
  • 793
  • 1
  • 12
  • 27
0
votes
1 answer

VBscript Robocopy Syntax

I am having a problem with what I think is a syntax error in VBscript regarding running robocopy. The following is a code snippet of what I now using to try to run robocopy: Dim Command2 sLocalDestinationPath =…
parchambeau
  • 1,141
  • 9
  • 34
  • 56
0
votes
1 answer

Using ROBOCOPY or Batch Script to Copy .doc File From Different Sub-Directories

I currently have this folder structure: C:\Quarter1\Folder100\Q1Review100.doc C:\Quarter1\Folder101\Q1Review101.doc ... C:\Quarter1\Folder120\Q1Review120.doc I also have another directory following the same structure except without the .doc…
DoloWizard
  • 25
  • 2
  • 9
0
votes
1 answer

Running one batch file silently and another normally, for USB auto backup

this is my first time posting here so I'll do my best. Basically I want to automatically backup my USB when it's plugged in, what I have set up at the moment is three files, backup.bat, silent backup.vbs, and backup watch.bat Backup.bat @echo…
JDogg1329
  • 1
  • 4
0
votes
1 answer

How to use Robocopy to copy a template folder structure to other folders?

I need to copy all the folders within one folder, to multiple other folders. The folder structure I want to copy from is here: x:\Customer1\Site1\ I want to copy all the folders within Site1, to all the folders within the following…
Naz
  • 525
  • 2
  • 9
  • 21
-1
votes
1 answer

copy one file into other folders

I am trying to copy one .txt file into a large amount of folders. To do this I am trying to use robocopy, but maybe there is a better way since I am only trying to copy one file (stress_strain_example.txt). To do this, I have the file I want to copy…
-1
votes
1 answer

Copy all files from source directory to another spot in Command Prompt

I am trying to create a batch file that auto moves some files and creates folders for an installation. I want to copy 4 .ocx files in the installer folder to C:\Windows\syswow64, when I try running robocopy "Folder\comctl32.ocx"…
-1
votes
1 answer

Environment variable + robocopy

I'm having trouble creating an environment variable to use with Robocopy. I would like to create one variable that detects the drive letter where CMD is open, to copy something from within a path of the disk drive itself to the folder where the…
Tyrone Hirt
  • 341
  • 1
  • 8
-1
votes
2 answers

XCOPY- How to copy Source Folder and all subfolder/files but INCLUDE THE SOURCE FOLDER

All Xcopy/robocopy documentation seems to gloss over copying the folder as if you are performing a right-click copy and paste. I want C:\Folder to copy to D:\Whatever but I want it to look like D:\Whatever\Folder I dont understand why all commands…
Clint Siebert
  • 11
  • 1
  • 1
-1
votes
1 answer

Copying source files and retaining folder structures including parent folders (but not files)

Say I have the following source and target. source: c:\temp\folder1\folder2 target: e:\backup I want to have an output as shown below. As you can see, it should only copy the files and its subdirectories from the above source path but it should…
-1
votes
1 answer

Can anyone assist with converting this output logfile into a csv? (robocopy)

This is the log file I would like to be converted to csv. ------------------------------------------------------------------------------ Total Copied Skipped Mismatch FAILED Extras Dirs : 4 2 4…
mike657
  • 11
  • 1
-1
votes
2 answers

Convert a robocopy log into a csv file

Is there a way to get the output logs of robocopy into a csv file? A column for size copied, date, source and destination? and if I run multiple robocopys have each copy have its own line. Thanks $Logfile = "C:\Powershell\robocopy.txt" Clear-Content…
tricky69
  • 19
  • 6
-1
votes
1 answer

Robocopy /mov logs all files from target folder?

I use robocopy in order to move files from the source to the target folder. That works well, I'm a bit surprised about the logging of robocopy - it lists all files of the target folder? Lets say we have two folders, an empty source folder and a…
Mike969
  • 39
  • 6
-1
votes
1 answer

assigenment branching condition is too high robocop offense

I have written and optimized the code like this def issues_json_for_v2(skip_avatar = false) @result_json ||= { results: [] } return if @result_set['issues'].empty? @result_set['total_entries'] = @result_set['meta']['total'] …