Subj : Re: Copy to file or directory? Help? Calling MS-Dos? To : meirman From : Outsider Date : Fri Feb 01 2002 07:19 pm From: Outsider@f3.n342.z1.cereal.mv.com (Outsider) Subject: Re: Copy to file or directory? Help? Calling MS-Dos? From: Outsider meirman wrote: > > I hope you don't mind three questions in one post. > > In the statement > > xcopy c:\windows\file.dat d:\dir\file.dat > > the computer wants to know if my destination was a file or a > directory. IIRC, Dos assumes I mean a file, and this is a feature of > 4DOS. > > Usually I just tell it, but this time it was part of a .bat file. Is > there a paramenter or a way to write the xcopy statement to tell it > which it is in advance. > > (I got around it with an echo statement, but it seems it should be > easier than that.) ....snipped These are not specific to 4DOS, but you might try them. I don't know if any MSDOS stuff works in 4DOS as I have not been able to gather any worthwhile information from this group about 4DOS. ECHO F |XCOPY.exe file1 file2 or XCOPY.exe c:\example1.fil w:\temp\*.* or XCOPY.exe c:\example1.fil w:\temp\*example1.fil You'll have to experiment a little. If this is not specifically for 4DOS, it would be much better to ask in news:alt.msdos.batch -- MS-DOS 6.22, Windows for Workgroups 3.11, Netscape Communicator 4.08 "The right to be let alone is indeed the beginning of all freedom." -- |Fidonet: Outsider 1:342/3 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .