netbox开启服务后自动访问首页
来源:互联网 发布:淘宝搜不到店铺 编辑:程序博客网 时间:2024/05/16 14:12
netbox开启服务后自动访问首页
Dim httpd
Shell.Service.RunService "NBWeb", "NetBox Web Server", "NetBox Http Server Sample"
'---------------------- Service Event ---------------------
Sub OnServiceStart()
Set httpd = NetBox.CreateObject("NetBox.HttpServer")
Set httpd = NetBox.CreateObject("NetBox.HttpServer")
If httpd.Create("", 800) = 0 Then
Set host = httpd.AddHost("", "/wwwroot")
Set host = httpd.AddHost("", "/wwwroot")
host.EnableScript = true
host.AddDefault "index.html"
host.AddDefault "index.html"
httpd.Start
else
Shell.Quit 0
end if
Set ht = CreateObject("NetBox.HtmlWindow")
ht.open "http://localhost/index.html"
ht.showDialog
End Sub
else
Shell.Quit 0
end if
Set ht = CreateObject("NetBox.HtmlWindow")
ht.open "http://localhost/index.html"
ht.showDialog
End Sub
Sub OnServiceStop()
httpd.Close
End Sub
httpd.Close
End Sub
Sub OnServicePause()
httpd.Stop
End Sub
httpd.Stop
End Sub
Sub OnServiceResume()
httpd.Start
End Sub
httpd.Start
End Sub
- netbox开启服务后自动访问首页
- netbox开启服务后自动访问首页
- 自动开启GPS服务
- 自动开启snmp服务
- thinkphp自动跳到首页 --开启域名部署/子域名部署/泛域名部署/IP访问部署
- RT5350自动开启服务问题
- 3秒钟后自动转到首页
- 使用花生壳+NetBox搭建网站服务
- 访问远程计算机需要开启的服务
- MQ开启密码访问平台服务步骤
- hadoop开启后用http访问出错
- linux系统重启后自动开启服务?
- symbian v3模拟器开启后自动关闭
- C#MVC站点发布后只能访问首页的问题
- 去掉首页访问地址后的index.html
- 访问支付宝(淘宝)首页IE自动关闭解决方案
- 将SSH服务加入系统服务中开机自动开启
- 不活动页面 一段时间后 自动退出 回到首页页面
- Unicode版本与None-Unicode版本中,将string赋给structure的不同方式。(cl_abap_container_utilities=>READ_CONTAINER_C)
- javascript-automation服务器不能创建对象
- 政策力挺上调工资 剑指收入分配不公现象
- 了解客户端上网流程 发现网站是否挂马
- 一次ISO9001受审的经验
- netbox开启服务后自动访问首页
- 从菜鸟到高手必读:全面了解系统进程
- 自绘按钮的实现
- 组播协议和组播路由
- 欢迎来到我的博客!
- 四书之“中庸”学习日记2
- 分治算法--进一步应用
- JSP 的刷新问题!
- 跟我一起写 Makefile(二)