General Macro Scheduler discussion
Moderators: JRL, Dorian (MJT support)
-
Me_again
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
Post
by Me_again » Wed Oct 18, 2006 6:02 pm
How can I identify which OS is running?
It appears that programs with long names result in different process image names in W2K and XP. So unless I'm missing something it looks like a portable macro that ID's and/or kills a process has to be conditional on the OS.
For instance "areallylongprogram.exe" will have a W2K process of "areallylongprog" but gets the full name in XP. To make it worse "areallylongprogram2.exe" produces a second "areallylongprog" process so in W2K and there is no way to tell them apart. (Yes, I really do have a third party application which has subprograms with names that long.)
I'm using the VBScript IsProcessRunning and KillProcess code that has been posted on here before.
-
JRL
- Automation Wizard
- Posts: 3529
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
Post
by JRL » Wed Oct 18, 2006 6:32 pm
Will the Macro Scheduler OS_VER variable help?
-
Me_again
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
Post
by Me_again » Wed Oct 18, 2006 7:03 pm
That's what I was looking for. Thank you!
-
pgriffin
- Automation Wizard
- Posts: 460
- Joined: Wed Apr 06, 2005 5:56 pm
- Location: US and Europe
Post
by pgriffin » Wed Oct 18, 2006 7:06 pm
If these are programs are created by you, then could you prefix the program name (even though they may be long) with a unique string?
surely, in that many characters, you can make them unique....
-
Me_again
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
Post
by Me_again » Wed Oct 18, 2006 7:18 pm
It's a purchased application. I hate typing so there's
no way I would use names that long

-
JRL
- Automation Wizard
- Posts: 3529
- Joined: Mon Jan 10, 2005 6:22 pm
- Location: Iowa
Post
by JRL » Wed Oct 18, 2006 8:13 pm
Me_again wrote:I hate typing...
Me too!