Other Programming Languages

NAVIGATION
CATEGORIES
LINKS
Home » Other Languages »» Other Programming Languages
  • Working with DOS command

    7 answers - 425 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg

    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 Im failed to do it.

    Thanks

  • No.1 | | 822 bytes | |

    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.
  • No.2 | | 95 bytes | |

    In addition to that, if you want a list of the available commands, simply run the command Help.
  • No.3 | | 180 bytes | |

    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.
  • No.4 | | 71 bytes | |

    simply run the command Help.

    You mean xcopy/? or somethingelse
  • No.5 | | 48 bytes | |

    He means simply typing "help" and hitting enter.
  • No.6 | | 1188 bytes | |

    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.
  • No.7 | | 1239 bytes | |

    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

Re: Working with DOS command


max 4000 letters.
Your nickname that display:
In order to stop the spam: 2 + 2 =
SPONSORED
QUESTION

SPONSORED
VISUAL BASIC TECHNOLOGIES