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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute Batch File 1

Status
Not open for further replies.

DariceLR

MIS
Jun 20, 2001
27
0
0
US
I have an asp page that was executing a batch file with the following code:

'kick off the process that imports the file data into the database
Dim command
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = LocalPath&batchname
Executor.Parameters = ""
strResult = Executor.ExecuteDosApp

However, I had to do it instead of in the asp page, in a .vbs file. How do accomplish the exact same as above, but in a .vbs?

Thanks in advance ****************
DariceLR
:-{} :-V
****************
 
Have a look at thread222-465112 this should help -
Substitute you batch file for the exe.


cjw
 
This is my result, thanks SonofEmidec1100 for the help!

' finally we need to kick off the process that imports the file data into the database
'Set Executor = CreateObject("ASPExec.Execute")
'Executor.Application = LocalPath&batchname
'Executor.Parameters = ""
'strResult = Executor.ExecuteDosApp
'LocalPath = LocalPath & "\" & batchname

'Shell LocalPath,0
Set oShell = CreateObject("WSCript.shell")
oShell.Run "T:\Temp\upldPReq.bat" ****************
DariceLR
:-{} :-V
****************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top