Take Command V10 @WINPID suggestion.

May 29, 2008
565
4
Groton, CT
Here's what I found:

[C:\Program Files\JPSoft\TCMD10]echo %@winpid[Process Explorer*]
2244

That happens to be right. (It would be nice if the help file said that wild cards were allowed. )

[C:\Program Files\JPSoft\TCMD10]echo %@winpid[Process Explorer]
TCC: (Sys) The parameter is incorrect.
"%@winpid[Process Explorer]"
It would be better if @WINPID returned -1 if a window with a matching name is not found. Then it could be tested fairly easily as
SET MYWINPID=%@WINPID[My application title]
IF %MYWINPID LT 0 QUIT 3
or something like that.

I like most of the new features. (I don't dislike any of them.)

I look forward to a stable version -- I'll be able to remove a bunch of kludges I have in my batch files, mostly related to PIDs of other processes, testing if particular things are running, etc.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
dcantor wrote:
| Here's what I found: [C:\Program Files\JPSoft\TCMD10]echo
| %@winpid[Process Explorer*] 2244 That happens to be right. (It
| would be nice if the help file said that wild cards were allowed. )
| [C:\Program Files\JPSoft\TCMD10]echo %@winpid[Process Explorer] TCC:
| (Sys) The parameter is incorrect. "%@winpid[Process Explorer]" It
| would be better if @WINPID returned -1 if a window with a matching
| name is not found. Then it could be tested fairly easily as SET
| MYWINPID=%@WINPID[My application title] IF %MYWINPID LT 0 QUIT 3
| or something like that. I like most of the new features. (I don't
| dislike any of them.) I look forward to a stable version -- I'll be
| able to remove a bunch of kludges I have in my batch files, mostly
| related to PIDs of other processes, testing if particular things are
| running, etc.

For some reason the above post was delivered to my mailbox as a single line
(lines wrapped only by my mail client). It wasn't posted by chance from a
*nix platform, was it?
--
Steve
 
May 29, 2008
565
4
Groton, CT
dcantor wrote:
For some reason the above post was delivered to my mailbox as a single line
(lines wrapped only by my mail client). It wasn't posted by chance from a
*nix platform, was it?
--
Steve

Good heavens, no! For some reason I still don't understand, my first attempt to post resulted in the version you received by email. I edited it a few minutes later to one with real line breaks (though I don't know if everyone can see it that way). I wish we were using a newsgroup.
 
Similar threads
Thread starter Title Forum Replies Date
rconn Take Command/LE and TCC/LE v10 build 57 uploaded Support 0
rconn Take Command v10 build 57 uploaded Support 0
rconn Take Command/LE v10 build 56 uploaded Support 3
rconn Take Command v10 build 56 uploaded Support 11
rconn Take Command v10 build 49 uploaded Support 0
rconn Take Command / TCMD/LE / TCC/LE v10 release build 48 uploaded Support 2
rconn Take Command / TCMD/LE / TCC/LE v10 beta build 47 uploaded Support 5
rconn Take Command / TCMD/LE / TCC/LE v10 beta build 46 uploaded Support 9
rconn Take Command v10 beta build 44 uploaded Support 1
rconn Take Command / TCMD/LE / TCC/LE v10 beta build 43 uploaded Support 9
rconn Take Command v10 beta build 41 uploaded Support 6
rconn Take Command v10 beta build 40 uploaded Support 3
rconn Take Command v10 beta build 39 uploaded Support 18
rconn Take Command v10 beta build 38 uploaded Support 0
rconn Take Command v10 beta build 37 uploaded Support 0
rconn Take Command v10 beta build 36 uploaded Support 0
rconn Take Command v10 beta build 35 uploaded Support 0
rconn Take Command v10 beta build 34 uploaded Support 23
rconn Take Command v10 beta build 33 uploaded Support 9
rconn Take Command v10 build 32 uploaded Support 9
rconn Take Command v10 build 31 uploaded Support 4
rconn Take Command v10 Public Beta Available! Support 0
T VIEW only works from command line Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 7
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10

Similar threads