Hi,
I am trying to copy only one file from multiple files with user prompt using XCOPY. If the user chooses 'y' it should copy into a target.txt file.
This is the script I am using
xcopy D:\source\*.*/p D:\Target.txt || goto error
But it asks me a file or directory. So I tried doing this.
echo F | xcopy xcopy D:\source\*.*/p D:\Target.txt || goto error
Now, it is not asking for the user input anymore. How can I prompt for user input by defaulting to a file?
Experts... Please help
Thanks