I wrote a tool for our department that generates a protocol from an Atlassian Datasource.
Because in some cases the tool didn't worked when started from the company's netdrive, a colleague wrote the following batch file to simply copy the relevant files locally, which lead to a working program for all.
mkdir C:\QuickProtocol\
mkdir C:\QuickProtocol\Templates\
mkdir C:\QuickProtocol\In\
mkdir C:\QuickProtocol\Out\
mkdir C:\QuickProtocol\Templates\Protokoll-Dateien\
XCOPY \\*NetDrivePath*\QuickProtocol.exe C:\QuickProtocol\ /y
XCOPY \\*NetDrivePath*\QuickProtocol.pdb C:\QuickProtocol\ /d /y
XCOPY \\*NetDrivePath*\Languages.xml C:\QuickProtocol\ /d /y
XCOPY \\*NetDrivePath*\PrimeCore.dll C:\QuickProtocol\ /d /y
XCOPY \\*NetDrivePath*\Templates C:\QuickProtocol\Templates\ /d /y /s
But now a colleague that changed departments, but has still access to the files on the netdrive, tried the batch file again.
Strangely in his case, as well as in the case of some other colleagues who reported to him, the batch file only copy's the Templates Folder and creates the directories named above.
What could be the reason for this?
Thanks for all the answers, in my case changing Xcopy
to Copy
for the few single file Copys helped, at least it seems so. Hopefully it stays this way^^