Locked tab change

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
crenshaw
Junior Member
Junior Member
Posts: 3
Joined: 2007-09-22, 21:36 UTC
Location: Denmark

Locked tab change

Post by *crenshaw »

My problem is that I want to lock a tab to a certain directory and I want it to behave as if it was a root directory, meaning if i try to navigate to the parent directory I want it do nothing as apposed to opening a new tab which is rather annoying. Is this possible somehow or perhaps something I could request as a feature? I've looked at LockedTabChange but that doesn't seem to do what I want.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You can use subst X: C:\Path command in order to show specific folder as a drive so it won't allow to go up.
User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom »

This is a more convoluted "solution" than MVV's but may be of some use.

Create a Folder such as:

C:\DIRTMP

Create a junction within said folder, such as:

C:\DIRTMP\JUMPTO
---|> which points to the folder in question you wish to have "locked"

Change folder to C:\
View Properties on C:\DIRTMP, Security, Advanced
--|> Remove inheritance on this folder, convert
Add a deny access to users for C:\DIRTMP (This Folder only)

Now you can't directly access "C:\DIRTMP"
But you can access any of it's subfolders.

If you store various junctions within \DIRTMP, you could make it be a "Launch" area for short-cutting "ROOT" folders. You likely would want a .cmd to toggle security permissions on the folder to quickly re-allow adding more junctions, and then back to limited view.

This would disallow you to go "updir" from C:\DIRTMP\JUMPTO, and likewise would not create a new tab.

Granted it would be lovely if Mr.Ghisler could add a few more types of LOCK in 8.5
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I'm using this batch to change permissions, it may be used to forbid access for everyone, and to add all permissions for child folders just via usercommands or buttonbar buttons.

If applied to subfolders of top folder, disables permissions' inheritance and allows browsing them even if top folder browsing is forbidden (must be used first).

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Sudo.exe %SystemRoot%\System32\cmd.exe /c %COMMANDER_PATH%\ModifyUserAccess.bat
%WL ua_grant_users_f
TOTALCMD.exe,27
Add full permissions for Users

0
-1
If applied to top folder, forbids entering it (must be used after previous one).

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Sudo.exe %SystemRoot%\System32\cmd.exe /c %COMMANDER_PATH%\ModifyUserAccess.bat
%WL ua_deny_all_rd
TOTALCMD.exe,30
Forbid reading contents for Everyone

0
-1
If applied to top folder, enables browsing them all.

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Sudo.exe %SystemRoot%\System32\cmd.exe /c %COMMANDER_PATH%\ModifyUserAccess.bat
%WL ua_reset_t
TOTALCMD.exe,29
Reset permissions to inherited (recursive)

0
-1
Post Reply