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
-2
votes
1 answer

Using Robocopy to list the big files in remote computer and save it as ServerName.CSV

I am trying to modify the below script to gather the list of the big files (first 32 on the server) remotely and then save it as the ServerName.CSV Try { $scriptBlock = { param ([string]$Path) [Math]::Round(((robocopy /L /E /NDL…
Senior Systems Engineer
  • 1,061
  • 2
  • 27
  • 63
-2
votes
2 answers

Modify Robocopy script to read number appended to files in folder, add one, and rename file that is being copied

So I have a very simple script set up on the task scheduler to move screenshots once a day from one folder to another. Thats working fine, but when the screenshots are taken, they are automatically give a name by Steam, e.g. "Screenshot.png",…
-2
votes
3 answers

Bat file get date variable file name

Every day many files are generated in directory on a user local computer, with this name structure: 8-05-21_09-05-2019_wolverine_WCALL1-010 hour_date_username_computername The problem: I need a batch file to run robocopy to copy files generated…
Douglas Filipe
  • 79
  • 1
  • 1
  • 5
-2
votes
1 answer

How to sync 2 directory content on 2 different computer during file change only

Lets say I have PC A(with folder C:\PCA) and PC B (with folder C:\PCB) first i do a WNetAddConnection2 to map PCB folder on PC A with S drive letter followed by a copy command cmd.exe /C copy S:*.* C:\PCA\ /Y but this will be just copy all files in…
-2
votes
1 answer

vbscript robocopy directories to different locations

I want to create a vbscript that uses robocopy, which is fine, but I was hoping you can provide me the most elegant way to do this... Copy all contents (Files and folders) of User Directory to this location EXCEPT copy AppData directory (Files and…
Rico
  • 7
  • 7
-2
votes
1 answer

How to hide the command robocopy window in C#?

How to hide the command robocopy window in C#? I tried so: startInfo.Arguments = "\"" + source + "\" " + "\"" + fold + "\"" + formats + " /s /R:1 /W:5 /MT:12 /njh /njs /ndl /nc /ns /np /nfl"; this code doesn't work - the command window opens. I…
-2
votes
1 answer

Sync files from Windows to Freebox(Linux) : prevent file recopy

I try to sync files from my Windows 7 computer to my Freebox (running Linux I used rsync from unix like terminal (MobaXterm) and xcopy directly from windows bash as well. In both case, whatever the set of option I used (inclusing operations on file…
RandomCoder
  • 6,606
  • 6
  • 22
  • 28
-2
votes
1 answer

How to copy a file from one drive to another drive using a robocopy command in a batch file script

How to copy a file from one drive to another drive using a robocopy in a batch file script. The source path and destination path should be given as input by the user including the file name. Thanks in advance. This is the code that i have tried. …
user3679072
  • 7
  • 1
  • 8
-3
votes
2 answers

how to rename files to sub directories using cmd

I have a several levels of folders and these folders contain *.csv files. I need to rename these files in next format: Source sub-directories with…
Key
  • 71
  • 1
  • 9
-3
votes
2 answers

recursively move through folders with a batch script and move files older than six days into a sub folder

So, I have a large file tree that is something like this \foo\foo1\foo\files\archive \foo\foo2\foo\files\archive \foo\foo3\foo\files\archive \foo\foo4\foo\files\archive my aim is to be able to loop through into each of the "\files" folders, and move…
Andy_P
  • 1
  • 1
-3
votes
2 answers

The number of moved files robocopy

I need to get the number of files which I moved with robocopy. I've tried a lot of methods, but I need exactly the number which I see in the cmd line after robocopy has finished the process and shows me the result. Copied files - x How can I get…
-3
votes
1 answer

How to create a windows batch file that combines all *NAD.TXT recursively within each directory?

I have a group of directories, and within those directories a have some files that end in *NAD.TXT. I need to combine, or copy together, all *NAD.TXT files within each directory to a file called COMBINED_NAD.TXT in each of the directories.…
USLG
  • 25
  • 4
-3
votes
1 answer

Simple Robocopy Move (noob)

I cant seem to get this Robocopy move to work. I hit the following command and I get an invalid parameter #3. E drive is external. C:\Users\PedroL>ROBOCOPY C:\Users\PedroL\Downloads\Directions Raws E:\Stuff /move /minage:20141021 ROBOCOPY :: …
-4
votes
2 answers

How to move files via batch file but if file already exist move elsewhere?

I am trying to move files to a particular folder (destination folder), but I do not want to overwrite any files. Instead, if the file already exist in that particular folder (destination folder), then move that file in another folder (overflow…
Rone Johnson
  • 1
  • 1
  • 1
-4
votes
1 answer

how to copy many directories to many destinations? (massive copy)

I need to copy 3 folders to many destination (600+), I need to parallelize it. For intance C:\Data1 → D:\Data1 C:\Data1 → D:\Data2 C:\Data1 → D:\Data3 D:\Data1 → \\\VM1\c$\Data1 D:\Data2 → \\\VM1\c$\Data2 D:\Data3 → …
Alban
  • 3,105
  • 5
  • 31
  • 46
1 2 3
66
67