Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simple xcopy batch file - cant get it to work

31 views
Skip to first unread message

chris.w...@virgin.net

unread,
Jan 10, 2007, 5:51:46 PM1/10/07
to
I've been trying to get this command line to work in a batch file
without sucess.

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?

re...@this.newsgroup.com

unread,
Jan 10, 2007, 6:52:08 PM1/10/07
to
On 10 Jan 2007 14:51:46 -0800, "chris.w...@virgin.net"
<chris.w...@virgin.net> wrote:

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.

Richard Bonner

unread,
Jan 10, 2007, 8:14:09 PM1/10/07
to
re...@this.newsgroup.com wrote:
> I'm sure you aren't using apostrophe's when you type it

*** As you should not be using one for the plural "apostrophes". (-:

Richard Bonner
http://www.chebucto.ca/~ak621/DOS/

Ted Davis

unread,
Jan 10, 2007, 9:34:00 PM1/10/07
to
On 10 Jan 2007 14:51:46 -0800, "chris.w...@virgin.net"
<chris.w...@virgin.net> wrote:

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

0 new messages