Skip to main content

All Questions

Tagged with
2 votes
1 answer
78 views

Copy files except when destination modified in last x days

I think what I am trying to do is simple, but I can't get the robocopy settings right, as I am trying to copy files from src to dest, over-writing files in dest if they already exist, except if ...
Mark Schultz's user avatar
2 votes
1 answer
17k views

How rename files copied via Robocopy if it exist but with different modify date

I'm using Robocopy to copy files from a folder to another, i think my code will overwrite the file if it was existing on the destination folder and the timestamp was different, what im trying to do is ...
Islam Mohamed's user avatar
0 votes
1 answer
284 views

Receiving an Error when Copying file over

I have a script that i run against 1K systems. In the script I copy a file over to the systems' temp folder. 1 or 2 systems out of 1K systems return an error of "Invalid drive specification" when I ...
user3451049's user avatar
0 votes
0 answers
2k views

Accessing Remote Desktop and Copy file from Remote Desktop to Local System using xcopy?

I am using Windows OS and accessing Windows server through a remote desktop connection. I want to run a exe file on Remote Desktop and store the results in a .csv file. Now I want to copy that result ...
Vinodh Gowda's user avatar
0 votes
0 answers
634 views

Copy only some subdirectories

I have a large and deep directory structure and I want to copy only some specific subfolders. Like for example, copy only (minimatch notation) ./foo/bar/baz/**/* and ./bar/foo/**/* but exclude ...
bitbonk's user avatar
  • 456
0 votes
1 answer
3k views

xcopy files created this month in PowerShell

I wrote this code to copy files, what I need is a way to make it copy just the files created this month or created last 31 days? $a = "L:\EndMonths\" $a +=get-date -format MMMM xcopy "L:\28*.zip" $a /...
Mahmoud AL-saadi's user avatar