TCC waits for Office apps

May 20, 2008
11,380
98
Syracuse, NY, USA
... more TCC problems related to the store version of Office 2019.

I have "ExecWait=No". TCC waits after executing, for example, "excel" ... "winword".

Apparently TCC can't figure out if it's CUI or GUI.

Code:
v:\> which /a excel
excel is an external : C:\Users\vefatica\AppData\Local\Microsoft\WindowsApps\excel.EXE
excel is an external : C:\Program Files\WindowsApps\Microsoft.Office.Desktop.Excel_16051.12228.20364.0_x86__8wekyb3d8bbwe\Office16\EXCEL.exe

v:\> echo %@exetype["c:\program files\windowsapps\microsoft.office.desktop.excel_16051.12228.20364.0_x86__8wekyb3d8bbwe\office16
\excel.exe"]
0

v:\> echo %@exetype[C:\Users\vefatica\AppData\Local\Microsoft\WindowsApps\excel.EXE]
-1920

v:\> echo %@errtext[1920]
The file cannot be accessed by the system.
 
May 20, 2008
11,380
98
Syracuse, NY, USA
Not reproducible here (either the wait or failing to identify the type).

You need to figure out why your system is blocking TCC's access to the executable; that's probably the root cause of all your troubles.
CMD and PowerShell don't wait for Excel. With a handful of lines of code, I can determine if an EXE file (including Office files) is a GUI or CUI app. When I hear that others with the store version of Office 2019 are not having these problems, I'll consider it MY problem.
 
May 20, 2008
11,380
98
Syracuse, NY, USA
This problem persists. FWIW, this works in a plugin to determine that my Excel is a GUI app.

Code:
DWORD FileIsGuiApp(LPCWSTR szAppFile) // returns 1 (GUI), 0 (CUI), or last error
{
    SHFILEINFOW fi;
    DWORD_PTR pdw = SHGetFileInfoW(szAppFile, 0, &fi, sizeof(SHFILEINFOW), SHGFI_EXETYPE);
    DWORD dwLE = GetLastError();
    if ( dwLE != 0 )
        return dwLE;
    return (HIWORD(pdw) != 0) ? 1UL : 0UL;
}


Here's the result of a test of it.

Code:
"c:\Users\vefatica\AppData\Local\Microsoft\WindowsApps\excel.exe"
1920 - TCC: (Sys) The file cannot be accessed by the system.

"c:\program files\windowsapps\microsoft.office.desktop.excel_16051.12228.20364.0_x86__8wekyb3d8bbwe\office16\excel.exe"
1 - GUI

"d:\tc26\tcc.exe"
0 - CUI
 
Similar threads
Thread starter Title Forum Replies Date
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
Joe Caverly .BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4
M Strange error messages from TCC in FTP copy Support 7
Kachupp Documentation tcc-rt versions Support 1
V Comments from a first-time user (TCC 26) Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.28 Support 0
C TCC 26 BATCOMP BTM problems? Support 5
E TCC/CMD difference Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT Public Beta RC2 Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT v26 Public Beta build 26.0.21 Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT Public Beta Build 26.0.20 Support 0

Similar threads