If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > open application

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-03, 07:46
gleech gleech is offline
Registered User
 
Join Date: Dec 2002
Posts: 20
open application

Dear All

Can somebody tell me how I do the follwoing:

I want some code which will see whether an application is open, if it is, it lauches the appliaction, if the application isnn't open the codeopens the application

I'd prefer itto be is javascript, but vbscript will be OK

I know how to open the application, what I don't know is how to see whether it is already open

I've started with this code which opens notepad

var oShell = new ActiveXObject("Shell.Application");
var commandToRun = "C:\\Winnt\\Notepad.exe";
oShell.ShellExecute(commandToRun, "","", "open", "1");

but i want an if else statement to see whther it's already opened, then to just lauch the application

thanks for all yor help
Reply With Quote
  #2 (permalink)  
Old 06-25-03, 21:52
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
what does this have to do with ASP?
__________________
Tim
Reply With Quote
  #3 (permalink)  
Old 06-26-03, 10:13
gleech gleech is offline
Registered User
 
Join Date: Dec 2002
Posts: 20
Quote:
Originally posted by MrWizard
what does this have to do with ASP?


pretty simple really

a javascript function within an asp page, which runs when the user clicks a button


I've sorted it now anyhow
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On