Executing Batch Files 
Author Message
 Executing Batch Files

Need a way to execute a batch file when clicking a button, I'm using VB
Script on an ASP page.


Tue, 29 Apr 2003 03:00:00 GMT  
 Executing Batch Files
Hi there,

I am not sure if your batch file is a DOS .bat file or if is a VBS file, in
any case if you want to run a DOS batch file here is the syntax:

Dim objShell
Set objShell=CreateObject("WScript.Shell")
objShell.Run "%comspec% /c filename.bat",,TRUE

The TRUE value allows VBScript to continue process after the DOS process is
complete.

Regards,

Mariano Gomez
Auxis, Inc.



Quote:
> Need a way to execute a batch file when clicking a button, I'm using VB
> Script on an ASP page.



Tue, 29 Apr 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help with SHELL to Execute Batch File

2. Executing Batch files from VB?

3. Executing Batch files from VB?

4. executing batch file

5. how to execute batch file using PDW?

6. execute batch file

7. Executing batch files from VB 4

8. Executing batch files

9. Executing batch files from Web Page

10. Executing Batch Files that contain references to Network Drives from ASP Pages.

11. how to execute a batch file into a VBS file

12. How to execute a batch file within a vbscript or activeX ftp object

 

 
Powered by phpBB® Forum Software