<%
‘Asp ile CMD kullanimi , Örnegin MSSQL Servisini Baslatma islemi

SET objShell = Server.CreateObject(”WScript.Shell”)
SET objExec = objShell.Exec(”cmd /c net start MSSQLSERVER”)

 

WHILE objExec.Status <> WshFinished
WEND
sonuc = objExec.StdOut.ReadAll()
response.write sonuc

‘Not Bu Kodlarin calisabilmesi icin cmd.exe ye IUSR nin yazma izni olmasi gerekmektedir!

%>

 

Yazan Mustafa Sahin
AspveAsp.Net

Posted in Asp Örnek Kodlar |

Mesajinizi / Yorumunuzu Yazin

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Kategoriler

Arsivler

Baglantilar

Site ici Arama

Meta: