The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
64 views

XCOPY gets Access Denied and Sharing Violation result? ROBOCOPY fails [on hold]

After a malware scan WIN7 system is complaining that my COMCTL32.DLL's are corrupt or missing. I wanted to share my progress while I attempt to fix the issue and I hope others can help. I ...
1
vote
1answer
14 views

XCOPY /exclude reference a ext file that is not in the working directory

I have tried to reference the directory of the text file after /exclusions. What is wrong with my syntax? xcopy "J:\Common\NY SERTIFIKATBANK\18 Buoyancy Reports\Nav Lights\534515" "534515" /I /...
1
vote
1answer
18 views

Windows XCOPY results from FIND command

Windows 7 CMD I can retrieve a list of files by the following command dir /b | find "TENDER_NUM 2". I'm trying to copy all the files that were returned by find into another folder. I've tried: for /...
-2
votes
1answer
23 views

how to move files from sub-folder to folder

I've got: C:/PICS/ASF/photos/files (.jpg) C:/PICS/DFS/photos/files (.jpg) C:/PICS/HGD/photos/files (.jpg) C:/PICS/FTG/photos/files (.jpg) .....etc In every "photos" directory is more than one ....
0
votes
0answers
12 views

Obtain xCopy specific file denied

I am using xCopy to move over files from one server to another. Doing so is fine, but there are some folders that have permissions revoked from the domain admin and instead only have permissions ...
1
vote
2answers
40 views

Xcopy: why /x (System Access Control List information)

I can't get more info about the /x switch than: This option copies file audit settings and System Access Control List (SACL) information. You imply /o when you use the /x option. I am trying ...
1
vote
1answer
43 views

Windows Batch to copy one file to multiple directories

I have a rather simple copy and paste batch job. That checks for a more recent file and overwrites it. I was trying to take a single COPY and copy it to a second directory. In simple, this Batch is ...
1
vote
1answer
81 views

Possible to copy files and directory structure but don't copy file contents (i.e. 0 byte file size)?

I'm wondering if it's possible to copy files and directory structure, but don't actually copy file contents. I want to copy over file names and extensions but have each individual file be 0 bytes in ...
0
votes
1answer
147 views

How to copy a directory on Windows, preserving timestamps of all directories being copied

I want to copy a directory tree while preserving timestamps of any file and directory that is being copied. The source directory is on a data DVD (ISO-9660 filesystem). I am copying to an NTFS ...
0
votes
0answers
20 views

how to copy a folder and its contents to another folder using xcopy?

So I've been trying to copy a folder to another folder. But whatever I do, it only copies the file(s) inside the source folder. I've looked at numerous examples like: ss64 example microsoft example ...
0
votes
1answer
30 views

Trouble in using Xcopy to copy to a network path in batch file

Code: ::CopyTest.bat @ECHO echo 123>>%temp%\MBDocuments.txt xcopy "C:\Users\Foo\Documents\" pushd "X:\foo team\Team Members\foo\Documents" del /q %temp%\MBDocuments.txt pause So I have ...
1
vote
1answer
39 views

How to back up only newer files

I wrote years ago a script using XCOPY with parameters /E /D /Y /V /R /H that allowed me to back up newer files to my dropbox having always everything updated. Since I upgraded to Windows 7 and 10 ...
1
vote
1answer
49 views

Windows cmd copy directories and content recursively if the files do not exist

The question fits in the title: I want to copy from local storage to a network storage directories and thier contant, but only the new or updated files with no prompt. My idea would be to use xcopy ...
0
votes
1answer
142 views

Move files of particular pattern in batch to another folder [closed]

I am trying to write a Windows batch file with commands for moving files with a pattern the file name from one folder to another folder, and others to others. For example: vision.xls should go to a ...
0
votes
0answers
25 views

Getting exit code from xcopy when it's embedded in cmd.exe

I'm using xcopy this way: p = New Process psi = p.StartInfo AddHandler p.ErrorDataReceived, AddressOf NetErrorDataHandler psi.Arguments = "/C "xcopy *SOURCE* *TARGET*" psi.FileName = "cmd.exe" ...
1
vote
1answer
727 views

Copy from one location to another using batch script based on modified date and also newly added files in source

How to copy files which are modified and the new ones that are added in the source location to the target location using a batch script? The existing files that are already present in the target ...
1
vote
1answer
657 views

Mapped drive is not accessible, to copy files, using Task Scheduler

On my Windows Server 2008 R2 machine, a batch file is scheduled to run using Task Scheduler. For some reason, only a portion of the commands in the batch file are executed; Some MS DOS commands are ...
0
votes
1answer
53 views

XCopy Skip Identical Files Only

Is it possible to use xcopy to copy files and only overwrite existing files that differ in size? I'd like to skip overwriting identical files to speed up my copy process. I don't see anything in the ...
0
votes
0answers
80 views

Copy same root directory with files to multiple wildcard directories including files

I am trying to copy one folder and its contents to multiple user directories which vary depending on the username. The directory under each user will remain constant. Here is an example of what I am ...
0
votes
1answer
68 views

xcopy works, but doesn't

Really odd behavoir on xcopy. I have a batch file as follows "<=create a backup of a service - works fine, backup files created correctly=>" For /f "tokens=1-4 delims=/ " %%a in ('date /t') do (...
1
vote
2answers
111 views

Copying files from somewhere within a directory tree to a folder

I have a mirror of a large website that I need to reorganize, most of the images and files I've been able to programmatically move and relink up; however, there are a few (few is a relative term, we'...
4
votes
1answer
699 views

XCOPY can't read /EXCLUDE file

I'm trying to write a build script batch file for an Unreal Tournament 2004 mod I want to publish the source code for. This script contains a call to XCOPY with the /EXCLUDE parameter as follows: ...
0
votes
1answer
269 views

Batch file to only copy new files from source to destination [closed]

I am trying to create a batch file that copies only new files to another folder. I have .png files that come in through FTP at various times throughout the day. So I am looking for a .bat that I can ...
0
votes
1answer
241 views

How to simply xcopy a folder into another keeping the structure?

Suppose I have the following structure and the current working directory is root: root - sub1 file1.xml file2.xml - sub2 file3.css - _target {is an ...
4
votes
0answers
69 views

Unable to Copy from E partition

I am stuck in weird issue. I moved my images from my phone to a folder in Windows 8's Partition E:/. Now i am trying to move back to my Phone/Flash Drive/Other Partition/Other Machine(via Sharing ...
2
votes
1answer
92 views

Batch File XCOPY Invalid number of parameters

I'm trying to create a backup batch file, it's been a number of years since I last did one and I'm having a bit of trouble. I am creating a folder in one location with the date and time in the folder ...
-1
votes
1answer
143 views

Xcopy - Invalid number of parameters

I'm trying to create a bat file that will relocate some ECF Files from a folder to a new folder I have successfully set up a XCopy bat file for other documents (.doc, .ppt) etc and i've copied the ...
0
votes
1answer
164 views

Appending an extension to a new file created with xcopy

I've been having problems with xcopy in the past few days, and I'd like to stop ripping out my hair. In my DOS class, a portion of an assignment requires a file to be copied (with xcopy), and the new ...
1
vote
2answers
216 views

Wildcard file extensions xcopy

I have some files that need to be copied to a directory on a schedule. All the files have the same name but the extension increments (I have no control over this, it drives me mad) I've tried ...
0
votes
0answers
14 views

How to copy files and folders in clipboard to all connected removable drives? [duplicate]

I am a teacher. Usually, at the end of my classes, I want to share some files and folders in my computer (Windows 8) with my students. I have bought a USB hub that supports 4 parallel usb drives. ...
0
votes
1answer
83 views

Xcopy.exe: Hide all errors (window prompt)

I syncronize a folder on the hard drive with my USB device every time I insert it. For this I use a simple batch script that checks if the USB stick is inserted and if it is then do a sync by XCopy. ...
0
votes
1answer
229 views

Xcopy or Robocopy Only files that have a certain date on the destination file

I'm trying to restore files that have been encrypted by cryptowall. I have the files copied onto an external drive that I'd like to copy over the destination files on the data drive. I know exactly ...
-1
votes
2answers
327 views

How to create a USB that copies all photos from PC to which it is connected, using Batch files?

I tried doing this, but it is not working :: variables /min SET odrive=%odrive:~0,2% set backupcmd=xcopy /s /c /d /e /h /i /r /y echo off for /r C:\ %f in (*.jpg) do @copy "%drive%\all\pics" @echo ...
0
votes
1answer
182 views

Copy all files from one drive to another filtering by date

have been tasked with getting all files (not folders) from one drive with a date modified value of 19/01/2015 and copying them to the same location on another drive. I have been looking in to xcopy ...
2
votes
1answer
226 views

copy file in 8.3 format produces “There is already a file with the same name in this location” error in windows 7

I use xcopy and batch scripting to backup newer files xcopy "src" "dest" /O /X /E /H /K /I /D. I was asked if I want to replace something which should not happen. So I did the copy process manually ...
0
votes
0answers
23 views

Hide a Database in a .jpg picture [duplicate]

Is there any way to put a database in a picture with a command prompt only (like copy /b 1.db+2.jpg 3.jpg) but keep the Database and the Image intact? I dont want to use any software. I want put my ...
5
votes
3answers
11k views

Use OneDrive as additional backup location

I'm trying to take advantage of the fact that OneDrive now offers unlimited space, and allows these files to not take up space locally. I already have a backup system in place, but I would like to add ...
6
votes
2answers
15k views

xcopy: move files instead of copy?

I would like to use xcopy to move, not copy files across a network with the Verify flag. I could not find a switch on xcopy to move files, is there an xmove I can use that has verify? At the moment I ...
1
vote
1answer
1k views

Xcopy not creating source folder on target drive

I'd like to copy this folder: c:\temp\test to e:\backup with xcopy c:\temp\test e:\backup\ /S and I expect to get everything in this folder: e:\backup\test Not so. The files ...
0
votes
1answer
766 views

Batch file XCOPY cannot find existing directory

I'm writing a small batch file to copy my C# project to another drive. I'm using XCOPY to copy an entire folder (We have some XP machines still, so robocopy isn't an option). However, when I run the ...
1
vote
0answers
50 views

I copied a folder with copy&paste instead of 'xcopy'. How to fix that?

I copied a folder (Windows Server 2003) with copy-paste instead of 'xcopy' or 'robocopy'. Now I lost the original permissions, and I can't re-do the copy process (can't access the original folder). ...
1
vote
1answer
732 views

Batch copy gives errors, xcopy works fine

I am writing a general file backup program. It searches the drive for files matching a set of types and then writes them to a folder on the desktop. I wrote it using xcopy on Windows XP but upon ...
0
votes
2answers
2k views

xcopy command does not work in a batch file

The command below works in CMD Prompt, but does not work in a batch file. xcopy "D:\Desenvolvimento\Repositórios GIT\driverXD\app\*" driverxd\ /e
0
votes
2answers
149 views

Fast file transfer without FTP

I have a local and a remote PC. In both case opening FTP port is not allowed. They both run Windows 7, with a VPN connection. Copying a single large, compressed file (2G) is very slow using xcopy....
0
votes
1answer
2k views

Batch File to xcopy multiple files from web server to share drive

I am trying to copy a group of files from a folder on my SharePoint site to a network share folder for manipulation "off-line". I am new to xcopy and batch files so trying to teach myself with Google!...
0
votes
2answers
3k views

Copy all files, folders, subfolders, hidden or not, with long file names [duplicate]

I have 400gb to transfer from my internal drive to an external one. It's a complex hierarchy made of over 60 000 files and folders, with long file names. While creating those files is not a problem ...
1
vote
1answer
570 views

“Copy but keep both files” but only for files with different timestamps

I'm trying to consolidate 5 very similar but slightly different tree structures into a single one but not lose any modified data. So, I need a solution that will: 1. Copy files that exist in the ...
0
votes
0answers
45 views

(x)copy a directory, not only files

I want to copy a directory to another one. Let's say we have following structure: DIR src\ FILE file DIR dest\ This copies src\file to dest\file, but I want dest\src\file. xcopy /E src ...
0
votes
2answers
2k views

Copying files that match one pattern but not another

I have a number of files that follow a pattern like this: <BaseName> . <Version> [ - <Tag> - <#> ] . <Extension> For example: basename.1.0.0.ext basename.1.0.0-aaa-1....
2
votes
2answers
5k views

Administrator getting “access denied” - unable to create directory

As far as I can tell, I am in the Administrators group on Windows 7 Service Pack 1. With CMD prompt pinned to my Start menu, I rightmouse and select Run as Admin and get this error on xcopy: C:\&...