Error in TCC/LE when succeed smoothly in native windows cmd.exe

Nov 8, 2015
27
1
I made a flle assiociation of .pml extension. So I have in shell\open\command key registry:

z:\tcc /h/c "reg add "HKCU\Software\Sysinternals\Process Monitor" /v MainWindow /t REG_BINARY /d 2c000000 /f&z:\Procmon.exe /quiet /openlog "%v""

then get into TCC/LE console and type:
App.pml <enter>

it failed an error:
TCC: (Sys) The system cannot find the path specified.
"z:\tcc /h/c reg add HKCU\Software\Sysinternals\Process Monitor /v MainWindow /t REG_BINARY /d 2c000000000 /f&z:\Procmon.exe"

while in windows cmd.exe prompt it flawlessly run it and smoothly launch the Procmon.exe with App.pml as parameter

How to solve this ?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,446
88
Albuquerque, NM
prospero.unm.edu
That registry key is really for use by Explorer. To create file associations in TCC, I would suggest an environment variable:
Code:
set .pml=command....
This way also causes filename completion to pick up on .PML files.
 
Nov 8, 2015
27
1
doesn't matter.
The point is as I said,

Why it runs flawlessly in native windows while tcc/le fails ?
 
May 20, 2008
11,378
98
Syracuse, NY, USA
Using your command with appropriate paths, with CMD.EXE.

1515639588505.png


The default shell\open\command (shown below) works in bot CMD and TCC/LE.
Code:
V:\> reg query HKEY_CLASSES_ROOT\.pml

HKEY_CLASSES_ROOT\.pml
    (Default)    REG_SZ    ProcMon.Logfile.1

HKEY_CLASSES_ROOT\.pml\PersistentHandler

V:\> reg query HKEY_CLASSES_ROOT\ProcMon.Logfile.1\shell\open\command

HKEY_CLASSES_ROOT\ProcMon.Logfile.1\shell\open\command
    (Default)    REG_SZ    "G:\processmonitor\procmon.exe" /OpenLog "%1"
 
May 20, 2008
11,378
98
Syracuse, NY, USA
I was mistaken. I thought it worked because after being successful from CMD, procmon.exe resets the shell\open\command to the default.

With this command,

Code:
g:\tccle14\tcc.exe /c reg add "HKCU\Software\Sysinternals\Process Monitor" /v MainWindow /t REG_BINARY /d 2c000000 /f & g:\processmonitor\Procmon.exe /quiet /openlog "%v"

and trying only with TCC/LE, I see that the reg command succeeded and then I get a rather inexplicable error (below).

1515648284947.png


However, a small change fixed that ... change "%v" to "%l". I don't know why "%v" works in CMD and not in TCC

This one worls in TCC/LE.

Code:
g:\tccle14\tcc.exe /c reg add "HKCU\Software\Sysinternals\Process Monitor" /v MainWindow /t REG_BINARY /d 2c000000 /f & g:\processmonitor\Procmon.exe /quiet /openlog "%l"

But, as I said above, when it does work (once) procmon.exe resets that command back to the default.
 
Nov 8, 2015
27
1
I am figuring out.. sorry if I won't respond. It'd be slow and long time to get my solving and tell it back
 
Similar threads
Thread starter Title Forum Replies Date
I TCC/LE 13.0 error with long file names and quotes TCC/LE Support 3
T Error when trying to update TCC/LE v13.00.12 TCC/LE Support 2
G What does this error means: TCC: Unknown command "C:\Program" TCC/LE Support 13
K_Meinhard Small error in debugger TCC/LE Support 3
K_Meinhard Script error TCC/LE Support 1
jbanaszczyk WAD If it is an error? Diference between aliases and batches TCC/LE Support 5
E updater.exe fails with error message TCC/LE Support 2
L updater.exe fails with error message TCC/LE Support 1
jason404 Error Foreground Colour setting not working TCC/LE Support 2
D Installation Error TCC/LE Support 0
Jesse Heines Request for TCC Date Command Custom Format Example TCC/LE Support 4
P TCC LE crashes without any info after recent windows updates TCC/LE Support 2
V TCC LE doesn't expand %~ff correctly TCC/LE Support 5
A vcvarsall.bat command not working on TCC LE command prompt TCC/LE Support 16
M DEBUG dialogs from TCC TCC/LE Support 1
Captain'Flam False condition in IF force loop exit (TCC/LE 14 64bits) TCC/LE Support 3
M How to get the number of chars, which fit in the currently displayed TCC-window? TCC/LE Support 3
M TCC/LE works with Windows Insider Skip Ahead Build 17618 TCC/LE Support 1
D Bug with TCC/LE and volumes mounted under directories TCC/LE Support 5
A TCC/LE x64 no longer works with Windows 10 Insider Preview Build 17063 TCC/LE Support 7
adam_0 TCC/LE string replacement differing from cmd.exe TCC/LE Support 3
D Incorrect icon for TCC/LE prompt here, Windows 10 TCC/LE Support 5
B Run TCC without interactive logon TCC/LE Support 0
T WAD option /u on TCC LE 13.06.77 TCC/LE Support 2
B Copy command to set timestamp not working in TCC/LE TCC/LE Support 5
R WAD TCC/LE does not set %_ffind_files TCC/LE Support 1
P Window width TCC TCC/LE Support 3
A installer for latest tcc/le isn't working TCC/LE Support 0
M Any plans for an updated TCC/LE version TCC/LE Support 16
miXza-81 Fixed There is Batch breaking bug in TCC LE (x64) TCC/LE Support 9
M Getting started with TCC/LE TCC/LE Support 3
John A TCC/LE not finding files in the c:\windows\system32\ directory? TCC/LE Support 4
Tim Rowe How to? TCC/LE colour not working with RSpec TCC/LE Support 14
R converting from NT to TCC/LE TCC/LE Support 3
jbanaszczyk [Q] How to retrieve / set current TCC/LE language TCC/LE Support 1
T C# Process.Start() never ends when starting TCC/LE process? TCC/LE Support 5
R WAD TCC LE pipe fails TCC/LE Support 6
M TCC LE x64 13.0 crash in Win 8 Pro 64-bit TCC/LE Support 0
A ftp on tcc/le TCC/LE Support 2
B What are the TCC settings that will allow maximum cmd.exe compatibility? TCC/LE Support 11
R TCC/LE attrib +/- C? TCC/LE Support 6
S Just wondering what TCC/LE 13.05.68 fixed TCC/LE Support 1
R TCC/LE steals the .btm association? TCC/LE Support 1
S Fixed TCC-LE 13.05.65 x64 "option" command tabs broken TCC/LE Support 4
rconn News TCC/LE 13.05 Released TCC/LE Support 0
F WAD Different value for %~dpfsI in TCC/LE TCC/LE Support 2
Charles Dye ? command, TCC/LE vs. supported TCC/LE Support 3
B TCC/LE prompt here TCC/LE Support 1
G Pin TCC/LE to task bar and start menu TCC/LE Support 6
jason404 A particular program that I like to use no longer works in TCC/LE TCC/LE Support 25

Similar threads