invoke a windows application from VBScript 
Author Message
 invoke a windows application from VBScript

Hallo..

i try to invoke a windows application from an ASP page with the following
code:

    Set WshShell = CreateObject("Wscript.Shell")
    WshShell.Exec("C:\MyFolder\MyProgram.exe")

but the program cannot start.

if i try with the same code in a script callde 'MyScript.wsf' and i try from
the command line with     Wscript MyScript.wsf   ...   the program
'MyProgram.exe' start correctly.

Can anyone help me?
Tanks in advance

Massimo



Sun, 21 Mar 2004 20:29:45 GMT  
 invoke a windows application from VBScript
"...invoke a windows application from an ASP page ..."

There are always 2 sides to an ASP page - server side script and client side script.  What side are you on and what sort of program is "...\MyProgram.exe"?

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--


Quote:
> Hallo..

> i try to invoke a windows application from an ASP page with the following
> code:

>     Set WshShell = CreateObject("Wscript.Shell")
>     WshShell.Exec("C:\MyFolder\MyProgram.exe")

> but the program cannot start.

> if i try with the same code in a script callde 'MyScript.wsf' and i try from
> the command line with     Wscript MyScript.wsf   ...   the program
> 'MyProgram.exe' start correctly.

> Can anyone help me?
> Tanks in advance

> Massimo



Sun, 21 Mar 2004 21:50:06 GMT  
 invoke a windows application from VBScript
I'm in server side script
and MyProgram.exe is a program that execute some SQL statements in an Oracle
DB



"...invoke a windows application from an ASP page ..."

There are always 2 sides to an ASP page - server side script and client side
script.  What side are you on and what sort of program is
"...\MyProgram.exe"?

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--



Quote:
> Hallo..

> i try to invoke a windows application from an ASP page with the following
> code:

>     Set WshShell = CreateObject("Wscript.Shell")
>     WshShell.Exec("C:\MyFolder\MyProgram.exe")

> but the program cannot start.

> if i try with the same code in a script callde 'MyScript.wsf' and i try
from
> the command line with     Wscript MyScript.wsf   ...   the program
> 'MyProgram.exe' start correctly.

> Can anyone help me?
> Tanks in advance

> Massimo



Mon, 22 Mar 2004 01:04:57 GMT  
 invoke a windows application from VBScript
Is MyProgram.exe a console mode program or one that displays any kind of UI () or expects interactive user input?

Is it sensitive to the "current directory"?  

Can it successfully run under the IUSR_machinename account used by IIS for anonymous access?  

Is there any other way to accomplish what MyProgram.exe does using ADO?

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--


Quote:
> Hallo..

> i try to invoke a windows application from an ASP page with the following
> code:

>     Set WshShell = CreateObject("Wscript.Shell")
>     WshShell.Exec("C:\MyFolder\MyProgram.exe")

> but the program cannot start.

> if i try with the same code in a script callde 'MyScript.wsf' and i try from
> the command line with     Wscript MyScript.wsf   ...   the program
> 'MyProgram.exe' start correctly.

> Can anyone help me?
> Tanks in advance

> Massimo



Mon, 22 Mar 2004 01:45:18 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. invoke a windows application from VBScript

2. TQuery SQL Property

3. Help! Problems w BDE/Local InterBase and CGI/ISAPI on WinNT/IIS

4. search record in DBF

5. invoke a windows application

6. VBScript invoking the Word 2000 Application

7. Invoking desktop applications from IE using VBScript

8. HELP: RecordCount in Delphi

9. clpb Mini-FAQ V1.34 - Essentail Reading for New Subscribers

10. how to invoke application

11. Invoking another application

12. JSCRIPT to invoke Word.Application

 

 
Powered by phpBB® Forum Software