Discussion Locked

can't delete warez folder from NT server

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Our NT SQL server was a unwilling warez server, the knuckleheads dropped megs of garbage on our server. But the clever basta*** put some sort of voodoo on the folders so I can't delete them. Have tried taking ownership but I get file or directory not found errors and in some cases when I try to delete a folder it says it doesn't exist. Short of formatting the drive does anybody have any suggestions to rid of these folders?
TIA

Doc

7 replies

by khall

if using nt4.0, right click folder, go to properties sheet, uncheck hidden and system if they are selected. Check permissions on folders, ensure you have access rights. If on a FAT file systems, boot system to DOS only, then manually delete from aprompt.

by stillatit

First take the machine off your net.

Use Server Manager to make sure that there are no attached users or open shares.

Stop the ftp service.

Check the list of running services, looking for any that may be non-standard. Your friends may be running a service to protect the directories. Stop any which seem suspicious.

Try the following delete techniques until one works (note that these get more and more destructive):
1) Drag to recycle bin.
2) Drag to recycle bin with shift held down.
3) Create a new folder. Drag the junk to the new folder, then drag the new folder to the recycle bin.
4) Take ownership of whatever folder the bad folders are within. Move out of it anything you need. Then drag the containing folder to the recyclebin.
5) From a command window, go into each of the bad folders, and try a del *.*
6) Buy the utility from sysinternals that lets you boot to DOS and get to ntfs disks. Delete from the DOS del command with NT not running.
7) If all else fails, back up the entire server to tape, format the disk, and restore from tape minus the bad directories.

Good luck.

by geosean

Something like that happened to me a while back.
If the file was created on a file allocation table (FAT) partition, you may be able to delete it under MS-DOS using standard command line utilities (such as DEL) with wildcards. For example:

DEL PR?.*

-or-

DEL LPT?.*

These commands do not work on an NTFS partition as NTFS supports the POSIX subsystem and filenames such as PRN are legal under this subsystem. However, the operating system assumes the application that created them can also delete them; therefore, you can use commands native to the POSIX subsystem.

You can delete (unlink) these files using a simple, native POSIX application. For example, the Windows Resource Kit includes such a tool, Rm.exe.

NOTE: POSIX commands are case sensitive. Drives and folders are referenced differently than in MS-DOS. Windows 2000 and later POSIX commands must use the following usage syntax:
posix /c [] IE: posix /c c:\rm.exe -d AUX.

Usage assumes Rm.exe is either in the path, or the current folder:
rm -d //driveletter/path using forward slashes/filename
For example, to remove a file or folder named COM1 (located at C:\Program Files\Subdir in this example), type the following command:rm -d "//C/Program Files/Subdir/COM1"
To remove a folder and its entire contents (C:\Program Files\BadFolder in this example), type the following command:
rm -r "//C/Program Files/BadFolder"
Another option is to use a syntax that bypasses the normal reserve-word checks altogether. For example, you can possibly delete any file with a command such as:
DEL \\.\driveletter:\path\filename
For example:

DEL \\.\c:\somedir\aux

Good Luck

This discussion is closed to new replies.