Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Cannot delete file: Cannot read from source file or disk.

Posted on 2008-10-08
18
Medium Priority
?
1,323 Views
Last Modified: 2012-08-13
I am attempting to delete a folder on a windows server 2003 system.

If I attempt to delete the file I get an error: "Cannot delete file: Cannot read from source file or disk."

I note that if I look at the properties of the folder I only get a General and Customize TAB, whereas other folders have General, Sharing, Security, Web Sharing and Customize TABs.

I also note that the folder has a trailing space. eg "Sample Unit Trust " (Note that there is a space after the word Trust).

I have used the command prompt to find the shortname sample~1 and attempted to delete it, without success.

I am stuck on this one as much as the folder is stuck to my filesystem. Can any expert help me


Regards'

Jim






0
Comment
Question by:jsulliva1957
[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
  • 11
  • 7
18 Comments
 
LVL 39

Expert Comment

by:ChiefIT
ID: 22667417
""I have used the command prompt to find the shortname sample~1 and attempted to delete it, without success.""

Go back to the command prompt and navigate to the file folder this file is in. Type Attrib at that folder's prompt. That will list the attributes on that file. To rid yourself of these attributes you type:

Attrib filename.xxx -a -h -r  
This means you want to remove the attributs of the file that are Archived Hidden or Read only.
0
 
LVL 39

Expert Comment

by:ChiefIT
ID: 22667424
Just out of curiosity, what file are you deleting? Let's make sure it is not a system file or use protected.
0
 

Author Comment

by:jsulliva1957
ID: 22667473
Thanks Chiefit.

I have already tried this and I get a message "unable to change attribute"

It is not a system file either


Cheers


Jim
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 39

Expert Comment

by:ChiefIT
ID: 22667487
This wouldn't be a profile file, like NTuser.dat, would it?

If so, you can use a little program called UPHclean to unlock those files. (Universal Profile Hive cleanup)
0
 

Author Comment

by:jsulliva1957
ID: 22667517
No ChiefIT,

The profiles are all OK.

The folders were created by an application, that has allowed the trailing space (Explorer always strips these in a windows environment)

I will run the UPHClean anyway, and hope you are right.

Jim
0
 
LVL 39

Expert Comment

by:ChiefIT
ID: 22667593
The folders were created by an application

That explains a lot. You probably have to take ownership of them as administrator before deleting the file or changing the attributes.

Right click on the file>>properties>>security tab>>advanced button>>owner tab>>add the domain admin as an owner
0
 

Author Comment

by:jsulliva1957
ID: 22667631
The problem is that the folder only has the general and the customize tab, not the normal (General, Sharing, Security, Web Sharing and Customize TABs)

It is a little bizarre

Jim
0
 
LVL 39

Expert Comment

by:ChiefIT
ID: 22673486
Yah, a little bizarre is right.

One thing I have done in the past is change the extension of the file to .txt, then siezed ownership and deleted it.
0
 

Author Comment

by:jsulliva1957
ID: 22676991
Hi ChiefIT,

This is a folder and hence does not have an extension.

To focus on the peculiarness of the problem, why would other folders have the General, Sharing, Security, Web Sharing and Customize TABs, and the offending folders only have the General and Customise TABs.

Perhaps if this problem can be resolved then the attrinutes/decurity etc can be changed and the folder deleted.

Regards

Jim

0
 
LVL 39

Expert Comment

by:ChiefIT
ID: 22677299
That's a goooood question:

I have never seen the folder only have two tabs, as you are seeing. It's probably because the application you are using creates the GUI to the file folder in the wrong way.

You know, this question might be best served on a programmers zone specifically for Windows shell objects. I currently see you are on the 2003 server zone only and we should be able to add zones to this by editting the question. To do so, I think you might have to request the assistance of a moderator by creating another zero point question in the general community. Or you can add a 20 point question in one of those zones that point to this link. I avoid programming like the plague, so I am probably not your best bet on answering that question.
0
 

Author Comment

by:jsulliva1957
ID: 22683179
Thanks ChiefIT,

I have seen folders with the 2 TABs, on a windows XP system that is not setup for filesharing.

This problem however exists on a Windows Server 2003, that obviously has domain filesharing.

I am the same as you with regards to programming and  I was hoping that the solution to the problem come from the operating system, becuase this is where the problem manifests itself, not in the application.

To clarify if the application became redundant and was uninstalled, this problem still remains inside the windows operating system. As such the solution really needs to come from there.


Regards


Jim

0
 
LVL 39

Expert Comment

by:ChiefIT
ID: 22692191
I don't think this will be possible:

When you right click the file, can you select Security and sharing?
0
 
LVL 39

Expert Comment

by:ChiefIT
ID: 22695143
This is what I am thinking:
The client my not have file/printer sharing enabled. So, when the client creates these files, certain tabs, (like security and sharing tabs), don't appear when creating the file. When passed down to the netshares, it also passes down the lack of ACLs (Access control lists) to the file.

So, maybe the client computer doesn't have:
Client for microsoft networks
and/or
File and printer sharing

anabled on the client machine.

There is a program called ACL.exe that you can minipulate the ACLs of the file folder and files. You might try this.
0
 

Author Comment

by:jsulliva1957
ID: 22696037
Thanks ChiefIT,

I have gfone to the application vendor and they are running scripts on the SQL server. Apparently they have heard of this problem and they are fixing it.

I will know tomorrow if they have been sucessful and if so, will seek a technical explanation becuase I cannot see how SQL can have such an effect in windows explorer.

I will post an update when I get it. In the meantime I will have a look at ACL.exe


Jim
0
 
LVL 39

Expert Comment

by:ChiefIT
ID: 22700824
0
 
LVL 39

Assisted Solution

by:ChiefIT
ChiefIT earned 2000 total points
ID: 22741348
jsulliva1957:

I was working on a similar post where we came up with a solution. I asked smittyboom to stop by and take credit for this fix. Hopefully taking ownership resolves your issue and smittyboom stops by for credit.
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_23796650.html
0
 

Accepted Solution

by:
jsulliva1957 earned 0 total points
ID: 22911163
Hi ChiefIT, I am at a conference and I talked to the Support Analyst who resolved the problem. The problem is not a windows problem, but rather an application problem.

The application fingers the folder every 15 second, and if the folder is deleted, it recreates the file. The solution was to change the folder list in the SQL 2005 database so that the application does not finger the folder.

Jim
0
 
LVL 39

Expert Comment

by:ChiefIT
ID: 22938034
Glad it is now up and working for you Jim:

Cheers
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

609 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