Execute VB Script from ASP
Hello everyone,
I am trying to execute a vbs file which would read a text file and insert into the database.
I have an asp page with form controls and when i submit, in the process page have to execute the vbs file. have been trying to use
WShShell = Server.CreateObject("WScript.Shell") and run the file but not happening.
Can anyone help me out with this??
CODE:
dim WShShell, RetCode
Set WShShell = Server.CreateObject("WScript.Shell")
RetCode = WShShell.Run("D:\Project\website\admin\MigratePric eList.vbs",1, True)
response.write RetCode
set WShShell = nothing
Thank you
Krishna Kumar
|