Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applications Running

Status
Not open for further replies.

Max12

IS-IT--Management
Feb 22, 2002
3
Hi, I'm a newbie in this. What I want, it's to be able to look at the process list to see if an application is already running before starting it (on a terminal server, to control my licenses). Thanks for you help.
 
Not exactly sure what you're looking for, but I'll give it a shot.

You could probably use something like the following:
Code:
On Error Resume Next
   Set oWord = GetObject(, "Word.Application")
   If Err.Number <> 0 Then
      Err.Clear
      Set oWord = CreateObject(&quot;Word.Application&quot;)
   End If
'Then whatever you plan to do with it.
Hope that helped.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top