WinXP file system error

M

Miha

Hi,

When trying to change (delete,rename) a specified folder on a Windows XP
NTFS parittion, I get the following error:
''Cannot delete file: Cannot read from the source file or disk''
It's a brand new hard drive, checked for errors and bad sectors, and all is
OK. Any ideas why this is happening? Also I have all the permissions on it.

Regards,Miha



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4391 (20090903) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
J

John John - MVP

The filename might contain invalid characters. Try bypassing the name
check with the following method:

Open Explorer.exe and navigate to the stubborn file.

Open a Command Prompt and type the following partial command:

del "\\?\

Now, from Explorer highlight and grab the stubborn file and drag it to
the Command Prompt and drop it at the end of the partial command. Pay
attention to the "quotation marks", if there are spaces in the file name
Explorer will automatically surround the path with quotation marks.
Make sure that there is only on set of quotation marks, like so:

del "\\?\C:\temp\New Text Document.txt"

and *not* like this:

"\\?\"C:\temp\New Text Document.txt"

John
 
J

John John - MVP

If this is a folder try the rd command instead of del.

rd "\\?\C:\temp\New Text Document.txt"

John
 
J

Jose

Hi,

When trying to change (delete,rename) a specified folder on a Windows XP
NTFS parittion, I get the following error:
''Cannot delete file: Cannot read from the source file or disk''
It's a brand new hard drive, checked for errors and bad sectors, and all is
OK. Any ideas why this is happening? Also I have all the permissions on it.

Regards,Miha

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4391 (20090903) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

What is your Operating System and Service Pack?

Does your method work on an unspecified folder?

Create a new folder, test.

Is there any characteristics of the afflicted folder that might help
figure out what the problem is?

The folder location and name would be a good start.
 
M

Miha

Hi John,
I have tried your solutions and it works, but it's strange because this is
happening again on different folders and files, randomly... Any idea why?
Regards,Miha

John John - MVP said:
If this is a folder try the rd command instead of del.

rd "\\?\C:\temp\New Text Document.txt"

John


__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4391 (20090903) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4391 (20090903) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
M

Miha

Hi,

It's Windows XP SP2.
It's happening on random folders and files.
The path to the specified folder that we're having currently problem is

"c:\mihec\Prelom 07\PRELOM 2009\PRIROCNIK ZA BRUCE 2009\Priloga Inovativnost
je zakon"

Rgrs,Miha

Hi,

When trying to change (delete,rename) a specified folder on a Windows XP
NTFS parittion, I get the following error:
''Cannot delete file: Cannot read from the source file or disk''
It's a brand new hard drive, checked for errors and bad sectors, and all
is
OK. Any ideas why this is happening? Also I have all the permissions on
it.

Regards,Miha

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4391 (20090903) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

What is your Operating System and Service Pack?

Does your method work on an unspecified folder?

Create a new folder, test.

Is there any characteristics of the afflicted folder that might help
figure out what the problem is?

The folder location and name would be a good start.

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4391 (20090903) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__________ Information from ESET NOD32 Antivirus, version of virus signature database 4391 (20090903) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
J

John John - MVP

Is the machine virus free? Are the files created by the same
application? The application may be adding trailing spaces to the name.
Did you run a drive diagnostic utility from the hard drive
manufacturer? Sometimes new drives unexpectedly fail, you should run a
diagnostic on it just to be sure.

John
 
R

Richard

John John - MVP said:
The filename might contain invalid characters. Try bypassing the name
check with the following method:

Open Explorer.exe and navigate to the stubborn file.

Open a Command Prompt and type the following partial command:

del "\\?\

Now, from Explorer highlight and grab the stubborn file and drag it to the
Command Prompt and drop it at the end of the partial command. Pay
attention to the "quotation marks", if there are spaces in the file name
Explorer will automatically surround the path with quotation marks. Make
sure that there is only on set of quotation marks, like so:

del "\\?\C:\temp\New Text Document.txt"

and *not* like this:

"\\?\"C:\temp\New Text Document.txt"

John

Hi John,

What is the \\?\ for? Why not just del filename?

(I think I missed the memo informing me that it was possible to drag/drop
into a command prompt window. How long has that been the case ? :)

Thanks. --Richard
 
J

John John - MVP

Richard said:
Hi John,

What is the \\?\ for? Why not just del filename?

It's a switch that instructs the command to bypass the reserved name
check, it sometimes solves the problems caused by filenames with
trailing spaces or reserved names. The \\.\ switch can also be used.

(I think I missed the memo informing me that it was possible to drag/drop
into a command prompt window. How long has that been the case ? :)

As long as I can remember on NT systems, was there with NT4.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sudden shutdown 7
Outlook problem 1
Size of Paging File 13
Windows 7 x64 and ERUNT 5
Cannot access My documents with Vista 64 2
Upper and Lower CD ROM Filters Missing 7
formatting external HDD 21
My Documents 10

Top