Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by Charles Dye

  1. Charles Dye

    fast way to count the number of running processes for a specific program

    To unload a plugin, use PLUGIN /U with the plugin's internal name, not its filename. So: plugin /u 4utils
  2. Charles Dye

    Have WHICH say how it located an external program ...

    Are you asking me why Vincent doesn't use PATH /N? Force of habit, maybe. Or to save vertical space in his posts.
  3. Charles Dye

    fast way to count the number of running processes for a specific program

    CreateToolhelp32Snapshot() ?
  4. Charles Dye

    How to? Problem with WinMerge Prediffer when TCC is set as CMD replacement

    Just to clarify: Are you saying that you have changed COMSPEC to point to TCC? Or are you merely observing that when you are running TCC, COMSPEC points to TCC? And that WinMerge inherits the troublesome value from TCC?
  5. Charles Dye

    Have WHICH say how it located an external program ...

    Well, the Start/Run dialog checks it, anyway.
  6. Charles Dye

    Unelevated TCC in elevated TCMD

    I do see the console window briefly. It doesn't bother me, but your mileage may vary.
  7. Charles Dye

    Unelevated TCC in elevated TCMD

    You can also start /unelevated /tab
  8. Charles Dye

    @PID, v31 vs. v32

    I have a plugin that does this — though I no longer remember why — and I can confirm that START /UNELEVATED causes OpenProcessToken(GetCurrentProcess(),...) to fail. Does this constitute an actual problem? I really don't know.
  9. Charles Dye

    (Solved) TCC seems to only be running DOS commands, but not TCC commands

    I notice that ASSOC returned a filetype of TCMD.Batch, but the filetype you are using in the second command is tcc.batch.
  10. Charles Dye

    am i going crazy? WHY CAN'T I PASS %1 SUCCESSFULLY

    I'm amazed that that's legal!
  11. Charles Dye

    am i going crazy? WHY CAN'T I PASS %1 SUCCESSFULLY

    I am trying to reproduce this behavior: C:\Test>which 7z 7z is an external : C:\Bin\Util\7z.exe C:\Test>type test1.btm @echo off setlocal set USE_7Z=1 set TO_UNZIP=c:\test\test.7z call test2.btm Foo Bar Fum if %USE_7Z eq 1 ( 7z x -aoa "%TO_UNZIP" ) call test2.btm Foo Bar Fum endlocal...
  12. Charles Dye

    am i going crazy? WHY CAN'T I PASS %1 SUCCESSFULLY

    How are you calling 7z.exe? Are you using the full pathname, or a path search? Or maybe an alias?
  13. Charles Dye

    am i going crazy? WHY CAN'T I PASS %1 SUCCESSFULLY

    Is it only batch files, or is there maybe an alias in there somewhere?
  14. Charles Dye

    Detect Windows Terminal

    No, I've never tried those. They might be an idea for v2.0. Or then again maybe not, because.... Yes, and I make it available via a variable. Once in Windows Terminal, always in Windows Terminal, but: the handle can change. Tabs can be split off to a new window, or moved from one WT...
  15. Charles Dye

    Detect Windows Terminal

    Brute force. I scan for new TCC popups and dialogs eight times a second with EnumThreadWindows(). When a new one appears, force it to the front (dialogs sometimes appear under Take Command) and give it focus. If it's offscreen (Console2 does this sometimes), move it where it's visible. When...
Back
Top