Run as Admin issue

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
speller2
Junior Member
Junior Member
Posts: 92
Joined: 2009-01-26, 13:49 UTC

Run as Admin issue

Post by *speller2 »

Hi! Sorry if I repeat already discussed issue. I have a button on the toolbar for hosts file editing with following parameters:
Command: notepad.exe
Parameters: hosts
Start path: %systemroot%\system32\drivers\etc
It work fine if I simply click on the button. But if I right-click on it and choose Run as Administrator notepad starts successfully with elevated rights but it can not open the hosts file with message: "Can not find file hosts.txt. Create it?"
W7
Is this issue a TC issue and can it be fixed?
User avatar
petermad
Power Member
Power Member
Posts: 16115
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Try this instead:
Command: notepad.exe %systemroot%\system32\drivers\etc\hosts
Parameters: <blank>
Start path: <blank>

I don't know why it doesn't work your way - it ought to.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
speller2
Junior Member
Junior Member
Posts: 92
Joined: 2009-01-26, 13:49 UTC

Post by *speller2 »

petermad, thank you! :) it work fine )
User avatar
petermad
Power Member
Power Member
Posts: 16115
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I have filed a bug report about this - http://ghisler.ch/board/viewtopic.php?t=33004
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply