05-07-2011, 10:15 PM
Pages: 1 2
05-07-2011, 10:20 PM
Open notepad, then copy and paste this code into it:
Please note to replace the file path here with the filepath and when doing so keep the quotes.
Then save as fix.batch to the desktop, right-click and run as administrator.
Please note to replace the file path here with the filepath and when doing so keep the quotes.
Code:
@echo off
ATTRIB -A -R -S -H "file path here"
del "file path here"
del"%0"
exit
05-07-2011, 10:20 PM
(05-07-2011, 10:15 PM)Deltron Wrote: [ -> ]Disable UAC, then try deleting the file.
How would that help, anyways? Fill me in please with technical details, I love to learn?
(05-07-2011, 10:20 PM)RDCA Wrote: [ -> ]Open notepad, then copy and paste this code into it:
Then save as fix.batch to the desktop, right-click and run as administrator.Code:@echo off
ATTRIB -A -R -S -H "file path here"
del "file path here"
del"%0"
exit
I tried it, and it still fails... Let me try what Deltron is suggesting.
05-08-2011, 02:38 AM
Solution #1: Kill explorer.exe
1. Open a command prompt
2. Navigate to the location where the locked file is
3. Press CTRL-ALT-DEL, click on “task manager”, select the Processes tab
4. Kill the explorer.exe process via the “End Process” button
5. Go back to the command prompt and delete the file
6. Bring up the task manager windows again
7. Select file->new task
8. Type explorer.exe in the “create new task” field
9. Press OK.
Solution #2: Use The Windows Recovery Console
Just stick your Windows CD in your CD tray, boot on it, and at the “Welcome to Setup” screen, press “R“. Once the recovery console has started, navigate to the location of your locked file, and delete it. Since WRC does not really start the system, the files will not be in use, and you will be able to delete them. Oh, and for all you Linux geeks out there, yes, we know, doing this via a linux live CD / USB key is also possible.
Solution #3: Use unlocker
Unlocker is a very useful freeware that will allow you to unlock any files that are currently in use by Windows. You’ll know if this is happening if you are getting any of these messages when trying to delete a file:
1. Cannot delete file: Access is denied
2. There has been a sharing violation
3. The source or destination file may be in use
4. The file is in use by another program or user
Make sure the disk is not full or write-protected and that the file is not currently in use.
1. Open a command prompt
2. Navigate to the location where the locked file is
3. Press CTRL-ALT-DEL, click on “task manager”, select the Processes tab
4. Kill the explorer.exe process via the “End Process” button
5. Go back to the command prompt and delete the file
6. Bring up the task manager windows again
7. Select file->new task
8. Type explorer.exe in the “create new task” field
9. Press OK.
Solution #2: Use The Windows Recovery Console
Just stick your Windows CD in your CD tray, boot on it, and at the “Welcome to Setup” screen, press “R“. Once the recovery console has started, navigate to the location of your locked file, and delete it. Since WRC does not really start the system, the files will not be in use, and you will be able to delete them. Oh, and for all you Linux geeks out there, yes, we know, doing this via a linux live CD / USB key is also possible.
Solution #3: Use unlocker
Unlocker is a very useful freeware that will allow you to unlock any files that are currently in use by Windows. You’ll know if this is happening if you are getting any of these messages when trying to delete a file:
1. Cannot delete file: Access is denied
2. There has been a sharing violation
3. The source or destination file may be in use
4. The file is in use by another program or user
Make sure the disk is not full or write-protected and that the file is not currently in use.
05-09-2011, 01:32 PM
Go on CMD and activate your Administrator Account...
Then log off and log in the Administrator Account.
Try to delete the file now!
Then log off and log in the Administrator Account.
Try to delete the file now!
05-09-2011, 06:32 PM
Guys I solved it. I had to boot my laptop into safe mode, and permantley delete the file. Done!
Close thread please!
Close thread please!
05-09-2011, 07:53 PM
For future reference, since this is a somewhat common issue. Sometimes the file is being used in the processes, and sometimes it has the "Read only" attribute checked. Uncheck that, check your processes if that doesn't work, and if you can't change the processes, take ownership of the file through command prompt, and try again. Make sure you have correct permissions, or use Unlocker. It's a program that I would highly advise.
Glad you could fix it though.
Glad you could fix it though.
05-09-2011, 07:57 PM
(05-09-2011, 07:53 PM)Infinity Wrote: [ -> ]For future reference, since this is a somewhat common issue. Sometimes the file is being used in the processes, and sometimes it has the "Read only" attribute checked. Uncheck that, check your processes if that doesn't work, and if you can't change the processes, take ownership of the file through command prompt, and try again. Make sure you have correct permissions, or use Unlocker. It's a program that I would highly advise.
Glad you could fix it though.
Thanks but -- in short, the file had not been properly uninstalled and the left over application lost its ownership, which fudged it all up... It had not been running, I would have caught that ;) Well thanks though.
Pages: 1 2