Problem with Start /elevated

Feb 26, 2013
TCC 14.03.59 x64 Windows 7 [Version 6.1.7601]
TCC Build 59 Windows 7 Build 7601 Service Pack 1

I can't get the "/elevated" switch to work with the Start command and I can't figure out what I'm doing wrong.

I normally use a limited user account, and have a shortcut to TCC on my desktop. TCC has been installed in the default location. If I right click the shortcut and select "Run as Administrator" I'm prompted for the id and password of an admin user, and once entered I have a TCC window in which %_elevated returns 1.

If, however, I start a TCC window from that shortcut, and then at the prompt enter

start /runas AdminUser password /elevated /pgm "C:\Program Files\JPSoft\TCMD14x64\tcc.exe"

then a TCC opens in the context of the admin user but I'm not prompted for any user credentials and %_elevated returns 0.

Am I wrong in expecting that using /elevated should have the same effect as "Run as Administrator"? If I'm not, can anyone suggest where I'm going wrong?

Feb 26, 2013
/RUNAS and /ELEVATED are mutually exclusive options. And /RUNAS cannot start an elevated process, regardless of the user name you provide; so if you want an elevated process use "START /ELEVATED programname"

Ah, I see. I assumed you had to provide the user name/password as well as the /elevated switch. I've got it to work with the syntax you describe, thanks Rex.

Similar threads
Thread starter Title Forum Replies Date
Alpengreis Fixed TCMD FileExplorer Start-Directory problem Support 4
dcantor Start problem in b153 Support 4
old coot Problem with INS key flag in the debugger status bar Support 3
Dick Johnson Weird Color Problem Support 10 Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9 Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Problem with %_do_loop in nested do loops Support 2 New Problem with later Windows 10 Support 10
Peter Murschall A little problem with LEAVE and COMMENT Support 5
M Handling of %~I problem Support 4
WinLanEm FOR problem Support 18
K Problem With SCRPUT /u Support 3
vefatica What's TCMD's problem with ^e[0m? Support 13
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
rps Regex problem: \xnn not recognized as a hex character Support 0
rps PRIORITY LOW problem Support 1
old coot Regex problem: \xnn not recognized as a hex character Support 12
vefatica Another problem with build 22. Support 3
Alpengreis [23.x] Download-Problem Support 2
S Problem with " Support 3
C Problem navigating forums Support 11
x13 Problem listing repository files using DIR http(s)://... Support 8
Joe Caverly Problem with TEE in v22 Support 2
Alpengreis Problem with thousands delimiter and colors Support 17
M Take Command 18, migrating to another machine, license problem. Support 1
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
rps How to? @search problem Support 2
WinLanEm @SELECT problem Support 6
T Fixed Problem with use of Batch parameters in the IDE Support 1
Oz Solomon Problem with "list" Support 14
S V21.24 theme problem Support 2
Alpengreis Problem if command prompt is not legacy Support 4
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
G Odd problem - screen brightness Support 4

Similar threads