Results 1 to 10 of 10

Thread: ms-dos help needed

  1. #1

    Unsure

    Hi guys.
    I have windows xp and have some problems with some commands in ms-dos. My main question is, how do i delete a folder ( not empty ) or even other files without asking me to choose Y/N . Just delete it.
    I`ve tried all kind of commands but seems like none of them worked. I think it`s about my windows, but i`m sure there is a solution, a command that works for windows xp also.
    Thanks.

  2. Internet, Programming and Graphics   -   #2
    lynx's Avatar .
    Join Date
    Sep 2002
    Location
    Yorkshire, England
    Posts
    9,759
    Code:
    RMDIR [/S] [/Q] [drive:]path
    RD [/S] [/Q] [drive:]path
    
        /S    Removes all directories and files in the specified directory in 
              addition to the directory itself.  Used to remove a directory tree.
    
        /Q    Quiet mode, do not ask if ok to remove a directory tree with /S
    Other useful commands
    .
    Political correctness is based on the principle that it's possible to pick up a turd by the clean end.

  3. Internet, Programming and Graphics   -   #3
    damn, thanks alot mate.
    it worked just fine

  4. Internet, Programming and Graphics   -   #4
    bigboab's Avatar Poster BT Rep: +1
    Join Date
    Jul 2003
    Posts
    29,621
    You should not remove directories in MS-DOS unless you know what directory you are in. It can create havoc by deleting files by mistake.

    You should got to the C> prompt and type in the following.

    C>PROMPT $P$G then press the ENTER Key.
    This will produce a prompt like this:

    C:\> This indicates that you are in the ROOT directory

    From then on your prompt will indicate which directory that you are in. For example if you were in the BASIC directory your prompt would look like this:

    C:\Basic>
    The best way to keep a secret:- Tell everyone not to tell anyone.

  5. Internet, Programming and Graphics   -   #5
    well, in my prompt the default path is C:\Documents and Settings>
    so i think it`s ok.

  6. Internet, Programming and Graphics   -   #6
    bigboab's Avatar Poster BT Rep: +1
    Join Date
    Jul 2003
    Posts
    29,621
    Quote Originally Posted by 0ldschool View Post
    well, in my prompt the default path is C:\Documents and Settings>
    so i think it`s ok.
    What I was trying to say is. If you used RD or RMDIR command from that prompt you could lose all Sub-Directories and files within those Sub-directories, within Documents and Settings. It is better sometimes to go into the directory you want to remove and remove all files therein. Move up a directory, then remove the directory concerned.(You cannot remove a directory if you are in that directory or in a sub-directory of that directory). Sorry I am starting to wander again.
    The best way to keep a secret:- Tell everyone not to tell anyone.

  7. Internet, Programming and Graphics   -   #7
    ouh, lol. yes, i know that. that`s the point, that`s what i wanted. to delete all subfolders and files from that directory.
    I have another question now.
    Can i reboot my pc from ms-dos?

    and yes, of course i get outside the directory first so i can delete it.
    Last edited by 0ldschool; 08-25-2007 at 08:10 AM. Reason: Automerged Doublepost

  8. Internet, Programming and Graphics   -   #8
    bigboab's Avatar Poster BT Rep: +1
    Join Date
    Jul 2003
    Posts
    29,621
    Quote Originally Posted by 0ldschool View Post
    ouh, lol. yes, i know that. that`s the point, that`s what i wanted. to delete all subfolders and files from that directory.
    I have another question now.
    Can i reboot my pc from ms-dos?

    and yes, of course i get outside the directory first so i can delete it.
    Yes you can reboot by pressing the:

    Ctrl+Alt+Del keys simultaneously.

    I am only talking about an MS-DOS controlled PC here.
    The best way to keep a secret:- Tell everyone not to tell anyone.

  9. Internet, Programming and Graphics   -   #9
    like lol, nvm. I found out. You can restart your pc from ms-dos prompt by typeing
    shutdown -r -f -t 01

  10. Internet, Programming and Graphics   -   #10
    backlash's Avatar usenet lover
    Join Date
    Aug 2003
    Location
    in your dreams
    Posts
    1,579
    if you right click the recycle bin and choose properties you can untick the "display the delete confirmation dialog"

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
  •