How to get xcopy to accept dirname such as !!testdir. i.e. with those chars in it: !! ?

Joined
Nov 1, 2021
Messages
2
Reaction score
0
I can put this in a cmd prompt:
copy e:\topdir\!!nextdir testdir
and it does it no trouble at all.
but put that line in a batch file and run it and it says it cannot find the file.
same with xcopy.
same with robocopy.
Must be the '!!' bit, I think. What can I do about it?
 
Joined
Jul 4, 2023
Messages
541
Reaction score
70
Check this: copy "e:\topdir\!!nextdir" testdir
1733624570530.png
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,087
Messages
2,570,600
Members
47,222
Latest member
jspanther

Latest Threads

Top