xcopy c:'directoryA' c:backup 'directoryB' /m /e v
The command runs fine from "run" and a DOS promp
BUT
when run as a batch file from root directory or say desktop it opens a
windows and continually scrolls as this >>> c:xcopy c:directoryA
c:backup directoryB /m /e v
Where have I gone wrong?
Too many things don't make sense, so here is a suggestion.
You need to be a bit more explicit, for I'm sure you aren't using apostrophe's
when you type it yet the echo you're getting from the batch file doesn't show
them. Is the >>> actually in the scrolling display, or just an arrow you're
using.
What is that v at the end of the lines? If you're running Xp, then XCOPY
does have a /v for verify,
I would suggest you repost with the exact command -- who cares if it is just
stuff on your directory. Perhaps copy and paste it from your batch file into
your email -- you can use Notepad to open the .BAT file to make the copy.
Also make sure you state how you edited the .BAT file. I've seen some people
try to use a word processor to edit a text file, which would throw all kinds
of other garbage into what DOS sees.
*** As you should not be using one for the plural "apostrophes". (-:
Richard Bonner
http://www.chebucto.ca/~ak621/DOS/
c:'directoryA' is an invalid format - normally you would use
"c:\directoryA"
The most likely problem is that you named the file XCOPY.BAT.
--
T.E.D. (tda...@gearbox.maem.umr.edu) Remove "gearbox.maem" to get real address - that one is dead