Results 1 to 8 of 8

Thread: [RESOLVED] Working with DOS command

  1. #1

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Resolved [RESOLVED] Working with DOS command

    Hi all,

    I need your help on this.

    By Microsoft introduced new DOS command with there every revisions/versions. On MS-DOS 3.2 they introduced XCOPY and on MS-DOS 5.0 they introduced UNDELETE commands.

    My question is this. I work on WinXP Pro with MS-DOS 6.0. Can you guys say that how to used above commands on MS-DOS 6.0

    I tried to get help on web. But I’m failed to do it.

    Thanks
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  2. #2
    New Member
    Join Date
    Oct 2006
    Posts
    15

    Re: Working with DOS command

    In DOS, if you type a command and then follow it with /? (for example, xcopy /?) you can get information about that command, including switches and optional parameters.

    Basically xcopy is like copy except that it reads in more data before writing it (copy works on one file at a time) and gives you more options/control. I haven't used delete in ages. I believe you start the TSR by simply typing undelete (I can't find that information in the DOS books I have). Then when you need to undelete a file, you just type undelete filename.ext if you know what file you want to undelete, or type undelete /list to see a list of all the files you can undelete. This is the simple version of undelete. There are two other undelete options, but depending on what you're doing the simple version should work.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Working with DOS command

    In addition to that, if you want a list of the available commands, simply run the command Help.

  4. #4

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Wink Re: Working with DOS command

    Quote Originally Posted by VBCasey
    In DOS, if you type a command and then follow it with /? (for example, xcopy /?)
    Ya, I used it and confusing how it used practically. Can you describe it with an example.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  5. #5

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Wink Re: Working with DOS command

    Quote Originally Posted by si_the_geek
    simply run the command Help.

    You mean xcopy/? or somethingelse
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Working with DOS command

    He means simply typing "help" and hitting enter.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7
    New Member
    Join Date
    Oct 2006
    Posts
    15

    Re: Working with DOS command

    I haven't tried this but according to the help file, the following command will copy only those files from c:\sitedocs to n:\sitedocs that you've changed since the last time you copied them, but it won't copy .psd files. It will copy all the subdirectories, even empty ones, but it won't list the files it's copying. If there are any errors, xcopy will continue copying anyway.

    xcopy c:\sitedocs\*.* n:\sitedocs /a /e /c /q /u exclude:.psd

    /a copies only files with the archive attribute set and doesn't turn off the attribute. (If you want to turn the attribute off you would use /m instead.)
    /u only copies the files from c;\sitedocs and its subdirectories that already exist in n:\sitedocs
    /e copies the subdirectories even if they're empty. If you didn't want it to copy empty subdirectories you'd use /s instead.
    /c continues copying files even if there's an error.
    /q tells DOS not to bother telling you the names of the files it's copying.
    exclude:.psd tells xcopy not to copy any files with .psd in the name, which if you're using DOS as the OS means it won't copy *.psd files.

  8. #8

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Wink Re: Working with DOS command

    Quote Originally Posted by VBCasey
    I haven't tried this but according to the help file, the following command will copy only those files from c:\sitedocs to n:\sitedocs that you've changed since the last time you copied them, but it won't copy .psd files. It will copy all the subdirectories, even empty ones, but it won't list the files it's copying. If there are any errors, xcopy will continue copying anyway.

    xcopy c:\sitedocs\*.* n:\sitedocs /a /e /c /q /u exclude:.psd

    /a copies only files with the archive attribute set and doesn't turn off the attribute. (If you want to turn the attribute off you would use /m instead.)
    /u only copies the files from c;\sitedocs and its subdirectories that already exist in n:\sitedocs
    /e copies the subdirectories even if they're empty. If you didn't want it to copy empty subdirectories you'd use /s instead.
    /c continues copying files even if there's an error.
    /q tells DOS not to bother telling you the names of the files it's copying.
    exclude:.psd tells xcopy not to copy any files with .psd in the name, which if you're using DOS as the OS means it won't copy *.psd files.

    Thanks a lot. Now I have an idea about it
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

Posting Permissions

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



Click Here to Expand Forum to Full Width