|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ASP Command Line?
This is all new to me...
I need to be able to execute DOS command lines via ASP. This would include running an .exe along with passing commands/switches. The platform is Win2k/IIS Is this easily accomplished with ASP? |
|
#2
|
|||
|
|||
|
After seeing that few have looked at this thread and no one has responded...I thought that I would add more to my question to see if anyone has any thoughts.
I have been tasked with creating a web-based interface to interact with a DOS-based command line executable. There are several parameters that will need to be passed to the application. Three of the parameters are being "pulled" from another server via LDAP and will need to be pushed into the command line. ASP was the only alternative to dev with in this case. After doing a bit of research, the only web language that seems to be used with command lines is PHP. I have seen some info speaking about using ASP, but some additional DLLs (Aspexec.zip) are needed on the server in order to work with command lines. I am still in the dark as to how to approach this. Someone here has to have done this using ASP...anyone? |
|
#3
|
|||
|
|||
|
Are you talking about running a command line program on the web server computer?
If yes you can use windows script host if proper permissions are granted. Here is an example from the good folks at 4guysfromrolla http://www.4guysfromrolla.com/webtech/102998-1.shtml |
|
#4
|
|||
|
|||
|
Thanks Doug, but that works only if I need to execute a specific batch file.
PHP Code:
the "serverName" and "userName" need to be passed into the string on each use as they will be different each time this page is used and these values will be coming from another application via LDAP. PHP Code:
the "/a" and the "do this now" also will vary, but will be selected by the user. |
|
#5
|
|||
|
|||
|
You can pass the variable data to your batch file easily
ws.run "c:\myfolder\mybatchfile.bat " & sUser & " " & sPass Then in your batchfile do something like myprogramname %1 %2 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > ASP Command Line? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|