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


Groups > alt.computer > #11456

Re: rename or delete folder

Subject Re: rename or delete folder
Newsgroups alt.computer
References (4 earlier) <qs9bsu$oeb$1@dont-email.me> <%GWFF.230957$FR8.102284@fx45.iad> <qs9sc6$8h6$1@dont-email.me> <3LvGF.17354$ej.1364@fx18.iad> <qsemku$4ua$1@dont-email.me>
From Robert Baer <robertbaer@localnet.com>
Message-ID <Vi%GF.206460$FF4.55858@fx40.iad> (permalink)
Date 2019-12-07 20:51 -0800

Show all headers | View raw


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.

Back to alt.computer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web