|
|
The file is zero bytes and if I look at the properties, there is no date information. If I try and delete this file using Explorer I get the following error:
Cannot delete file: Cannot read from source file or disk.
From a command prompt I get:
Could not find filename...
I performed a chkdsk but it found no errors.
Does anyone know of any tools or utilities I can use to rid myself of this file? I am running NTFS FWIW.
modified on Monday, February 23, 2009 8:27 AM
|
|
|
|
|
Try Unlocker[^]
Kristian Sixhoej
"You can always become better." - Tiger Woods
|
|
|
|
|
This doesn't work - the file isn't in use by another process - it seems to be a corrupt entry in the file table.
|
|
|
|
|
Have you tried in Safe Mode?
Kristian Sixhoej
"You can always become better." - Tiger Woods
|
|
|
|
|
No, that is good advice though so I will try this next.
|
|
|
|
|
I've seen something like that before - in my case I had a single file that couldn't be deleted, but could be moved and renamed. I just hid it somewhere, as it annoyed the hell out of me.
|
|
|
|
|
Does the filename have a trailing dot but is missing the suffix (filetype)?
|
|
|
|
|
Almost! It has a trailing space ... and I just deleted it by using a \\?\ prefix.
|
|
|
|
|
Yep, it's the same type of problem, explorer.exe isn't reading those files.
|
|
|
|
|
Turns out the file had a space at the end of it's name ("FILENAME.ZIP ") and the Win32 API doesn't like names like this. The trick is to delete it from a command-prompt using a \\?\ prefix, e.g.:
del "\\?\C:\Documents and Settings\FILENAME.ZIP "
|
|
|
|
|
Good of you to post the solution, Rob
But what does the \\?\ do? Wouldn't this suffice? del "C:\Documents and Settings\FILENAME.ZIP "
Cheers,
Vıkram.
I've never ever worked anywhere where there has not been someone who given the choice I would not work with again. It's a job, you do your work, put up with the people you don't like, accept there are probably people there that don't like you a lot, and look forward to the weekends.
- Josh Gray.
|
|
|
|
|
|
I love how that blog blames the Mac for the problem. We should save that one for Christian.
|
|
|
|
|
Thanks, Rob. I learnt something today.
Cheers,
Vıkram.
I've never ever worked anywhere where there has not been someone who given the choice I would not work with again. It's a job, you do your work, put up with the people you don't like, accept there are probably people there that don't like you a lot, and look forward to the weekends.
- Josh Gray.
|
|
|
|
|
what about using a os protable disk to boot the computer ,then try to del the fiel?
|
|
|
|
|
Hello,
my name Dinna
when i press Ctrl+Alt+Del, it show Taskmanager but when i click on that it just only show Networking Icon.
for the other 3 icon i did not see (Applicatin, Processes, Performance). i want to have 3 of these back?
Note: i use Window server 2003 Enterprise Edition.
do you have any solution on that?
thank before hand for helping me.
Dinna
|
|
|
|
|
Just double click on it and all of its feature will be come back.
|
|
|
|
|
thank for quick response.
din
|
|
|
|
|
You are always welcome dinna.
|
|
|
|
|
Hi Dinna,
Try opening up task manager again and where you see the outside border slightly left/right of where you can resize the window.
Here is where you need to double click and your tabs should come back.
Regards
Julian Mummery
Please Visit my FREE Bug / Fault Logging Website at FaultLogger.com
|
|
|
|
|
thank for your quick response
Din
|
|
|
|
|
I have searched everywhere but can find no info on how to use a .mof file to Delete an instance of Filter, Consumer, and FilterToConsumerBinding. Can anyone please help?
I know I can recompile and set everything to a null value, but this is untidy.
|
|
|
|
|
Try to use #pragma deleteinstance[^].
You need to use the Wmi object path of the instance you want to delete with it. For __EventFilter and __EventConsumer derived classes the key property is Name, so you shouldn't have any problems. __FilterToConsumerBinding could be a bit tricky because both Filter and Consumer properties are keys (and also references).
In January you said "Money in April" -
That was two years ago!
B. Python
|
|
|
|
|
Thank you. I agree that the Consumer and Filter instances do not present a problem and I have seen examples of (Delete) FilterToConsumerBinding with so many "\" characters that I cannot get anything to work. Here is the MOF file I am trying to "delete":
#pragma namespace ("\\\\.\\root\\subscription")
instance of ActiveScriptEventConsumer as $Cons
{
Name = "ASEC";
ScriptingEngine = "VBScript";
ScriptFileName = "c:\\asec.vbs";
};
instance of __EventFilter as $Filt
{
Name = "EF";
Query = "SELECT * FROM __InstanceDeletionEvent WITHIN 5 "
"WHERE TargetInstance ISA \"Win32_Process\" "
"AND TargetInstance.Name = \"calc.exe\"";
QueryLanguage = "WQL";
EventNamespace = "root\\cimv2";
};
instance of __FilterToConsumerBinding
{
Filter = $Filt;
Consumer = $Cons;
};
Any further assistance would be much appreciated!
|
|
|
|