Konu Başlığı: ASP ile IIS Yönetimi | ACİL
View Single Post
Sponsorlu Bağlantılar
Zoque.Forum
Advertisement
Old 10.08.2007   #5 (permalink)
arsende
 
arsende's Avatar
 
Üyelik Tarihi: 05.11.2005
Yer: Istanbul
Yaş: 28
Mesaj: 486
Re: ASP ile IIS Yönetimi | ACİL

Entrenix ticari bir uygulama bu nedenle kendine özel DLL mevcut ve kodları ingilizce yazılmıştır ...

WScript.Shell, FileSystemObject ve GetObject("IIS://localhost/logging") şeklinde bir çok şey yapabilirsiniz doğrudan sistem kaynakları ile ..

http://www.microsoft.com/windows/win...p/aore5pyr.htm
http://msdn2.microsoft.com/en-us/library/ms524877.aspx

vs... isterseniz bir çok fonksiyon elimde mevcut özelden mail adresinizi atın gönderebilirim..

Alıntı:
Sub RestartIIS()

Set whs = server.createobject("WScript.Shell")
command = "net stop ""World Wide web Publishing Service"" "
whsRun = whs.Run(command, 0, True)
command = "net start ""World Wide web Publishing Service"" "
whsRun = whs.Run(command, 0, True)
If err.number<>0 Then
WriteLogLine "In WWW Services Restarted"
Else
WriteLogLine "In ExtendFrontPage Success"
End If

command = "net stop ""FTP Publishing Service"" "
whsRun = whs.Run(command, 0, True)
command = "net start ""FTP Publishing Service"" "
whsRun = whs.Run(command, 0, True)
If err.number<>0 Then
WriteLogLine "In WWW Services Restarted"
Else
WriteLogLine "In ExtendFrontPage Success"
End If

command = "net stop ""Simple mail Transport Protocol (SMTP)"" "
whsRun = whs.Run(command, 0, True)
command = "net start ""Simple mail Transport Protocol (SMTP)"" "
whsRun = whs.Run(command, 0, True)
If err.number<>0 Then
WriteLogLine "In WWW Services Restarted"
Else
WriteLogLine "In ExtendFrontPage Success"
End If
set whsRun = nothing
End Sub
arsende şu an çevrimdışı   Mesajdan alıntı yaparak yeni bir cevap ekleyin