Open Administrative console in current folder

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

Open Administrative console in current folder

Post by *obmana »

Hi,

I have console button in TC toolbar, set to run cmd.exe. If I click on it it opens console in current folder of focused pane, but if I right click on it and select "As Administrator" is opens in %systemroot%\system32, hence my topic.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7022
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Thats normal Windows behaviour.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1396a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.6 x64
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Elevated processes run in different context so don't inherit environment from parent process. But you can change current folder with such trick:

Code: Select all

Command: *cmd.exe
Parameters: cmd.exe /k "cd /d "%P""
obmana
Junior Member
Junior Member
Posts: 53
Joined: 2013-08-28, 15:35 UTC

Post by *obmana »

Thanks MVV.
That does the trick.
Post Reply