PDA

View Full Version : ms-dos help needed



0ldschool
08-25-2007, 06:38 AM
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.

lynx
08-25-2007, 07:06 AM
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 (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dos_diffs.mspx?mfr=true)

0ldschool
08-25-2007, 07:11 AM
damn, thanks alot mate.
it worked just fine

bigboab
08-25-2007, 07:26 AM
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> :)

0ldschool
08-25-2007, 07:41 AM
well, in my prompt the default path is C:\Documents and Settings>
so i think it`s ok.

bigboab
08-25-2007, 08:00 AM
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.:)

0ldschool
08-25-2007, 08:02 AM
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. :P
Can i reboot my pc from ms-dos?

and yes, of course i get outside the directory first so i can delete it. :D

bigboab
08-25-2007, 10:34 AM
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. :P
Can i reboot my pc from ms-dos?

and yes, of course i get outside the directory first so i can delete it. :D

Yes you can reboot by pressing the:

Ctrl+Alt+Del keys simultaneously.:)

I am only talking about an MS-DOS controlled PC here.

0ldschool
08-25-2007, 10:37 AM
like lol, nvm. I found out. You can restart your pc from ms-dos prompt by typeing
shutdown -r -f -t 01

backlash
08-25-2007, 12:50 PM
if you right click the recycle bin and choose properties you can untick the "display the delete confirmation dialog"