Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CORRUPT FILE WON'T DELETE IN NT4

Status
Not open for further replies.

wnterhawk

MIS
Nov 13, 2001
57
0
0
US
One of our servers has a corrupt file that we have restored. However NT 4.0 won't let us into the file to either rename or delete the corrupt file.
Unfortunately, the operating system continues to see the file and keeps giving an error that the file is corrupt. Can anyone suggest how to delete this file?
 
This may sound strange but try renaming it then deleting it
 
sorry we tried renaming it and it won't let us into the file at all. We can't go into dos and delete it either because it is NFS not FAT
 
Try writing a vbscript for it, Vbscript is pretty handy for deleting and copying files.

'code starts here
on error resume next
Set fso = CreateObject("Scripting.FileSystemObject")
'deletefile is the folder that holds the corrupted file
Dim deletefile

'You can use any wild cards
deletefile ="c:\folder\folder\*.*"

'This deletes whatever files you specify above
fso.DeleteFile deletefile

'set fso to nothing
set fso = Nothing
'code ends here


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top