Can rename, but not delete, file

T

Tim Zych

I can rename a file, but when I try to delete it, I get an "access denied"
error. It's not being used by anybody.

How can this happen? This is a DLL file as part of a .Net solution which is
regularly updated. It's on a shared server that I access with Remote Desktop
if that matters, but I've looked at the task manager and no one is using it.
To reinstall the .Net solution, I can rename it, uninstall the solution and
reinstall the latest version, but that renamed DLL is still in there.

How can I delete it? I can see the Sharing and Security is full control for
everybody for this directory, but it still won't delete.
 
T

Terry R.

The date and time was 3/18/2008 8:14 PM, and on a whim, Tim Zych pounded
out on the keyboard:
I can rename a file, but when I try to delete it, I get an "access denied"
error. It's not being used by anybody.

How can this happen? This is a DLL file as part of a .Net solution which is
regularly updated. It's on a shared server that I access with Remote Desktop
if that matters, but I've looked at the task manager and no one is using it.
To reinstall the .Net solution, I can rename it, uninstall the solution and
reinstall the latest version, but that renamed DLL is still in there.

How can I delete it? I can see the Sharing and Security is full control for
everybody for this directory, but it still won't delete.

Did you try creating a batch file to delete the file and placing the
path into the RUN key of the registry?

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
T

Terry R.

The date and time was 3/18/2008 9:33 PM, and on a whim, Tim Zych pounded
out on the keyboard:
No, how would I do that?

Do you know how to do any of it? (do you know how to create a batch
file? Are you comfortable editing the registry?) So I don't have to
spend so much time describing it.

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
T

Tim Zych

--
Tim Zych
SF, CA
Terry R. said:
The date and time was 3/18/2008 9:33 PM, and on a whim, Tim Zych pounded
out on the keyboard:


Do you know how to do any of it? (do you know how to create a batch file?
Are you comfortable editing the registry?) So I don't have to spend so
much time describing it.

Terry:
If you mean save a text file with a .bat extension, yes. The actual script
to do what you say, no. Editing the registry, yes. Placing the file into the
run key of the registry, no.
Thanks.
 
T

Terry R.

The date and time was 3/19/2008 4:18 PM, and on a whim, Tim Zych pounded
out on the keyboard:

Tim,

As you can see, by OE placing a sig delimiter (dash dash space) at the
top of the post, everything below the delimiter was removed when I
replied, because my newsreader (Thunderbird) knows how to properly deal
with a delimiter. If you're going to use OE and a signature, get QuoteFix:
http://home.in.tum.de/~jain/software/oe-quotefix/
Then you can place the signature at the bottom of the post where it
belongs when using a delimiter.


Create the batch file and insert this line:

DEL /F "c:\path and filename"

Save the file as delfile.bat (or whatever you choose to call it). I
used quotes around the path because if the path has spaces (like Program
Files), the quotes need to be used and it won't hurt otherwise.

Open regedit and navigate to
HKLM\Software\Microsoft\Windows\CurrentVersion\Run

On the right pane, right click and select New, String Value. Name it
Delete file and press Enter. Then right click on it and select Modify.
In the Value data area, type in the path of the batch file, like
c:\batch\delfile.bat and click OK.

The next time the computer is rebooted, the file will execute on login.

Since I don't have the prior post info, this needs to be done the
computer that the file resides. After the reboot, verify the file was
deleted, and then you can delete the key you created in the registry.


--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
T

Terry R.

The date and time was 3/20/2008 9:10 PM, and on a whim, Tim Zych pounded
out on the keyboard:
Thanks for this Terry



Tim

You're welcome.

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 

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

Top