j'ai essayé!! Est ce possible de tester en pas à pas car je pense que mon fichier Bat ne s'execute pas (le fichier BAT marche si je l'execute tout seul mais pas dans la page ASP)
<% Set WSHShell=Server.createobject("WScript.shell") Exec=WSHShell.Run("command /c \\griou\mapserver\gg\suppr.bat",0, true) Set WSHShell=nothing %> Merci
------------------------------- Réponse au message : -------------------------------
oui voici un exemple :
Set WSHShell = Server.CreateObject("WScript.Shell") adip = 127.0.0.1 rc = WSHShell.Run("command /c ping -n 1 " & adip & " >" & ficsortie, 0, True) et pour executer un .bat rc = WSHShell.Run("command /c c:\test.bat", 0, True)
------------------------------- Réponse au message : -------------------------------
Est-il possible d'executer un fichier ou une commande DOS dans une page ASP ou HTML en VBScript?
Merci GG
|