Forum Search:
Forum.Brain-Cluster.com: Brain Cluster Technical Forum
Ultimate forum for Technical Discussions

Home » Microsoft » Windows Server » Windows Server General Help » Cannot delete file with name ended with a dot.
Cannot delete file with name ended with a dot. [message #163789] Mon, 08 June 2009 06:58 Go to next message
rmari  is currently offline rmari
Messages: 4
Registered: June 2009
Junior Member
Hello,
when trying to delete from File Explorer a file I receive the message "Could
not find this item", also cannot delete from command prompt when try I
receive the message "File Not Found" (from command prompt I cannot see the
file when I type the command "dir", I can see it if after the command dir I
type the initial of the file's name and press the key "tab").
The operating system is Windows 2008 server standard x64.

Thank You,

Best Regards

Roberta
Re: Cannot delete file with name ended with a dot. [message #163791 is a reply to message #163789] Mon, 08 June 2009 07:07 Go to previous messageGo to next message
Dominick  is currently offline Dominick  United States
Messages: 26
Registered: August 2009
Junior Member
Must be more to it than that - Running on 2008 Server enterprise x64, I
created a file fred. on the Desktop, I could see it in Explorer fine,
deleted it from there. Maybe there is an unprintable character in the
filename? Have you tried moving everything else out of the directory and
doing a del *.*? Have you checked to see if your disk is ok (chkdsk,
errors in event log, etc.)?

rmari wrote:
> Hello,
> when trying to delete from File Explorer a file I receive the message "Could
> not find this item", also cannot delete from command prompt when try I
> receive the message "File Not Found" (from command prompt I cannot see the
> file when I type the command "dir", I can see it if after the command dir I
> type the initial of the file's name and press the key "tab").
> The operating system is Windows 2008 server standard x64.
>
> Thank You,
>
> Best Regards
>
> Roberta
Re: Cannot delete file with name ended with a dot. [message #163793 is a reply to message #163791] Mon, 08 June 2009 08:23 Go to previous messageGo to next message
rmari  is currently offline rmari
Messages: 4
Registered: June 2009
Junior Member
Hello Dominiki,

>I
> created a file fred. on the Desktop, I could see it in Explorer fine,
> deleted it from there.

Have you disable "Hide extensions for know file types" on File Explore?
Because if it is enable I could'n create a file with name ended with a dot.

>Maybe there is an unprintable character in the
> filename?

The filename si "Verbale.".

>Have you tried moving everything else out of the directory and
> doing a del *.*?

I could'n use jolly characters in the command line because doesn't works,
example:

del *.* -> response: nothing
dir V + press tab button -> dir Verbale.
del V + press tab button -> del Verbale. press enter -> Could Not Find
path\Verbale.

and in File Explore I can see again the file.

>Have you checked to see if your disk is ok (chkdsk,
> errors in event log, etc.)?

seemingly everything is correct, no errors on event log and no errors on
chkdsk's log.

Thank you

Roberta

"Dominick" wrote:

> Must be more to it than that - Running on 2008 Server enterprise x64, I
> created a file fred. on the Desktop, I could see it in Explorer fine,
> deleted it from there. Maybe there is an unprintable character in the
> filename? Have you tried moving everything else out of the directory and
> doing a del *.*? Have you checked to see if your disk is ok (chkdsk,
> errors in event log, etc.)?
>
> rmari wrote:
> > Hello,
> > when trying to delete from File Explorer a file I receive the message "Could
> > not find this item", also cannot delete from command prompt when try I
> > receive the message "File Not Found" (from command prompt I cannot see the
> > file when I type the command "dir", I can see it if after the command dir I
> > type the initial of the file's name and press the key "tab").
> > The operating system is Windows 2008 server standard x64.
> >
> > Thank You,
> >
> > Best Regards
> >
> > Roberta
>
Re: Cannot delete file with name ended with a dot. [message #163808 is a reply to message #163789] Mon, 08 June 2009 09:31 Go to previous messageGo to next message
meiweb(nospam)  is currently offline meiweb(nospam)  Germany
Messages: 1307
Registered: July 2009
Senior Member
Hello rmari,

How deep is the structure where the file is located, more then 255 characters
including the folder structure?

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> Hello,
> when trying to delete from File Explorer a file I receive the message
> "Could
> not find this item", also cannot delete from command prompt when try I
> receive the message "File Not Found" (from command prompt I cannot see
> the
> file when I type the command "dir", I can see it if after the command
> dir I
> type the initial of the file's name and press the key "tab").
> The operating system is Windows 2008 server standard x64.
> Thank You,
>
> Best Regards
>
> Roberta
>
Re: Cannot delete file with name ended with a dot. [message #163813 is a reply to message #163789] Mon, 08 June 2009 10:51 Go to previous messageGo to next message
news  is currently offline news  Switzerland
Messages: 2294
Registered: July 2009
Senior Member
"rmari" <rmari@discussions.microsoft.com> wrote in message
news:7D8E6678-EDE2-4A61-BFB6-2D9D691274C7@microsoft.com...
> Hello,
> when trying to delete from File Explorer a file I receive the message
> "Could
> not find this item", also cannot delete from command prompt when try I
> receive the message "File Not Found" (from command prompt I cannot see the
> file when I type the command "dir", I can see it if after the command dir
> I
> type the initial of the file's name and press the key "tab").
> The operating system is Windows 2008 server standard x64.
>
> Thank You,
>
> Best Regards
>
> Roberta

Your problem is caused by the trailing dot in the file name. Windows does
not allow it and cannot cope with it when it exists. A moment ago I created
such a folder artificially and found no method to subsequently access,
rename or delete it. I can see the following options for you:

a) Find out which application created the folder, then discuss the issue
with the supplier.
b) Use a disk editor (e.g. DiskEditor from Acronis) to turn the trailing dot
into a character.
c) Live with the problem.

Note that chkdsk will not resolve the issue.
Re: Cannot delete file with name ended with a dot. [message #163819 is a reply to message #163789] Mon, 08 June 2009 11:34 Go to previous messageGo to next message
aceman  is currently offline aceman  United States
Messages: 5816
Registered: July 2009
Senior Member
"rmari" <rmari@discussions.microsoft.com> wrote in message
news:7D8E6678-EDE2-4A61-BFB6-2D9D691274C7@microsoft.com...
> Hello,
> when trying to delete from File Explorer a file I receive the message
> "Could
> not find this item", also cannot delete from command prompt when try I
> receive the message "File Not Found" (from command prompt I cannot see the
> file when I type the command "dir", I can see it if after the command dir
> I
> type the initial of the file's name and press the key "tab").
> The operating system is Windows 2008 server standard x64.
>
> Thank You,
>
> Best Regards
>
> Roberta


Roberta,

I posted earlier, but it didn't show up. Possibly didn't post because of
references I have in my post. I am reposting it without the references.

----
Roberta,

Please read my following blog on this:

============================================================ ==========================================
============================================================ ==========================================
To delete those undeletable files and folders:

A little background on undeletable files and folders:

I've seen these in the past regarding 'pubbed' FTP servers by illegal
software,
game and movie files that find open FTP servers. They would upload their
files to it but use characters in the name that FTP supports (ASCII
characters) as well as create a very deep file structure with unreadable or
printable ASCII characters, and/or file names with these characters that are
greater than 256 characters. Windows directly supports ANSI characters.
However, although Windows supports ANSI indirectly, it is not supported
directly through the Windows Explorer GUI. Therefore this prevents admins
from getting to them or deleting them, nor delete them. In the older
operating systems, you could install the POSIX support tools (to support
UNIX based commands and using ASCII characters), but that is gone now.
However Windows still provides POSIX support but not directly, however they
can be deleted by using specific commands, but you just have to know the
commands!.

So the other factor, as mentioned, is if the file, folder name, and/or
number of child folders is greater than 256 characters. Many operating
system limits are based on the i386 addressable 32bit architecture, such as
the number of useres that can access a share, which is 4.3 billion objects.
It also depends on the drive and if an app can read it. Many programs also
expect a limit of 256 objects (characters, paths, bytes, etc), maybe even
the deltree command is limited, however NTFS formatted drives can go beyond
the 256 objects.

Is the drive NTFS?

Therefore, not being able to delete them is caused by the factors above,
special characters, trailing spaces, trailing dots (periods) or reserved
names in the folders, such as com, lpt, etc, such as when a machine gets
'pubbed' into an FTP site where the 'pubbers' will create these deep paths
and using reserved names to prevent the admin from deleting them. If someone
created the file or subfolders with these characters,
it will give you headaches to remove them. With an FTP app it's easy to do
this, because they use ASCII characters, such as what POSIX uses, however
WIndows uses ANSI and cannot translate the folders. In the past we had to
install the POSIX support on an NT4 machine to clean up such folders and
files.

Try the following:

Assuming the first folder is the numeral "1" on D drive (and use the quotes
if you have problems and watch the required periods if the command uses it):

rm -r "//D/1"

or

RD \\.\c=D:\1

or

RmDir \\.\D:\1 /s /q


RmDir \\.\C:\YourFTP_ROOT's_PATH\COM1 /s /q

Read the following references for more information and instructions.

How to Remove Files with Reserved Names in Windows:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q120716

You cannot delete a file or a folder on an NTFS file system volume:
http://support.microsoft.com/kb/320081

Cannot Delete Files or Folders with Extended Characters:
http://support.microsoft.com/kb/131702
============================================================ ==========================================
============================================================ ==========================================


--
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSA Messaging, MCT
Microsoft Certified Trainer
aceman@mvps.RemoveThisPart.org

For urgent issues, you may want to contact Microsoft PSS directly. Please
check http://support.microsoft.com for regional support phone numbers.

"Efficiency is doing things right; effectiveness is doing the right
things." - Peter F. Drucker
http://twitter.com/acefekay
RE: Cannot delete file with name ended with a dot. [message #163820 is a reply to message #163789] Mon, 08 June 2009 12:18 Go to previous messageGo to next message
rmari  is currently offline rmari
Messages: 4
Registered: June 2009
Junior Member
Hello All,
thank you for your helps!

"Meinolf Weber [MVP-DS]" wrote:

> Hello rmari,
>
> How deep is the structure where the file is located, more then 255 characters
> including the folder structure?
>
> Best regards

Meinolf,

the directories structure is deep 4 level and is less of 255 characters.


Pegasus [MVP]" wrote:

>

> Your problem is caused by the trailing dot in the file name. Windows does
> not allow it and cannot cope with it when it exists. A moment ago I created
> such a folder artificially and found no method to subsequently access,
> rename or delete it. I can see the following options for you:
>
> a) Find out which application created the folder, then discuss the issue
> with the supplier.
> b) Use a disk editor (e.g. DiskEditor from Acronis) to turn the trailing dot
> into a character.
> c) Live with the problem.
>
> Note that chkdsk will not resolve the issue.
>

Pegasus,
I know...
the action which created the file on the server is a copy of user profile
with robocopy (I don't know which applications in the client has created the
file...)

Are you sure about resolution with disk editor?

"Ace Fekay [Microsoft Certified Trainer]" wrote:


>
> rm -r "//D/1"
>
> or
>
> RD \\.\c=D:\1
>
> or
>
> RmDir \\.\D:\1 /s /q
>
>
> RmDir \\.\C:\YourFTP_ROOT's_PATH\COM1 /s /q
>
> Read the following references for more information and instructions.
>

ACE,
thanks for your explanation,the file system is NTFS and I tried the above
command (I received the message: The system cannot find the file specified.)
but the file is again on the disk.

I will follow the MS's documents.

Thank you for now.

Roberta

"rmari" wrote:

> Hello,
> when trying to delete from File Explorer a file I receive the message "Could
> not find this item", also cannot delete from command prompt when try I
> receive the message "File Not Found" (from command prompt I cannot see the
> file when I type the command "dir", I can see it if after the command dir I
> type the initial of the file's name and press the key "tab").
> The operating system is Windows 2008 server standard x64.
>
> Thank You,
>
> Best Regards
>
> Roberta
Re: Cannot delete file with name ended with a dot. [message #163823 is a reply to message #163820] Mon, 08 June 2009 12:27 Go to previous messageGo to next message
news  is currently offline news  Switzerland
Messages: 2294
Registered: July 2009
Senior Member
"rmari" <rmari@discussions.microsoft.com> wrote in message
news:ACAC6508-4168-4867-B343-7496CB3DDCDB@microsoft.com...
>
>
> Hello All,
> thank you for your helps!
>
> "Meinolf Weber [MVP-DS]" wrote:
>
>> Hello rmari,
>>
>> How deep is the structure where the file is located, more then 255
>> characters
>> including the folder structure?
>>
>> Best regards
>
> Meinolf,
>
> the directories structure is deep 4 level and is less of 255 characters.
>
>
> Pegasus [MVP]" wrote:
>
>>
>
>> Your problem is caused by the trailing dot in the file name. Windows does
>> not allow it and cannot cope with it when it exists. A moment ago I
>> created
>> such a folder artificially and found no method to subsequently access,
>> rename or delete it. I can see the following options for you:
>>
>> a) Find out which application created the folder, then discuss the issue
>> with the supplier.
>> b) Use a disk editor (e.g. DiskEditor from Acronis) to turn the trailing
>> dot
>> into a character.
>> c) Live with the problem.
>>
>> Note that chkdsk will not resolve the issue.
>>
>
> Pegasus,
> I know...
> the action which created the file on the server is a copy of user profile
> with robocopy (I don't know which applications in the client has created
> the
> file...)
>
> Are you sure about resolution with disk editor?

Yes. However, you should try Ace Fekay's suggestions first.

By the way - robocopy is unlikely to have caused your problem - it merely
propagated it from the user profile you copied.
Re: Cannot delete file with name ended with a dot. [message #163826 is a reply to message #163820] Mon, 08 June 2009 13:21 Go to previous messageGo to next message
aceman  is currently offline aceman  United States
Messages: 5816
Registered: July 2009
Senior Member
"rmari" <rmari@discussions.microsoft.com> wrote in message
news:ACAC6508-4168-4867-B343-7496CB3DDCDB@microsoft.com...
> ACE,
> thanks for your explanation,the file system is NTFS and I tried the above
> command (I received the message: The system cannot find the file
> specified.)
> but the file is again on the disk.
>
> I will follow the MS's documents.
>
> Thank you for now.
>
> Roberta

Roberta,

Take a look at this article to remove the file:

How to Remove Files with Reserved Names in Windows
http://support.microsoft.com/kb/120716

Ace
Re: Cannot delete file with name ended with a dot. [message #163833 is a reply to message #163820] Mon, 08 June 2009 13:24 Go to previous messageGo to next message
aceman  is currently offline aceman  United States
Messages: 5816
Registered: July 2009
Senior Member
"rmari" <rmari@discussions.microsoft.com> wrote in message
news:ACAC6508-4168-4867-B343-7496CB3DDCDB@microsoft.com...
> ACE,
> thanks for your explanation,the file system is NTFS and I tried the above
> command (I received the message: The system cannot find the file
> specified.)
> but the file is again on the disk.
>
> I will follow the MS's documents.
>
> Thank you for now.
>
> Roberta

Also, try this:

DEL \\.\c:\somedir\filename.

Ace
Re: Cannot delete file with name ended with a dot. [message #164111 is a reply to message #163833] Mon, 15 June 2009 11:10 Go to previous messageGo to next message
rmari  is currently offline rmari
Messages: 4
Registered: June 2009
Junior Member
Thank you!!

Ace, I tried this:

RmDir c:\<directory> /s /q

has worked!!!

Thank you all for your helps.

Ciao

Roberta.


"Ace Fekay [Microsoft Certified Trainer]" wrote:

> "rmari" <rmari@discussions.microsoft.com> wrote in message
> news:ACAC6508-4168-4867-B343-7496CB3DDCDB@microsoft.com...
> > ACE,
> > thanks for your explanation,the file system is NTFS and I tried the above
> > command (I received the message: The system cannot find the file
> > specified.)
> > but the file is again on the disk.
> >
> > I will follow the MS's documents.
> >
> > Thank you for now.
> >
> > Roberta
>
> Also, try this:
>
> DEL \\.\c:\somedir\filename.
>
> Ace
>
>
>
Re: Cannot delete file with name ended with a dot. [message #164113 is a reply to message #164111] Mon, 15 June 2009 12:03 Go to previous message
aceman  is currently offline aceman  United States
Messages: 5816
Registered: July 2009
Senior Member
"rmari" <rmari@discussions.microsoft.com> wrote in message
news:FD19AC8A-4D39-4232-86DC-95C302463FB1@microsoft.com...
> Thank you!!
>
> Ace, I tried this:
>
> RmDir c:\<directory> /s /q
>
> has worked!!!
>
> Thank you all for your helps.
>
> Ciao
>
> Roberta.

Good to hear. You are welcome, Roberta!

Cheers!

Ace
Previous Topic:Can I update 2003 to 2003 R2
Next Topic:Re: Printer Spooler Keeps Crashing - Windows Server 2003 SP2 R2
Goto Forum:
  


Current Time: Tue Aug 22 14:48:33 EDT 2017

Total time taken to generate the page: 0.03467 seconds
.:: Contact :: Home ::Sitemap::.

Powered by: FUDforum 3.0.0RC2.
Copyright ©2001-2009 FUDforum Bulletin Board Software