Solved

file cannot be deleted

Posted on 2002-05-25
7
254 Views
Last Modified: 2013-12-16
Hello!

In one of my temporary internet file folders there is a file with  a .htm extension that has a very very long filename.
Maybe that is the reason I cannot delete it?
I also tried deleting it by using the command prompt.
Either the delete function does not react at all, or it says 'file not found'
I cannot rename it either.

Does anyone know how I can get rid of it?

Roger.
0
Comment
Question by:Rogerianus
  • 3
  • 2
  • 2
7 Comments
 
LVL 6

Expert Comment

by:st_steve
Comment Utility
A file with a very long file name. Have you started the machine in Safe Mode and tried deleting the file? It could be a program's data file that when running (in normal mode) locks the file down so that you get access denied errors. You can't delete, you can't rename. For example, Internet Explorer "index.dat" file.

So..try Safe Mode and post any results.
0
 

Author Comment

by:Rogerianus
Comment Utility
Also in safe mode I cannot delete the file.
I don't know if it helps you but the file is located in C:\documents and settings\adminsitrator\local settings\temp\temporary internet files\content.ie5\SP2BS9YV and is now the only file in that folder.
The properties of the file are 'not available'.
The delete button (or delete function after right clicking) just doesn't do anything, it gives no error.
It is a .htm file but when opening it just calls internet explorer with an empty screen.
0
 
LVL 6

Expert Comment

by:st_steve
Comment Utility
Can you view the source code of that htm file? I'm leaning towards it being a virus but not really sure. Dump the HTML codes here.

If your install is on FAT with basic disk, see if you can get into MS-DOS (using DOS Floppy, not cmd.exe) and navigate to that directory (using 8.3 filenames), and use del built-in function to kill that file. See if this works.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:Rogerianus
Comment Utility
No, I cannot edit it with Notepad and neither with CoffeeCup.
My computer is protected with AVG antivirus, for what it 's worth.
I have NTFS file system.

Now when I double click the file it goes to a website http://www.lop.com/dnserror.cgi?s=http:///
I remember yesterday I had to reset my wallpaper because that same site had put an image on my desktop about a search engine, without asking me first.
0
 
LVL 44

Accepted Solution

by:
CrazyOne earned 100 total points
Comment Utility
You might want to look at this page it might have some inro about your situation.

Or

Try this open a command window and do this

Open a CMD.EXE window.
CD to the top of the mess.
Use: DIR /X /A   to see the SHORT FILE NAMES of the files and directories there.
Use a combination of CD, RD, and DEL and the SHORT FILES names reported with DIR /X to delete your way to the bottom and then back up the tree removing the files on the way down and the directories on the way up.
Most likely there is NOT a protection issue here so you shouldn't need worry about ownership or file protections.

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




This MS KB article may help

BEGIN ARTICLE

How to Remove Files with Reserved Names in Windows (Q120716)

--------------------------------------------------------------------------------
The information in this article applies to:


Microsoft Windows 2000 , Professional
Microsoft Windows 2000 , Server
Microsoft Windows 2000 , Advanced Server
Microsoft Windows 2000 , Datacenter Server
Microsoft Windows NT Server versions 3.1 , 3.5 , 3.51 , 4.0
Microsoft Windows NT Workstation versions 3.1 , 3.5 , 3.51 , 4.0
Microsoft Windows NT Advanced Server
--------------------------------------------------------------------------------

SUMMARY
Because applications control the policy for creating files in Windows, files sometimes are created with illegal or reserved names, such as LPT1 or PRN. This article explains how to delete such files using the standard user interface.

MORE INFORMATION
NOTE : You must be logged on locally to the Windows computer to delete these files.

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 <path\command> [<args>] 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

--------------------------------------------------------------------------------
Published Jun 3 1997 7:28AM  Issue Type  
Last Modifed Dec 22 2001 12:57PM  Additional Query Words 3.10 prodnt CON PRN AUX CLOCK$ NUL COM1 LPT1 LPT2 LPT3 COM2 COM3 COM4 winnt  
Keywords kbusage  

COPYRIGHT NOTICE. Copyright 2002 Microsoft Corporation, One Microsoft Way, Redmond, Washington 98052-6399 U.S.A. All rights reserved.

END ARTICLE


The Crazy One
0
 

Author Comment

by:Rogerianus
Comment Utility
While waiting for an answer from EE I fooled around a bit and was able to delete the file myself:  
While being in its original location, I could'nt delete it nor the folder in which it was contained.  But I could move the folder to another location (c:\), and then deletion of the folder was possible !!
I don't understand how or why but I got rid of it.
Thanks for your help.
0
 
LVL 44

Expert Comment

by:CrazyOne
Comment Utility
BTW I forgot to include the link in my comment. If you run into problems with the lop.com site then this page has some info the may be useful.

http://lop.com/help.html
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now