| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 67972 | 2006-04-12 09:53:00 | Command line question | paradox (1082) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 445897 | 2006-04-12 09:53:00 | Hi....In XP, is it possible to delete a folder and it's contens from the command line? Cheers Ken. | paradox (1082) | ||
| 445898 | 2006-04-12 09:57:00 | Have a look at the help for del (delete) - I'm using a Linux PC so can't look myself - go del /? and there is a switch that will delete in a manner that we call recursively in Linux. | johnd (85) | ||
| 445899 | 2006-04-12 10:15:00 | Not sure if you can but you are able to open a command window and delete files. Start, Run, CMD or Command. | pilgrim (2373) | ||
| 445900 | 2006-04-12 10:24:00 | >rmdir /? Removes (deletes) a directory. 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 |
gibler (49) | ||
| 445901 | 2006-04-12 10:31:00 | I think that del works with the /S and /Q switches as well? | johnd (85) | ||
| 445902 | 2006-04-12 10:50:00 | I think that del works with the /S and /Q switches as well? Hmm, it is a bit vague in the description about how it handles directories. del /s /q c:\test - it cleaned out all files but didn't delete subdirectories (or the directory test) rmdir /s /q c:\test - All of C:\test gone. |
gibler (49) | ||
| 445903 | 2006-04-13 03:44:00 | del shouldn't remove a directory. ;) In DOS, del[ete] (and the synonym rem[ove] were inherited through CPM from real operating systems and delete files. rmdir with the same heritage would remove an empty directory. deltree would remove a directory, and any files or subdirectories in it (the "tree"). It's annoying because it prompts for each file. So you Ctrl/C it, and use the /y option to do it without prompts. | Graham L (2) | ||
| 445904 | 2006-04-13 04:06:00 | From the horse's mouth: Changed (and removed) DOS commands in XP (www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/dos_diffs.mspx?mfr=true). Looks as if rmdir /s is what you want. ;) |
Graham L (2) | ||
| 445905 | 2006-04-26 12:39:00 | Bump... I've been away but thanks for your helpful replies. I've had no joy with the problem as the mesage that I get back from either rmdir or del is always cannot find that file. My tries were from start/run. I think my machine is pretty sick because I cant do much at all in Windows. Any right click on the contents of an oper folder shuts everything down to the wallpaper with all shortcut icons gone. These failiers produce a note saying something like Failed assertion in Common. .CPP at line186. Error loading signature XML from 'Sigs.xml" Worse..the cd part of my burner has quit and I cant find a boot floppy that will get me in. Might be an invader but my three fully updated gardians say that I'm clean. I'd like to delete some personal stuff and do a clean install but I'm kinda locked out. Cheers Ken :mad: |
paradox (1082) | ||
| 445906 | 2006-04-26 18:07:00 | Easiest way is boot to command line. Then "Del" plus path to whatever you want to delete. Just make sure you have the path right. | JJJJJ (528) | ||
| 1 2 | |||||