How do you remove all items in the nethood directory? - TechRepublic
Question
April 2, 2008 at 01:29 PM
stevel

How do you remove all items in the nethood directory?

by stevel . Updated 16 years, 4 months ago

I am trying to delete everything in the Network Places folder on users XP Professional workstations. Under each users folder is a folder called Nethood, where the connections live.

I am using the quite ordinary script of:
cd %userprofile%\nethood
del *.* /s /q

The results of these commands is that a windows default icon remains that is now a folder holding holding only a desktop.ini file it. All network information is gone. The icon will delete with a right click, but I need it to delete it all with the .bat file I’m running.

I understand the things that reside in the Nethood folder are not ordinary, but sheesh.

Any help is greatly appreciated.

This discussion is locked

All Comments