Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Equivalent DELTREE command in win2000
Name: Boab Date: November 27, 2000 at 03:23:28 Pacific
Comment:
Does anyone know if there is an equivalent command to deltree in win2000. What i need to do is to delete all files and any subfolders from a folder from a batch file. In win95/98 i would use: deltree foldername or deltree *.* to delete everything.
Win2000 has the RD or RMDIR but you appear to have to specify the folder name. I need to be able to use wildcards. Any ideas?
Name: sander Date: November 27, 2000 at 04:27:11 Pacific
Reply:
use: del /s All special delete actions are included in the DEL command. Type "del /?" for all possible options.
0
Response Number 2
Name: Boab Date: November 27, 2000 at 06:45:28 Pacific
Reply:
Tried del /s, it does delete all files in sub folders but leaves the folders.
0
Response Number 3
Name: sander Date: November 27, 2000 at 09:31:55 Pacific
Reply:
Ok, I got it! Use rmdir /s /q !!!!!!!!!!!
D:\>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
0
Response Number 4
Name: Boab Date: November 28, 2000 at 02:27:18 Pacific
Reply:
RD looks good in theory, it will remove folders that are specified in the command line such as rd /s c:\test\test1 but when you try and use wildcards it gives the error below. C:\> rd /s c:\test\*.* c:\test\*.*, Are you sure (Y/N)? y The filename, directory name, or volume label syntax is incorrect.
I am trying to create a batch file that will remove everything from the temp folder in win2000 and so the names of the folders will change. I can't find a solution anywhere!
Summary: In order for DOS programs to print in 2000 across a network printer I need to capture a printer port. Win2000 does not support this feature. I have used the old net use command, net use lpt1:\\servern...
Summary: There's no deltree command in Win2K. Does anyone know if the NT version will work properly in Win2K or is there a version of Deltree for Win2K (possibly under a different name?)....
Summary: in win2000 you can get to the dos prompt by going to the start menu selecting programs, select acceseries then cmd. This is the command prompt at a dos level...