Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.computer > #11446 > unrolled thread

rename or delete folder

Started byRobert Baer <robertbaer@localnet.com>
First post2019-12-03 14:20 -0800
Last post2019-12-07 20:51 -0800
Articles 11 — 2 participants

Back to article view | Back to alt.computer


Contents

  rename or delete folder Robert Baer <robertbaer@localnet.com> - 2019-12-03 14:20 -0800
    Re: rename or delete folder Paul <nospam@needed.invalid> - 2019-12-03 20:29 -0500
      Re: rename or delete folder Robert Baer <robertbaer@localnet.com> - 2019-12-03 21:22 -0800
        Re: rename or delete folder Robert Baer <robertbaer@localnet.com> - 2019-12-04 13:56 -0800
          Re: rename or delete folder Paul <nospam@needed.invalid> - 2019-12-04 17:27 -0500
            Re: rename or delete folder Robert Baer <robertbaer@localnet.com> - 2019-12-04 14:46 -0800
              Re: rename or delete folder Paul <nospam@needed.invalid> - 2019-12-04 22:08 -0500
                Re: rename or delete folder Robert Baer <robertbaer@localnet.com> - 2019-12-06 08:10 -0800
                Re: rename or delete folder Robert Baer <robertbaer@localnet.com> - 2019-12-06 08:56 -0800
                  Re: rename or delete folder Paul <nospam@needed.invalid> - 2019-12-06 18:01 -0500
                    Re: rename or delete folder Robert Baer <robertbaer@localnet.com> - 2019-12-07 20:51 -0800

#11446 — rename or delete folder

FromRobert Baer <robertbaer@localnet.com>
Date2019-12-03 14:20 -0800
Subjectrename or delete folder
Message-ID<rdBFF.153537$aI.82569@fx44.iad>
   I try to rename or to delete a folder, and get error box, saying "It 
is being used by another program or program."

   Untrue.
   How do i go about changing that attribute bit or unlocking the folder?

   Thanks.

[toc] | [next] | [standalone]


#11447

FromPaul <nospam@needed.invalid>
Date2019-12-03 20:29 -0500
Message-ID<qs725k$84s$1@dont-email.me>
In reply to#11446
Robert Baer wrote:
>   I try to rename or to delete a folder, and get error box, saying "It 
> is being used by another program or program."
> 
>   Untrue.
>   How do i go about changing that attribute bit or unlocking the folder?
> 
>   Thanks.

Sysinternals "Handle.exe" and find out what executable has
a handle open on it.

Sometimes, it is File Explorer itself which has an open
handle on the thing.

And sometimes, you have a Command Prompt open, and you did

    cd /blah/blah/the_folder

and *that's* why the system has a handle on it. If you do

    cd /some/other/folder/not/near/that/one

or, if you close the Command Prompt window, the handle
is no longer present and the file can be deleted.

You have to use your thinking cap on these.
Or, be forced to use Handle.exe to tell you the
process doing it.

I fall for the Command Prompt one, all the time...

    Paul

[toc] | [prev] | [next] | [standalone]


#11448

FromRobert Baer <robertbaer@localnet.com>
Date2019-12-03 21:22 -0800
Message-ID<doHFF.194929$3u6.72993@fx34.iad>
In reply to#11447
Paul wrote:
> Robert Baer wrote:
>>   I try to rename or to delete a folder, and get error box, saying "It 
>> is being used by another program or program."
>>
>>   Untrue.
>>   How do i go about changing that attribute bit or unlocking the folder?
>>
>>   Thanks.
> 
> Sysinternals "Handle.exe" and find out what executable has
> a handle open on it.
> 
> Sometimes, it is File Explorer itself which has an open
> handle on the thing.
> 
> And sometimes, you have a Command Prompt open, and you did
> 
>     cd /blah/blah/the_folder
> 
> and *that's* why the system has a handle on it. If you do
> 
>     cd /some/other/folder/not/near/that/one
> 
> or, if you close the Command Prompt window, the handle
> is no longer present and the file can be deleted.
> 
> You have to use your thinking cap on these.
> Or, be forced to use Handle.exe to tell you the
> process doing it.
> 
> I fall for the Command Prompt one, all the time...
> 
>     Paul
   Weird!
   Just to re-verify the problem folders, i tried to delete the pesky ones.
   And *poof* they got deleted with no fuss.
   Are you some kind of magician?

   Thanks.

[toc] | [prev] | [next] | [standalone]


#11449

FromRobert Baer <robertbaer@localnet.com>
Date2019-12-04 13:56 -0800
Message-ID<kYVFF.41$0T1.18@fx05.iad>
In reply to#11448
Robert Baer wrote:
> Paul wrote:
>> Robert Baer wrote:
>>>   I try to rename or to delete a folder, and get error box, saying 
>>> "It is being used by another program or program."
>>>
>>>   Untrue.
>>>   How do i go about changing that attribute bit or unlocking the folder?
>>>
>>>   Thanks.
>>
>> Sysinternals "Handle.exe" and find out what executable has
>> a handle open on it.
>>
>> Sometimes, it is File Explorer itself which has an open
>> handle on the thing.
>>
>> And sometimes, you have a Command Prompt open, and you did
>>
>>     cd /blah/blah/the_folder
>>
>> and *that's* why the system has a handle on it. If you do
>>
>>     cd /some/other/folder/not/near/that/one
>>
>> or, if you close the Command Prompt window, the handle
>> is no longer present and the file can be deleted.
>>
>> You have to use your thinking cap on these.
>> Or, be forced to use Handle.exe to tell you the
>> process doing it.
>>
>> I fall for the Command Prompt one, all the time...
>>
>>     Paul
>    Weird!
>    Just to re-verify the problem folders, i tried to delete the pesky ones.
>    And *poof* they got deleted with no fuss.
>    Are you some kind of magician?
> 
>    Thanks.
> 
   Downloaded SysInternals toolbox; handle and a few others i tried 
crashed - something about entry point in some dll.
   Methinks the programs were "improved" ('up'graded) to force Win7 or 
"better".

    Thanks

[toc] | [prev] | [next] | [standalone]


#11450

FromPaul <nospam@needed.invalid>
Date2019-12-04 17:27 -0500
Message-ID<qs9bsu$oeb$1@dont-email.me>
In reply to#11449
Robert Baer wrote:
> Robert Baer wrote:
>> Paul wrote:
>>> Robert Baer wrote:
>>>>   I try to rename or to delete a folder, and get error box, saying 
>>>> "It is being used by another program or program."
>>>>
>>>>   Untrue.
>>>>   How do i go about changing that attribute bit or unlocking the 
>>>> folder?
>>>>
>>>>   Thanks.
>>>
>>> Sysinternals "Handle.exe" and find out what executable has
>>> a handle open on it.
>>>
>>> Sometimes, it is File Explorer itself which has an open
>>> handle on the thing.
>>>
>>> And sometimes, you have a Command Prompt open, and you did
>>>
>>>     cd /blah/blah/the_folder
>>>
>>> and *that's* why the system has a handle on it. If you do
>>>
>>>     cd /some/other/folder/not/near/that/one
>>>
>>> or, if you close the Command Prompt window, the handle
>>> is no longer present and the file can be deleted.
>>>
>>> You have to use your thinking cap on these.
>>> Or, be forced to use Handle.exe to tell you the
>>> process doing it.
>>>
>>> I fall for the Command Prompt one, all the time...
>>>
>>>     Paul
>>    Weird!
>>    Just to re-verify the problem folders, i tried to delete the pesky 
>> ones.
>>    And *poof* they got deleted with no fuss.
>>    Are you some kind of magician?
>>
>>    Thanks.
>>
>   Downloaded SysInternals toolbox; handle and a few others i tried 
> crashed - something about entry point in some dll.
>   Methinks the programs were "improved" ('up'graded) to force Win7 or 
> "better".
> 
>    Thanks

You could take Sysinternals back to 2014 using archive.org.

The interface to that site is being too clever right
now, so maybe later we'll be allowed to use it.

My own link archive isn't coughing up anything good
at the moment.

    Paul

[toc] | [prev] | [next] | [standalone]


#11451

FromRobert Baer <robertbaer@localnet.com>
Date2019-12-04 14:46 -0800
Message-ID<%GWFF.230957$FR8.102284@fx45.iad>
In reply to#11450
Paul wrote:
> Robert Baer wrote:
>> Robert Baer wrote:
>>> Paul wrote:
>>>> Robert Baer wrote:
>>>>>   I try to rename or to delete a folder, and get error box, saying 
>>>>> "It is being used by another program or program."
>>>>>
>>>>>   Untrue.
>>>>>   How do i go about changing that attribute bit or unlocking the 
>>>>> folder?
>>>>>
>>>>>   Thanks.
>>>>
>>>> Sysinternals "Handle.exe" and find out what executable has
>>>> a handle open on it.
>>>>
>>>> Sometimes, it is File Explorer itself which has an open
>>>> handle on the thing.
>>>>
>>>> And sometimes, you have a Command Prompt open, and you did
>>>>
>>>>     cd /blah/blah/the_folder
>>>>
>>>> and *that's* why the system has a handle on it. If you do
>>>>
>>>>     cd /some/other/folder/not/near/that/one
>>>>
>>>> or, if you close the Command Prompt window, the handle
>>>> is no longer present and the file can be deleted.
>>>>
>>>> You have to use your thinking cap on these.
>>>> Or, be forced to use Handle.exe to tell you the
>>>> process doing it.
>>>>
>>>> I fall for the Command Prompt one, all the time...
>>>>
>>>>     Paul
>>>    Weird!
>>>    Just to re-verify the problem folders, i tried to delete the pesky 
>>> ones.
>>>    And *poof* they got deleted with no fuss.
>>>    Are you some kind of magician?
>>>
>>>    Thanks.
>>>
>>   Downloaded SysInternals toolbox; handle and a few others i tried 
>> crashed - something about entry point in some dll.
>>   Methinks the programs were "improved" ('up'graded) to force Win7 or 
>> "better".
>>
>>    Thanks
> 
> You could take Sysinternals back to 2014 using archive.org.
> 
> The interface to that site is being too clever right
> now, so maybe later we'll be allowed to use it.
> 
> My own link archive isn't coughing up anything good
> at the moment.
> 
>     Paul
   Yes, i tried that. Downloads do not work.
   At least i was temporarily able to rename _some_ folders..

[toc] | [prev] | [next] | [standalone]


#11452

FromPaul <nospam@needed.invalid>
Date2019-12-04 22:08 -0500
Message-ID<qs9sc6$8h6$1@dont-email.me>
In reply to#11451
Robert Baer wrote:
> Paul wrote:
>> Robert Baer wrote:
>>> Robert Baer wrote:
>>>> Paul wrote:
>>>>> Robert Baer wrote:
>>>>>>   I try to rename or to delete a folder, and get error box, saying 
>>>>>> "It is being used by another program or program."
>>>>>>
>>>>>>   Untrue.
>>>>>>   How do i go about changing that attribute bit or unlocking the 
>>>>>> folder?
>>>>>>
>>>>>>   Thanks.
>>>>>
>>>>> Sysinternals "Handle.exe" and find out what executable has
>>>>> a handle open on it.
>>>>>
>>>>> Sometimes, it is File Explorer itself which has an open
>>>>> handle on the thing.
>>>>>
>>>>> And sometimes, you have a Command Prompt open, and you did
>>>>>
>>>>>     cd /blah/blah/the_folder
>>>>>
>>>>> and *that's* why the system has a handle on it. If you do
>>>>>
>>>>>     cd /some/other/folder/not/near/that/one
>>>>>
>>>>> or, if you close the Command Prompt window, the handle
>>>>> is no longer present and the file can be deleted.
>>>>>
>>>>> You have to use your thinking cap on these.
>>>>> Or, be forced to use Handle.exe to tell you the
>>>>> process doing it.
>>>>>
>>>>> I fall for the Command Prompt one, all the time...
>>>>>
>>>>>     Paul
>>>>    Weird!
>>>>    Just to re-verify the problem folders, i tried to delete the 
>>>> pesky ones.
>>>>    And *poof* they got deleted with no fuss.
>>>>    Are you some kind of magician?
>>>>
>>>>    Thanks.
>>>>
>>>   Downloaded SysInternals toolbox; handle and a few others i tried 
>>> crashed - something about entry point in some dll.
>>>   Methinks the programs were "improved" ('up'graded) to force Win7 or 
>>> "better".
>>>
>>>    Thanks
>>
>> You could take Sysinternals back to 2014 using archive.org.
>>
>> The interface to that site is being too clever right
>> now, so maybe later we'll be allowed to use it.
>>
>> My own link archive isn't coughing up anything good
>> at the moment.
>>
>>     Paul
>   Yes, i tried that. Downloads do not work.
>   At least i was temporarily able to rename _some_ folders..

This is the top level back in 2014.

https://web.archive.org/web/20140510132622/http://technet.microsoft.com/en-US/sysinternals/bb545027

Handle V3.51

https://web.archive.org/web/20140420085235/http://technet.microsoft.com/en-us/sysinternals/bb896655

Download the ZIP file.

https://web.archive.org/web/20130508165540if_/http://download.sysinternals.com/files/Handle.zip

*******

To test it, try the following.

What I notice is, Acrobat Reader seems to work good.
It uses a handle.

1) On your scratch disk, copy over some PDF and give it
    a recognizable name like "handle_test.pdf".

2) Open it with Acrobat Reader (AcroRd32.exe on my computer).

3) Now, open a Command Prompt.
    Here, I'm asking the program, whether it can find any item
    where a process has this file open.

    handle.exe handle_test.pdf

    It will check the namespace for anything with that name.

    It returns:

    AcroRd32.exe  pid: 744 type: File   248: L:\handle_test.pdf

This tells me that if I were to try to delete "L:\handle_test.pdf"
the process in Task Manager with the PID of 744 would stop it
from happening. If I close Acrobat Reader, then try and delete
the file, it should delete.

If you type "handle" with no name for it to search for, it
dumps everything with a handle.

There should be a handle for my COM port, yet I can't find it.

    Paul

[toc] | [prev] | [next] | [standalone]


#11453

FromRobert Baer <robertbaer@localnet.com>
Date2019-12-06 08:10 -0800
Message-ID<q4vGF.212877$YF.9703@fx43.iad>
In reply to#11452
Paul wrote:
> Robert Baer wrote:
>> Paul wrote:
>>> Robert Baer wrote:
>>>> Robert Baer wrote:
>>>>> Paul wrote:
>>>>>> Robert Baer wrote:
>>>>>>>   I try to rename or to delete a folder, and get error box, 
>>>>>>> saying "It is being used by another program or program."
>>>>>>>
>>>>>>>   Untrue.
>>>>>>>   How do i go about changing that attribute bit or unlocking the 
>>>>>>> folder?
>>>>>>>
>>>>>>>   Thanks.
>>>>>>
>>>>>> Sysinternals "Handle.exe" and find out what executable has
>>>>>> a handle open on it.
>>>>>>
>>>>>> Sometimes, it is File Explorer itself which has an open
>>>>>> handle on the thing.
>>>>>>
>>>>>> And sometimes, you have a Command Prompt open, and you did
>>>>>>
>>>>>>     cd /blah/blah/the_folder
>>>>>>
>>>>>> and *that's* why the system has a handle on it. If you do
>>>>>>
>>>>>>     cd /some/other/folder/not/near/that/one
>>>>>>
>>>>>> or, if you close the Command Prompt window, the handle
>>>>>> is no longer present and the file can be deleted.
>>>>>>
>>>>>> You have to use your thinking cap on these.
>>>>>> Or, be forced to use Handle.exe to tell you the
>>>>>> process doing it.
>>>>>>
>>>>>> I fall for the Command Prompt one, all the time...
>>>>>>
>>>>>>     Paul
>>>>>    Weird!
>>>>>    Just to re-verify the problem folders, i tried to delete the 
>>>>> pesky ones.
>>>>>    And *poof* they got deleted with no fuss.
>>>>>    Are you some kind of magician?
>>>>>
>>>>>    Thanks.
>>>>>
>>>>   Downloaded SysInternals toolbox; handle and a few others i tried 
>>>> crashed - something about entry point in some dll.
>>>>   Methinks the programs were "improved" ('up'graded) to force Win7 
>>>> or "better".
>>>>
>>>>    Thanks
>>>
>>> You could take Sysinternals back to 2014 using archive.org.
>>>
>>> The interface to that site is being too clever right
>>> now, so maybe later we'll be allowed to use it.
>>>
>>> My own link archive isn't coughing up anything good
>>> at the moment.
>>>
>>>     Paul
>>   Yes, i tried that. Downloads do not work.
>>   At least i was temporarily able to rename _some_ folders..
> 
> This is the top level back in 2014.
> 
> https://web.archive.org/web/20140510132622/http://technet.microsoft.com/en-US/sysinternals/bb545027 
> 
> 
> Handle V3.51
> 
> https://web.archive.org/web/20140420085235/http://technet.microsoft.com/en-us/sysinternals/bb896655 
* XML Parsing Error: junk after document element
Location: 
https://web.archive.org/web/20130521182234/http://download.sysinternals.com/Files/Handle.zip
Line Number 2, Column 1:<script 
type="text/javascript">window.addEventListener('DOMContentLoaded',function(){var 
v=archive_analytics.values;v.service='wb';v.server_name='wwwb-app43.us.archive.org';v.server_ms=573;archive_analytics.send_pageview({});});</script><script 
type="text/javascript" src="/_static/js/ait-client-rewrite.js" 
charset="utf-8"></script>


> 
> 
> Download the ZIP file.
> 
> https://web.archive.org/web/20130508165540if_/http://download.sysinternals.com/files/Handle.zip 
* That worked, *AND* Handle also worked.

    What exactly do the flags R,W,D mean?
    I think they mean the NOT function, ie D means cannot delete, etc.

   Thanks!

> 
> 
> *******
> 
> To test it, try the following.
> 
> What I notice is, Acrobat Reader seems to work good.
> It uses a handle.
> 
> 1) On your scratch disk, copy over some PDF and give it
>     a recognizable name like "handle_test.pdf".
> 
> 2) Open it with Acrobat Reader (AcroRd32.exe on my computer).
> 
> 3) Now, open a Command Prompt.
>     Here, I'm asking the program, whether it can find any item
>     where a process has this file open.
> 
>     handle.exe handle_test.pdf
> 
>     It will check the namespace for anything with that name.
> 
>     It returns:
> 
>     AcroRd32.exe  pid: 744 type: File   248: L:\handle_test.pdf
> 
> This tells me that if I were to try to delete "L:\handle_test.pdf"
> the process in Task Manager with the PID of 744 would stop it
> from happening. If I close Acrobat Reader, then try and delete
> the file, it should delete.
> 
> If you type "handle" with no name for it to search for, it
> dumps everything with a handle.
> 
> There should be a handle for my COM port, yet I can't find it.
> 
>     Paul

[toc] | [prev] | [next] | [standalone]


#11454

FromRobert Baer <robertbaer@localnet.com>
Date2019-12-06 08:56 -0800
Message-ID<3LvGF.17354$ej.1364@fx18.iad>
In reply to#11452
Paul wrote:
> Robert Baer wrote:
>> Paul wrote:
>>> Robert Baer wrote:
>>>> Robert Baer wrote:
>>>>> Paul wrote:
>>>>>> Robert Baer wrote:
>>>>>>>   I try to rename or to delete a folder, and get error box, 
>>>>>>> saying "It is being used by another program or program."
>>>>>>>
>>>>>>>   Untrue.
>>>>>>>   How do i go about changing that attribute bit or unlocking the 
>>>>>>> folder?
>>>>>>>
>>>>>>>   Thanks.
>>>>>>
>>>>>> Sysinternals "Handle.exe" and find out what executable has
>>>>>> a handle open on it.
>>>>>>
>>>>>> Sometimes, it is File Explorer itself which has an open
>>>>>> handle on the thing.
>>>>>>
>>>>>> And sometimes, you have a Command Prompt open, and you did
>>>>>>
>>>>>>     cd /blah/blah/the_folder
>>>>>>
>>>>>> and *that's* why the system has a handle on it. If you do
>>>>>>
>>>>>>     cd /some/other/folder/not/near/that/one
>>>>>>
>>>>>> or, if you close the Command Prompt window, the handle
>>>>>> is no longer present and the file can be deleted.
>>>>>>
>>>>>> You have to use your thinking cap on these.
>>>>>> Or, be forced to use Handle.exe to tell you the
>>>>>> process doing it.
>>>>>>
>>>>>> I fall for the Command Prompt one, all the time...
>>>>>>
>>>>>>     Paul
>>>>>    Weird!
>>>>>    Just to re-verify the problem folders, i tried to delete the 
>>>>> pesky ones.
>>>>>    And *poof* they got deleted with no fuss.
>>>>>    Are you some kind of magician?
>>>>>
>>>>>    Thanks.
>>>>>
>>>>   Downloaded SysInternals toolbox; handle and a few others i tried 
>>>> crashed - something about entry point in some dll.
>>>>   Methinks the programs were "improved" ('up'graded) to force Win7 
>>>> or "better".
>>>>
>>>>    Thanks
>>>
>>> You could take Sysinternals back to 2014 using archive.org.
>>>
>>> The interface to that site is being too clever right
>>> now, so maybe later we'll be allowed to use it.
>>>
>>> My own link archive isn't coughing up anything good
>>> at the moment.
>>>
>>>     Paul
>>   Yes, i tried that. Downloads do not work.
>>   At least i was temporarily able to rename _some_ folders..
> 
> This is the top level back in 2014.
> 
> https://web.archive.org/web/20140510132622/http://technet.microsoft.com/en-US/sysinternals/bb545027 
> 
> 
> Handle V3.51
> 
> https://web.archive.org/web/20140420085235/http://technet.microsoft.com/en-us/sysinternals/bb896655 
> 
> 
> Download the ZIP file.
> 
> https://web.archive.org/web/20130508165540if_/http://download.sysinternals.com/files/Handle.zip 
> 
> 
> *******
> 
> To test it, try the following.
> 
> What I notice is, Acrobat Reader seems to work good.
> It uses a handle.
> 
> 1) On your scratch disk, copy over some PDF and give it
>     a recognizable name like "handle_test.pdf".
> 
> 2) Open it with Acrobat Reader (AcroRd32.exe on my computer).
> 
> 3) Now, open a Command Prompt.
>     Here, I'm asking the program, whether it can find any item
>     where a process has this file open.
> 
>     handle.exe handle_test.pdf
> 
>     It will check the namespace for anything with that name.
> 
>     It returns:
> 
>     AcroRd32.exe  pid: 744 type: File   248: L:\handle_test.pdf
> 
> This tells me that if I were to try to delete "L:\handle_test.pdf"
> the process in Task Manager with the PID of 744 would stop it
> from happening. If I close Acrobat Reader, then try and delete
> the file, it should delete.
> 
> If you type "handle" with no name for it to search for, it
> dumps everything with a handle.
> 
> There should be a handle for my COM port, yet I can't find it.
> 
>     Paul
   Must be using the wrong snooper.
   If i edit a file anywhere in H:\Old Data\Office WORD Document DOC, 
Handle finds it and reports that ONLY.
   It says nothing about the folder Old Data, so i still have no idea 
why i cannot REName 'Old Data' 'OldData' or REName 'H:\Old Data' 
'H:\OldData'.
   Get syntax error.

   Vaguely remember there is a resident command to "mirror" a path as a 
drive; with that maybe i could MIRROR 'H:\Old Data\Office WORD Document 
DOC' Y: and then use fakedrive Y.

   That should do the trick for me.
   Thanks.

[toc] | [prev] | [next] | [standalone]


#11455

FromPaul <nospam@needed.invalid>
Date2019-12-06 18:01 -0500
Message-ID<qsemku$4ua$1@dont-email.me>
In reply to#11454
Robert Baer wrote:
> Paul wrote:
>> Robert Baer wrote:
>>> Paul wrote:
>>>> Robert Baer wrote:
>>>>> Robert Baer wrote:
>>>>>> Paul wrote:
>>>>>>> Robert Baer wrote:
>>>>>>>>   I try to rename or to delete a folder, and get error box, 
>>>>>>>> saying "It is being used by another program or program."
>>>>>>>>
>>>>>>>>   Untrue.
>>>>>>>>   How do i go about changing that attribute bit or unlocking the 
>>>>>>>> folder?
>>>>>>>>
>>>>>>>>   Thanks.
>>>>>>>
>>>>>>> Sysinternals "Handle.exe" and find out what executable has
>>>>>>> a handle open on it.
>>>>>>>
>>>>>>> Sometimes, it is File Explorer itself which has an open
>>>>>>> handle on the thing.
>>>>>>>
>>>>>>> And sometimes, you have a Command Prompt open, and you did
>>>>>>>
>>>>>>>     cd /blah/blah/the_folder
>>>>>>>
>>>>>>> and *that's* why the system has a handle on it. If you do
>>>>>>>
>>>>>>>     cd /some/other/folder/not/near/that/one
>>>>>>>
>>>>>>> or, if you close the Command Prompt window, the handle
>>>>>>> is no longer present and the file can be deleted.
>>>>>>>
>>>>>>> You have to use your thinking cap on these.
>>>>>>> Or, be forced to use Handle.exe to tell you the
>>>>>>> process doing it.
>>>>>>>
>>>>>>> I fall for the Command Prompt one, all the time...
>>>>>>>
>>>>>>>     Paul
>>>>>>    Weird!
>>>>>>    Just to re-verify the problem folders, i tried to delete the 
>>>>>> pesky ones.
>>>>>>    And *poof* they got deleted with no fuss.
>>>>>>    Are you some kind of magician?
>>>>>>
>>>>>>    Thanks.
>>>>>>
>>>>>   Downloaded SysInternals toolbox; handle and a few others i tried 
>>>>> crashed - something about entry point in some dll.
>>>>>   Methinks the programs were "improved" ('up'graded) to force Win7 
>>>>> or "better".
>>>>>
>>>>>    Thanks
>>>>
>>>> You could take Sysinternals back to 2014 using archive.org.
>>>>
>>>> The interface to that site is being too clever right
>>>> now, so maybe later we'll be allowed to use it.
>>>>
>>>> My own link archive isn't coughing up anything good
>>>> at the moment.
>>>>
>>>>     Paul
>>>   Yes, i tried that. Downloads do not work.
>>>   At least i was temporarily able to rename _some_ folders..
>>
>> This is the top level back in 2014.
>>
>> https://web.archive.org/web/20140510132622/http://technet.microsoft.com/en-US/sysinternals/bb545027 
>>
>>
>> Handle V3.51
>>
>> https://web.archive.org/web/20140420085235/http://technet.microsoft.com/en-us/sysinternals/bb896655 
>>
>>
>> Download the ZIP file.
>>
>> https://web.archive.org/web/20130508165540if_/http://download.sysinternals.com/files/Handle.zip 
>>
>>
>> *******
>>
>> To test it, try the following.
>>
>> What I notice is, Acrobat Reader seems to work good.
>> It uses a handle.
>>
>> 1) On your scratch disk, copy over some PDF and give it
>>     a recognizable name like "handle_test.pdf".
>>
>> 2) Open it with Acrobat Reader (AcroRd32.exe on my computer).
>>
>> 3) Now, open a Command Prompt.
>>     Here, I'm asking the program, whether it can find any item
>>     where a process has this file open.
>>
>>     handle.exe handle_test.pdf
>>
>>     It will check the namespace for anything with that name.
>>
>>     It returns:
>>
>>     AcroRd32.exe  pid: 744 type: File   248: L:\handle_test.pdf
>>
>> This tells me that if I were to try to delete "L:\handle_test.pdf"
>> the process in Task Manager with the PID of 744 would stop it
>> from happening. If I close Acrobat Reader, then try and delete
>> the file, it should delete.
>>
>> If you type "handle" with no name for it to search for, it
>> dumps everything with a handle.
>>
>> There should be a handle for my COM port, yet I can't find it.
>>
>>     Paul
>   Must be using the wrong snooper.
>   If i edit a file anywhere in H:\Old Data\Office WORD Document DOC, 
> Handle finds it and reports that ONLY.
>   It says nothing about the folder Old Data, so i still have no idea why 
> i cannot REName 'Old Data' 'OldData' or REName 'H:\Old Data' 'H:\OldData'.
>   Get syntax error.
> 
>   Vaguely remember there is a resident command to "mirror" a path as a 
> drive; with that maybe i could MIRROR 'H:\Old Data\Office WORD Document 
> DOC' Y: and then use fakedrive Y.
> 
>   That should do the trick for me.
>   Thanks.
> 

If you're referring to "subst", I would not
try tying your machine in knots. This is
bad enough as it is.

You should be able to rename a path with a space,
but you should use your bailing wire and binder
twine when doing so.

    ren "H:\Old Data"  H:\OldData

The second stanza doesn't need the quotes, since
there is no space in the path in that case.

If I want to do this, both need quotes.

    ren "H:\Old Data"  "H:\Surprise Party"

Similarly,

    rmdir "H:\Old Data"

For syntax errors, there should not particularly
be any handle-style-issues. Spell it right,
quote it right... success.

HTH,
      Paul

[toc] | [prev] | [next] | [standalone]


#11456

FromRobert Baer <robertbaer@localnet.com>
Date2019-12-07 20:51 -0800
Message-ID<Vi%GF.206460$FF4.55858@fx40.iad>
In reply to#11455
Paul wrote:
> Robert Baer wrote:
>> Paul wrote:
>>> Robert Baer wrote:
>>>> Paul wrote:
>>>>> Robert Baer wrote:
>>>>>> Robert Baer wrote:
>>>>>>> Paul wrote:
>>>>>>>> Robert Baer wrote:
>>>>>>>>>   I try to rename or to delete a folder, and get error box, 
>>>>>>>>> saying "It is being used by another program or program."
>>>>>>>>>
>>>>>>>>>   Untrue.
>>>>>>>>>   How do i go about changing that attribute bit or unlocking 
>>>>>>>>> the folder?
>>>>>>>>>
>>>>>>>>>   Thanks.
>>>>>>>>
>>>>>>>> Sysinternals "Handle.exe" and find out what executable has
>>>>>>>> a handle open on it.
>>>>>>>>
>>>>>>>> Sometimes, it is File Explorer itself which has an open
>>>>>>>> handle on the thing.
>>>>>>>>
>>>>>>>> And sometimes, you have a Command Prompt open, and you did
>>>>>>>>
>>>>>>>>     cd /blah/blah/the_folder
>>>>>>>>
>>>>>>>> and *that's* why the system has a handle on it. If you do
>>>>>>>>
>>>>>>>>     cd /some/other/folder/not/near/that/one
>>>>>>>>
>>>>>>>> or, if you close the Command Prompt window, the handle
>>>>>>>> is no longer present and the file can be deleted.
>>>>>>>>
>>>>>>>> You have to use your thinking cap on these.
>>>>>>>> Or, be forced to use Handle.exe to tell you the
>>>>>>>> process doing it.
>>>>>>>>
>>>>>>>> I fall for the Command Prompt one, all the time...
>>>>>>>>
>>>>>>>>     Paul
>>>>>>>    Weird!
>>>>>>>    Just to re-verify the problem folders, i tried to delete the 
>>>>>>> pesky ones.
>>>>>>>    And *poof* they got deleted with no fuss.
>>>>>>>    Are you some kind of magician?
>>>>>>>
>>>>>>>    Thanks.
>>>>>>>
>>>>>>   Downloaded SysInternals toolbox; handle and a few others i tried 
>>>>>> crashed - something about entry point in some dll.
>>>>>>   Methinks the programs were "improved" ('up'graded) to force Win7 
>>>>>> or "better".
>>>>>>
>>>>>>    Thanks
>>>>>
>>>>> You could take Sysinternals back to 2014 using archive.org.
>>>>>
>>>>> The interface to that site is being too clever right
>>>>> now, so maybe later we'll be allowed to use it.
>>>>>
>>>>> My own link archive isn't coughing up anything good
>>>>> at the moment.
>>>>>
>>>>>     Paul
>>>>   Yes, i tried that. Downloads do not work.
>>>>   At least i was temporarily able to rename _some_ folders..
>>>
>>> This is the top level back in 2014.
>>>
>>> https://web.archive.org/web/20140510132622/http://technet.microsoft.com/en-US/sysinternals/bb545027 
>>>
>>>
>>> Handle V3.51
>>>
>>> https://web.archive.org/web/20140420085235/http://technet.microsoft.com/en-us/sysinternals/bb896655 
>>>
>>>
>>> Download the ZIP file.
>>>
>>> https://web.archive.org/web/20130508165540if_/http://download.sysinternals.com/files/Handle.zip 
>>>
>>>
>>> *******
>>>
>>> To test it, try the following.
>>>
>>> What I notice is, Acrobat Reader seems to work good.
>>> It uses a handle.
>>>
>>> 1) On your scratch disk, copy over some PDF and give it
>>>     a recognizable name like "handle_test.pdf".
>>>
>>> 2) Open it with Acrobat Reader (AcroRd32.exe on my computer).
>>>
>>> 3) Now, open a Command Prompt.
>>>     Here, I'm asking the program, whether it can find any item
>>>     where a process has this file open.
>>>
>>>     handle.exe handle_test.pdf
>>>
>>>     It will check the namespace for anything with that name.
>>>
>>>     It returns:
>>>
>>>     AcroRd32.exe  pid: 744 type: File   248: L:\handle_test.pdf
>>>
>>> This tells me that if I were to try to delete "L:\handle_test.pdf"
>>> the process in Task Manager with the PID of 744 would stop it
>>> from happening. If I close Acrobat Reader, then try and delete
>>> the file, it should delete.
>>>
>>> If you type "handle" with no name for it to search for, it
>>> dumps everything with a handle.
>>>
>>> There should be a handle for my COM port, yet I can't find it.
>>>
>>>     Paul
>>   Must be using the wrong snooper.
>>   If i edit a file anywhere in H:\Old Data\Office WORD Document DOC, 
>> Handle finds it and reports that ONLY.
>>   It says nothing about the folder Old Data, so i still have no idea 
>> why i cannot REName 'Old Data' 'OldData' or REName 'H:\Old Data' 
>> 'H:\OldData'.
>>   Get syntax error.
>>
>>   Vaguely remember there is a resident command to "mirror" a path as a 
>> drive; with that maybe i could MIRROR 'H:\Old Data\Office WORD 
>> Document DOC' Y: and then use fakedrive Y.
>>
>>   That should do the trick for me.
>>   Thanks.
>>
> 
> If you're referring to "subst", I would not
> try tying your machine in knots. This is
> bad enough as it is.
> 
> You should be able to rename a path with a space,
> but you should use your bailing wire and binder
> twine when doing so.
> 
>     ren "H:\Old Data"  H:\OldData
> 
> The second stanza doesn't need the quotes, since
> there is no space in the path in that case.
> 
> If I want to do this, both need quotes.
> 
>     ren "H:\Old Data"  "H:\Surprise Party"
> 
> Similarly,
> 
>     rmdir "H:\Old Data"
> 
> For syntax errors, there should not particularly
> be any handle-style-issues. Spell it right,
> quote it right... success.
> 
> HTH,
>       Paul
   Thanks re: subst; my best solution methinks.

[toc] | [prev] | [standalone]


Back to top | Article view | alt.computer


csiph-web