I copied:
copy c:\users\test\sample.txt" "d:\test"
I get 1 file(s) copied.
I want to see the full path of what it is being copied.
I used echo copy c:\users\test\sample.txt" "d:\test" but when I ran the batch file it showed the full path but did not copy
What command can I use to view the full path when copying?
Thanks in advance.
Copy and Echo
Moderator: DosItHelp
Re: Copy and Echo
You can't change the behavior of the copy command. However, with ECHO turned ON you'll see the executed command. And if you don't want to get a visible prompt, update it to the invisible backspace-space-backspace combination using the $H code.
Before copying:
After copying:
Steffen
Before copying:
Code: Select all
prompt $h
echo on
Code: Select all
@echo off
Re: Copy and Echo
Steffen, the code worked perfectly. Thanks so much.