UNSOLVED

JTHOM406

updated

25 years ago

J

JTHOM406

20 Posts

0

11734

August 1st, 2001 00:00

Denny, a DOS question

Denny,

At the following prompt,
c:\windows, what would the command "xcopy help" copy and where would it copy it??

C:\windows
xcopy help

Would this copy all the files in the windows sub-directory "help" into the windows directory?

Thanks for the assistance.

JT

  • M Currie

    296 Posts

    479

    0

    Posted August 1st, 2001 02:00

    I'm not Denny, but yes, if you typed "xcopy help" while in the windows directory, it would assume you meant to copy the entire contents the subdirectory C:\windows\help into C:\Windows. This will only work if you are logged onto the parent directory of the one you've specified.

    If you did this already, you'll find that every file in c:\windows\help has been duplicated into C:\windows.

  • DaveHauck

    13 Posts

    479

    0

    Posted August 1st, 2001 15:00

    Typing xcopy /? will get you a list of switches and how they work.

    Dave

  • Jim Hardin

    2 Intern

    •

    2053 Posts

    479

    0

    Posted August 1st, 2001 19:00

    Sounds more like a question from a test that he got wrong!

    At any rate if you are at C:\Windows, and type 'xcopy help' it will copy all files that it identifies as help files to the exact same directory. It will be in the same directory because no destination was given in the command.

    The only ones that won’t get copied are those that are read only.


  • JTHOM406

    20 Posts

    479

    0

    Posted August 1st, 2001 22:00

    Jim,

    You are right. It was a test that went wrong!! I was trying to get the information on xcopy but needed the command that Dave referred to. Oh well, only 245 files to delete.
    Trying to copy a directory than will span multiple cd's and was trying to find information to see if xcopy would span multiple discs.
    Thanks for everyone's assistance.

    JT

  • Jim Hardin

    2 Intern

    •

    2053 Posts

    479

    0

    Posted August 2nd, 2001 07:00

    Jthom406: Now we are getting somewhere!

    First, it should not have created any duplicate copies since no destination was issued with the command. Hence you should not need to delete anything. Correct syntax would have been: XCOPY HELP D:\

    I doubt that this will help you due to a lack of DOS drivers for a CD-RW. You would need DirectCD running to do this and I am not too sure it will be invoked under a DOS copy command.

    If you are just after CD spanning, the only alternative that I am aware of is using a backup program – Roxio’s Take Two, or Vertias’ Backup Exec. There are others out there. These backups do require the backup program in order to recover files from the backup.

    For more flexibility I would use EasyCD and just drag/drop files while keeping an eye on the space available.

    Of course it does depend on what you are trying to do… Why not post more details?


  • DaveHauck

    13 Posts

    479

    0

    Posted August 2nd, 2001 09:00

    Hi Jim,

    I hate to contradict you, but if you type "xcopy help" in the c:\windows directory (which is where start/accessories/MSDos Prompt will put you), then xcopy will assume the destination to be where you're at and copy all of the Help files - including the "read-only" to the Windows directory.

    Dave


  • Jim Hardin

    2 Intern

    •

    2053 Posts

    479

    0

    Posted August 2nd, 2001 19:00

    David: There is no contradiction, that is what I said too. Without a ‘destination’ being specified, it will copy to the same directory that the prompt is in.