?
Solved

file cannot be deleted

Posted on 2002-05-25
7
Medium Priority
?
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 6

Expert Comment

by:st_steve
ID: 7034341
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
ID: 7034361
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
ID: 7034374
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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:Rogerianus
ID: 7034408
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 400 total points
ID: 7034432
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
ID: 7034444
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
ID: 7034470
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

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
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 set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses
Course of the Month9 days, 5 hours left to enroll

765 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