Share via


XCOPY - UNABLE TO CREATE DIRECTORY

Question

Tuesday, March 8, 2016 3:47 PM

I have created a batch file to backup several windows folders using XCopy to a Network Drive.

Three of four folders backed up with no problems. All lines have the same switches as follows:

Xcopy C:\Users\Bob\Desktop   /d/e/y/r/v    X:\Z_4010_Backup\Desktop
Xcopy C:\Users\Bob\Favorites /d/e/y/r/v     X:\Z_4010_Backup\Favorites
Xcopy C:\Users\Bob\Downloads /d/e/y/r/v   X:\Z_4010_Backup\Downloads
Xcopy C:\Users\Bob\Pictures  /d/e/y/r/v      X:\Z_4010_Backup\Pictures

Second line gets error: file creation error - the parameter is incorrect      unable to create directory

1. Bob is an administrator

2. All directories exist on the target, some with sub directories

3. Windows 10 is home version, although I believe I have the same problem on Win 10 Pro

4. Copy command gives message cannot find file.

All replies (1)

Tuesday, March 8, 2016 8:53 PM âś…Answered

Does X:\Z_4010_Backup\Favorites exist already? Have you tried putting that path as X:\Z_4010_Backup\Favorites\ to specify Favorites as a folder name?