Ciao a tutti.
Ho inserito in una pagina asp questo script
<%
sPath = "C:/......./batfile.bat"
Set WShShell = Server.CreateObject("WScript.Shell")
RetCode = WShShell.Run(sPath,8,true)
Set WShShell = Nothing
%>
che dovrebbe, in teoria, far girare un file batch da asp.
Quando faccio il browse della pagina vedo una finestra dos che si apre
e si chiude velocemente, ma se vado a verificare (ho fatto una prova con un batch che fa il net stop "nome servizio") il servizio rimane startato. La pagina asp non restituisce alcun errore.
Da cosa potrebbe dipendere?
Grazie.
PS: Il sistema operativo è Windows server 2003.