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 vefatica

  1. vefatica

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

    I built a new 4UTILS in which the timestamp log is off by default. I can turn it on for non-transient, non-pipe shells in TCSTART.BTM. A new ZIP file is in place. copy "ftp://vefatica.net/4plugins/x64/4utils64.zip"
  2. vefatica

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

    The info comes from the Win32 API function CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) (and a couple other functions for stepping through the data). I'm sure Rex is aware of it; TakeCmd.DLL imports it so I reckon it's used somewhere. I suspect @PID and ISAPP are using a much more robust...
  3. vefatica

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

    In a way ... it's the CD that TCC calls first. But if you don't specify /H, /P, /K, or /F, it tells TCC "I'm not the guy you want" and TCC uses its internal CD. For that reason I'd expect mine to be (a few microseconds) slower. I'll think about the timestamp log. I prefer it to TCC's...
  4. vefatica

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

    I don't know about the speed. Your computer is faster than my 3.5 GHz, right? Could it be Windows or your CPU saving energy? I don't know about such things. Do you have a heck of a lot of stuff going on in the background? I'm on Windows 10 which idles at about 90 processes. Here's a...
  5. vefatica

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

    You can get it like this. copy "ftp://vefatica.net/4plugins/x64/4utils64.zip" It has a lot of stuff in it, notably @EXEPIDS[]. v:\> help @exepids @EXEPIDS[appname[.exe]] = space separated list (possibly empty) of PIDs for appname Put the DLL in a "plugins" subdirectory in TCC's home...
  6. vefatica

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

    I didn't know about it. But is it relevant to this thread? v:\> path /n C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\ C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\ C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem...
  7. vefatica

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

    ISAPP is also very slow too, probably for the same reason. v:\> timer /q & do i=1 to 1000 ( if isapp tcc.exe noop ) & timer Timer 1 off: 13:41:14 Elapsed: 0:00:29.290 v:\> timer /q & do i=1 to 1000 ( if "%@exepids[tcc.exe]" != "" noop ) & timer Timer 1 off: 13:41:28 Elapsed: 0:00:01.544
  8. vefatica

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

    Yes. It's much faster than whatever TCC does (EnumProcesses, maybe).
  9. vefatica

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

    You're right, @PID is slow. Here (at 3.5 GHz) I get about 0.04 sceonds. But I can't think of anything built-in (to TCC or Windows) that will be faster. I have a plugin that exports @EXEPIDS[exename] (like @PID[exename,+] but 10~25 times the speed depending on how you test. I'll say more if...
  10. vefatica

    Unelevated TCC in elevated TCMD

    Can you do that without seeing a console momentarily? If you configure Tab1 as discussed above you can start TCMD elevated with its only tab unelevated.
  11. vefatica

    Unelevated TCC in elevated TCMD

    It even works if I specify my own credentials. Though TCMD is elevated and I'm an admin, the new tab contains an unelevated TCC.
  12. vefatica

    Unelevated TCC in elevated TCMD

    I'm a little surprised but it's possible to run an unelevated TCC in an elevated TCMD. I did it with Tabs\Run, specifying the credentials of a non-admin user. I wonder if there's an easier way.
  13. vefatica

    Problem using start to launch admin command prompt via TCC toolbar button

    @Richard Kaye, have you (or anyone) ever done this successfully? I don't think it's possible for an unelevated TCMD to host an elevated app in a tab. Forgetting about the toolbar button for a moment, if, in an enelevated TCC running in an unelevated TCMD, you issue start /tab /elevated cmd...
  14. vefatica

    3rd party editors

    I use VisualStudio for C programming and, for almost two decades, TextPad for everything else. TextPad does everything I want. This thread surely reinforces the adage "To each his own" (and probably a few others).
  15. vefatica

    @PID, v31 vs. v32

    As I (not very accurately) said before, all of these work in a TCC started with START /UNELEVATED in spite of the error message. I wonder where the error comes from and if it could be expected and ignored, at least in some cases. IF ISAPP tcc.exe doesn't work but that's another story. v:\>...
Back
Top