views:

35

answers:

1

Hi, I have an ASP site(not asp.net, old asp) which executes some lines on the server-side.

I want to run an exe in the server side code, but i'm not familiar with asp programming - the site I got was already built, i just need to add this little code and that's all. I think the ASP code is in VB as it's very familiar to VB and has the same syntax.

Thanks

+1  A: 

The idea is to work with WShell object.

read here:

http://classicasp.aspfaq.com/general/how-do-i-execute-a-dos-command/batch-file/exe-from-asp.html

or here:

http://www.2tiff.com/help/all/how_to/asp.htm

Faruz
I tried this, but got the following error:"Microsoft VBScript runtime error '800a01a8Object required: WScript"in line 184, which is this:"set wshell = CreateObject("WScript.Shell")"
jbkkd
It's supposed to be Server.CreateObject AFAIK
Faruz