Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > MSDOS Programmer > Re: Copying dir...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 15 of 18 Topic 485 of 500
Post > Topic >>

Re: Copying directories

by Sjouke Burry <burrynulnulfour@[EMAIL PROTECTED] > Mar 19, 2008 at 08:10 PM

Reds wrote:
> In article <0cCDj.4199$qS5.1298@[EMAIL PROTECTED]
>,
>  "Todd Vargo" <tlvargo@[EMAIL PROTECTED]
> wrote:
> 
>> Reds wrote:
>>> foxidrive wrote:
>>>> Reds wrote:
>>>>> foxidrive wrote:
>>>>>> On Mon, 17 Mar 2008 05:37:04 GMT, Reds <redex1398@[EMAIL PROTECTED]
>
>>>>>> wrote:
>>>>>>
>>>>>>> What command do you use to copy directoris from one drive to the
>>>>>>> other. I have tried a few, but none has worked.
>>>>>>> I'm using the MS DOS from Windos ME
>>>>>>>
>>>>>>> Why doesn't these work:
>>>>>>> copy c:\dir1 d:\dir2
>>>>>> copy "c:\dir1\*.*" "d:\dir2"
>>>>>>
>>>>>>> xcopy c:\dir1 d:\dir2 /e
>>>>>> xcopy "c:\dir1\*.*" "d:\dir2\" /e
>>>>> I tried both commands but I mostly get a bad command or filename
>>>>> error. At times, it also seem to be confused by  "\dir1\*.*\",
>>>>> saying so such file or directory.
>> Placing a backslash after the *.* is incorrect. To copy the dir1
directory,
>> drop the *.* as shown below.
>>
>> xcopy "c:\dir1\" "d:\dir2\" /e
>>
>> Also, you state below that you are using a boot floppy but do not
indicate
>> the OS on that floppy. MSDOS 6.22 or earlier does not use LFNs so the
>> quoting would be in error for those OSs. Also, XCOPY in same OSs
require the
>> /S to be included with the /E.
>>
>>
>>>> Without more information I can't tell where the error you are making
>>>> is. Somehow the command is either being mispelt of you have a
>>>> greater problem in Windows.
>>>>
>>>> Here is an example for you:  dir1 and dir2 have to exist.
>>>>
>>>> ===[screen capture]===
>>>> Microsoft Windows XP [Version 5.1.2600]
>>>> (C) Copyright 1985-2001 Microsoft Corp.
>>>>
>>>> M:\>copy "m:\dir1\*.*" "m:\dir2"
>>>> m:\dir1\BOOT.BAK
>>>>         1 file(s) copied.
>>>>
>>>> ===[screen capture]===
>>> I'm actualy trying to get the command to work in DOS after booting
>>> from a floppy.
>>> I get it to work somewhat in Windows command prompt.
>>> For example, if I'm on the the c drive, then this works:
>>> xcopy dir1 d:\dir1 /e
>>>
>>> But it doesn't work when I boot with the floppy.
>> If your drive is formatted for NTFS, then a standard boot floppy can
not
>> read the HD. Rather than have us guess, why not tell us why you are
booting
>> from floppy just to copy some files on an XP system.
> 
> I was using this as a slave drive, but when I now boot to Windows, it is

> not reading the drive, but saying that it needs formatting instead.
> But when I boot with the floppy, I can see the files and directories, so

> I'm trying to copy them to another drive while in DOS.
> 
> I'm using a DOS startup disk made from Windows ME.
> 
> I tried xcopy "c:\dir1\" "d:\dir2\" /e  ,
>  xcopy c:\dir1\ d:\dir2\ /e
> and xcopy c:\dir1\ d:\dir2\ /s /e
> 
> but I keep getting "Bad command or file name."
In which case you got a fair warning that xcopy(not an internal command
but a program) is nowhere available.
You should add xopy.exe and maybe xcopy32.exe to your floppy.
 




 18 Posts in Topic:
Copying directories
Reds <redex1398@[EMAIL  2008-03-17 05:37:04 
Re: Copying directories
foxidrive <gotcha@[EMA  2008-03-17 17:24:22 
Re: Copying directories
Reds <redex1398@[EMAIL  2008-03-17 10:34:31 
Re: Copying directories
foxidrive <gotcha@[EMA  2008-03-17 23:53:01 
Re: Copying directories
Reds <redex1398@[EMAIL  2008-03-17 19:12:34 
Re: Copying directories
"Todd Vargo" &l  2008-03-17 18:02:18 
Re: Copying directories
Reds <redex1398@[EMAIL  2008-03-18 17:56:21 
Re: Copying directories
foxidrive <gotcha@[EMA  2008-03-19 05:29:17 
Re: Copying directories
"Todd Vargo" &l  2008-03-18 18:03:42 
Re: Copying directories
Reds <redex1398@[EMAIL  2008-03-20 10:59:24 
Re: Copying directories
"Todd Vargo" &l  2008-03-20 19:32:25 
Re: Copying directories
Reds <redex1398@[EMAIL  2008-03-22 18:45:55 
Re: Copying directories
"Todd Vargo" &l  2008-03-23 03:59:50 
Re: Copying directories
foxidrive <gotcha@[EMA  2008-03-19 05:32:57 
Re: Copying directories
Sjouke Burry <burrynul  2008-03-19 20:10:18 
Re: Copying directories
"Todd Vargo" &l  2008-03-19 19:41:32 
Re: Copying directories
ArarghMail803NOSPAM@[EMAI  2008-03-17 16:30:18 
Re: Copying directories
"Twayne" <no  2008-03-19 13:55:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 14:21:58 CDT 2008.