SysNative and "as administrator"

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Norbert
Member
Member
Posts: 120
Joined: 2003-10-19, 21:18 UTC

SysNative and "as administrator"

Post by *Norbert »

I have created a button with command "c:\windows\Sysnative\cmd.exe" to start a 64bit shell. The button works fine if I click it normally. But if I right click and select "as administrator" I get the error "searchpath not found". Also when I put an asterisk in front of the command ("*c:\windows\Sysnative\cmd.exe") to start directly with administrator rights, I get this error too.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It seems that it is a Windows problem. If you try to start that cmd.exe directly, you'll get same error.

I suggest to create a junction System64 for System32 folder and start System64\cmd.exe - it will work always:

Code: Select all

mklink /D %WINDIR%\System64 %WINDIR%\System32
Norbert
Member
Member
Posts: 120
Joined: 2003-10-19, 21:18 UTC

Post by *Norbert »

MVV wrote:If you try to start that cmd.exe directly, you'll get same error.
I'm using Total Commander 8.0ß11 32-bit on Win7 64 bit and c:\windows\Sysnative\cmd.exe on the command line works. But not "as admin" with a button.

Thanks for the workaround but I was reporting a bug.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Thanks for the workaround but I was reporting a bug.
Well, in this case this is the wrong forum. Ask MS for help.
As MVV pointed out: It is windows which causes this behavior!
No way for TC to do anything for you ...
#5767 Personal license
Norbert
Member
Member
Posts: 120
Joined: 2003-10-19, 21:18 UTC

Post by *Norbert »

sqa_wizard wrote:It is windows which causes this behavior!
I don't understand. SysNative is a Link/Alias/Whatever that is handled by TotalCommander, so it's up to TC to process "SysNative" correctly in the "as admin" case.
If you look at c:\windows with "Windows-Explorer" there is no "SysNative" directory.
User avatar
Flint
Power Member
Power Member
Posts: 3506
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

Norbert
It's not a link, it's a virtual folder visible to all 32-bit applications. Windows Explorer is a 64-bit application, that's why it does not see this folder.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
Norbert
Member
Member
Posts: 120
Joined: 2003-10-19, 21:18 UTC

Post by *Norbert »

I see! Thank you for the explanation.
And thanks again MVV for the workaround.
Post Reply