|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
running a batch file through ASP
Hi all
I am trying to run a batch file through my ASP. Now i know i can simply write the address of the .bat file in the HREF tag of <a>. however the trade off is that it requires a extra click to see if i would like to open the file from its current location or save t before running. Is there any other way that i can call the .bat file and not have this option come up Regards Amruta |
|
#2
|
|||
|
|||
|
it took a while but i found an answer
<% set shell=server.createobject("WScript.shell")
mess=shell.Run("c:\winnt\scripts\yourscriptname.bat", 2, true) if(mess=0) then %> worked <% else %> didn't work <% end if %> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > running a batch file through ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|