Computing.Net > Forums > Windows NT > Can't Delete User Folder on Server

Can't Delete User Folder on Server

Reply to Message Icon

Original Message
Name: Mojo
Date: September 4, 2002 at 03:03:36 Pacific
Subject: Can't Delete User Folder on Server
Comment:

Can anyone advise me ...

I'm trying to delete ex-employees folders from the NT Server.

The trouble is that there is a 1kb 'Nul' file that I can't get rid of and hence prevents me deleteing the users folder.

I'm logged on as the Administrator on the Server itself, I've also tried logging on as the users themselves on my PC ... but still to no avail.!

I keep getting a pop up box saying:
"Cannot delete NUL: Invalid MS-DOS function."

Can someone tell me how to get rid of this file and then the folders themselves.

Many thanks


Report Offensive Message For Removal


Response Number 1
Name: Herman
Date: September 4, 2002 at 04:05:31 Pacific
Subject: Can't Delete User Folder on Server
Reply: (edit)

Try rebooting the server. I guess a handler is not releasing the file.

good luck


Report Offensive Follow Up For Removal

Response Number 2
Name: Martin
Date: September 4, 2002 at 04:35:33 Pacific
Subject: Can't Delete User Folder on Server
Reply: (edit)

click right mouse-button on the file as server-admin logged-in. use options and get ownership (Besitz übernehmen, ich know only the german word)

afterwards you can delete it.

martin


Report Offensive Follow Up For Removal

Response Number 3
Name: Maurice Reed
Date: September 5, 2002 at 00:39:07 Pacific
Subject: Can't Delete User Folder on Server
Reply: (edit)

Hmmm, I've come across this sort of problem before. The thing is that embedded in DOS and therefore carried over into Windows are some permanent file names such as LPT1, LPT2, Nul, Con, Prn etc. So if at a command prompt you enter:-
copy xxx.txt con - the file xxx.txt gets copied to con which is the console

If you enter:-
copy xxx.txt Prn - then it gets copied to the default printer. The 'nul' file was a way of dumping program output to a black-hole.

If you try deleting filenames like prn, nul, con etc the OS will generate an error. If the folder is on an NTFS volume I would suggest that you make sure that you have taken ownership and have granted yourself full access rights over the folder and sub directories. Having rebooted the server to release any locks/handles associated with this directory and contents, bring up a command prompt and switch to the appropriate path and enter:-

DEL *.* and see if that clears the entry.
You could also try something like:-
REN * *.txt which should attempt to rename it and maybe then you can delete it as normal. The thing is to not use the keyword 'nul' in any command such as:-
DEL nul

It should be impossible to create a file with a name such as 'con' 'prn' 'nul' etc but some error has occured which has allowed this to happen.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Can't Delete User Folder on Server

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge