As part of an automated script, I am trying to do something like this on a windows command prompt:
xcopy /I /Y resources\xyz\pqrs.txt %TEMP%\resources\xyz\pqrs.txt.bak
% TEMP% does not have a resource directory.
This is the interactive output I get:
Does C:\Users\username\AppData\Local\Temp\resources\xyz\pqrs.txt.bak specify a file name or directory name on the target (F = file, D = directory)?
The thing is that I want to create a directory and copy the file without interaction.
If I use mkdir, I will have to extract the directory path before using mkdir. I just wondered if xcopy can be used to simultaneously implement a copy of mkdir +.
xcopy link for everyone.
Thanks for the help.
source share