Delete directories in use

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
hrc
Translator
Translator
Posts: 32
Joined: 04 Aug 2006, 09:59
Location: Denmark, Funen

Delete directories in use

Post by hrc »

If a process uses a directory you can't delete it, and the ServSal aborts the operation.

Any chance of a "show me what's locking the directory" feature in those situations?

It's a lot of trouble identifying these processes and a feature like this would gives us a chance to detect unautorized programs og clean up bad uninstallations.

- and it's something the clones like "Total Commander" ant others doesn't have.
User avatar
AbteriX
Posts: 94
Joined: 12 Mar 2006, 20:55
Location: Deutschland
Contact:

Post by AbteriX »

Hi hrc,
for such issues is Unlocker good for.
You find it under http://ccollomb.free.fr/unlocker/ (~ 200kB)

If you wanna carring Unlocker with you on your USB-Stick
you can copy the install folder to your Salamander folder.
Bevor using this tool you have to register one DLL.

You can do this with an simple batch file too:

Code: Select all

@ECHO OFF
REM to use Unlocker without installation, just register this DLL, Stefan.
::registering the DLL, /S means be silent
regsvr32.exe /S UnlockerCOM.dll
::and now start Unlocker for me. I will find it then in my context menu.
Unlocker.exe
Save this as _STARTME.cmd into your Unlocker folder.
Then use Unlocker by executing _STARTME.cmd
Use your User menu for to apply an button for this command.


HTH :roll:


----
Edit:

Aaaa, one thing to be proper on others PC,
use this batch to de-register this DLL bevor you wanna leave the PC
_STOPME.cmd

Code: Select all

@ECHO OFF
REM to use Unlocker without installation, just register this DLL,
:: and after you are finished and leave an PC of e.g. your friend,
:: you may wanna clean off your tracks by
:: de-registering the DLL, /S means be silent
regsvr32.exe /S /U UnlockerCOM.dll
----
Edit 2:
if one prefer to have both in one batch file, use this as "_STARTME.cmd" :

Code: Select all

@ECHO OFF
IF "%1"=="stop" GOTO _de-register
IF "%1"=="s" 	GOTO _de-register

REM to use Unlocker without installation, just register this DLL, Stefan.
::registering the DLL, /S means be silent
regsvr32.exe /S UnlockerCOM.dll
::and now start Unlocker for me. You will find it in your context menu.
Unlocker.exe
GOTO _END

:_de-register the DLL again with "_STARTME.cmd stop"
@ECHO OFF
REM to use Unlocker without installation, just register this DLL,
:: and after you are finished and leave an PC of e.g. your friend,
:: you may wanna clean off your tracks by
:: de-registering the DLL, /S means be silent
regsvr32.exe /S /U UnlockerCOM.dll

:_END
Use "_STARTME.cmd" to start
Use "_STARTME.cmd stop" to stop
AbteriX
Post Reply