Solved windows 11, unable to delte folder

just an update and to say thank you.
I had tried to move the folder into the documents folder but this failed or so I thought.
I went to try and add another folder and make it a sub folder of the folder I cannot delete.
I noticed the folder I wanted to delete had moved into the documents folder. I added a sub folder and was able to delete it. I then tried to delete the folder that has given me all the trouble and it too deleted.

I am at a loss of what the problem was but will be adding folders only to the documents folder in future.

Thank you everyone for your help, suggestions and patience, it has been appreciated, thank you

smiler44
 
My suggestion is this: Try to delete it using code, and see if any "more informative" error message surfaces, it very well might.

Try kill "fullpath"
and createobject("scripting.filesystemobject").deletefile "fullpath"
 
@smiler44 - based on discussion, what you didn't tell us is the origin of the laptop. Is this your personal property or a work-issued laptop? If it was work-issued, that would explain some of the security settings and messages you have reported. In particular, this one:

I tried it on the documents folder above, there are 3 things listed, system, Administrators and a gmail address.

If the gmail address isn't your personal address or a work-related group name then I don't know how you are even using the laptop.

Having SYSTEM and having Administrators in the permissions list? No biggie at all; in fact, rather expected. But if you aren't user "sagent" (the name that appeared in the path between \users\ and \documents\) then part of the confusion has to be that you aren't explicitly authorized for that machine. Which makes no sense.

However, if this is a work-related computer, future downloads might be unwise. Viral downloads are all over the place waiting to be picked up by the unwary novice user.
 
My suggestion is this: Try to delete it using code, and see if any "more informative" error message surfaces, it very well might.

Try kill "fullpath"
and createobject("scripting.filesystemobject").deletefile "fullpath"
My goodness, it has been years since I saw code like that. Used it with Visual Basic perhaps or Excel macros. I would have no idea how to write code now.

smiler44
 
My goodness, it has been years since I saw code like that. Used it with Visual Basic perhaps or Excel macros. I would have no idea how to write code now.

smiler44
Literally just write what I wrote.

alt+f11 to open vba module in excel, Insert module, paste this:

Sub Foo()
kill "path to file"
End Sub

and position your cursor in side it and hit f5. same as it's ever been

PS - "Kill" is not particularly obsolete, as it's still used in the current day, ever-more-popular .NET
 
Literally just write what I wrote.

alt+f11 to open vba module in excel, Insert module, paste this:

Sub Foo()
kill "path to file"
End Sub

and position your cursor in side it and hit f5. same as it's ever been

PS - "Kill" is not particularly obsolete, as it's still used in the current day, ever-more-popular .NET
:), thank you. The problem is resolved and the folder has gone.
I meant I could not start writing that sort of code just like that. I have forgotten it all, sorry if I confused you.
Thank you for helping

smiler44
 
How did you get the folder deleted?
 
While there is no way to be sure, it is possible that the disk check "legitimized" (made consistent) the folder in question such that it started to show up correctly. That is one of the functions of the DISKCHECK program that is actually a holdover from MS-DOS days, upgraded to now work on NTFS (modern) drives as well as FAT32. By now I doubt that any FAT16 drives are still in use, but you never know.
 

Users who are viewing this thread

Back
Top Bottom