DOS Commands
Results 1 to 7 of 7

Thread: DOS Commands

  1. #1
    Registered User
    Join Date
    Oct 2000
    Location
    US
    Posts
    87

    DOS Commands

    I am kind of embarassed to ask this since I consider myself and old Dos guru. But, I am unable to remember a xcopy command. I will spare you the boring details. I need to copy a folder on a dos laptop to diskettes. The folder is 13mb. The disk drive is 720k. Amazing this thing still works. I can't remember the command to prompt to change diskettes.

    If anyone can help, I appreciate it... Dos Version 6.2
    Everywhere you go, there you are...

  2. #2
    Banned
    Join Date
    May 2001
    Location
    North West England.
    Posts
    3,200
    i think yor cooand line might be xcopy /m /c /f *.* a:\



    try summot like

    @echo off
    cls
    echo Insert floppy disk 1 (of 2) and press [Enter] ...
    echo.
    pause>nul
    c:
    cd "\******"
    attrib +a *.*
    cls
    echo Copying files from "c:\****" to "a:\" ...
    echo.
    echo Note: Please ignore any "Error copying ..." and "not enough space" errors.
    echo.
    xcopy /m /c /f *.* a:\
    echo.
    dir a:\
    echo.
    echo Insert floppy disk x (of x) and press [Enter] ...
    echo.
    pause>nul
    cls
    echo Copying files from "c:\*******" to "a:\" ...
    echo.
    xcopy /m /c /f *.* a:\
    echo.
    dir a:\
    echo.
    attrib +a *.*
    echo Done.


    and alter/amend the above ,,,,save to a *.bat and run it

  3. #3
    Registered User Mr_Miyagi's Avatar
    Join Date
    Jan 2001
    Location
    Westbury, Wiltshire, UK
    Posts
    1,099
    Quote Originally Posted by jfesler
    I am kind of embarassed to ask this since I consider myself and old Dos guru. But, I am unable to remember a xcopy command. I will spare you the boring details. I need to copy a folder on a dos laptop to diskettes. The folder is 13mb. The disk drive is 720k. Amazing this thing still works. I can't remember the command to prompt to change diskettes.

    If anyone can help, I appreciate it... Dos Version 6.2

    I DONT RECALL ONE COMMAND THAT WILL DO THAT. HERE ARE THE XCOPY SWITCHES.


    SYNTAX

    Copies files and directory trees.

    XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/W] [/C] [/I] [/Q] [/F] [/L] [/H] [/R] [/T] [/U] [/K] [/N]

    source Specifies the file(s) to copy.
    destination Specifies the location and/or name of new files.
    /A Copies files with the archive attribute set, doesn't change the attribute.
    /M Copies files with the archive attribute set, turns off the archive attribute.
    /D:date Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.
    /P Prompts you before creating each destination file.
    /S Copies directories and sub directories except empty ones.
    /E Copies directories and sub directories, including empty ones. Same as /S /E. May be used to modify /T.
    /W Prompts you to press a key before copying.
    /C Continues copying even if errors occur.
    /I If destination does not exist and copying more than one file, assumes that destination must be a directory.
    /Q Does not display file names while copying.
    /F Displays full source and destination file names while copying.
    /L Displays files that would be copied.
    /H Copies hidden and system files also.
    /R Overwrites read-only files.
    /T Creates directory structure, but does not copy files. Does not include empty directories or sub directories. /T /E includes empty directories and sub directories.
    /U Updates the files that already exist in destination.
    /K Copies attributes. Normal xcopy will reset read-only attributes.
    /Y Overwrites existing files without prompting.
    /-Y Prompts you before overwriting existing files.
    /N Copy using the generated short names.


    THESE ARE ALL THE OPTIONS.
    Mr Miyagi, by any other name... (is this sig short enough?)

  4. #4
    Registered User
    Join Date
    Oct 2000
    Location
    US
    Posts
    87
    Thanks for the ideas... I wasn't thinking very clearly. I found Win 3.1 on the laptop and used it to copy the files to multiple disks... A lot handier than dos commands...

    I think this Windows thing might just take off!!
    Everywhere you go, there you are...

  5. #5
    Registered User hudsonsmith's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    2,276
    You could zip it. pkzip has a switch to create archives that span multiple disks.

  6. #6
    Registered User eboyjones's Avatar
    Join Date
    Apr 2001
    Location
    Right Here!
    Posts
    705
    YOu might bookmark this page as it gives dos commands syntax and examples.

    http://www.computerhope.com/msdos.htm#02

    "Everybody needs a little help sometimes"

  7. #7
    Banned TripleRLtd's Avatar
    Join Date
    Aug 2003
    Location
    SW Florida...eye of the storm.
    Posts
    7,251
    Quote Originally Posted by Mr_Miyagi
    I DONT RECALL ONE COMMAND THAT WILL DO THAT.
    There wasn't ONE command!!! That is why PKZip was invented and succeeded!!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •