回答:
netbox确实能让asp文件生成一个exe。
在错误提示中的Please select startup,意思是请你选择一个起始文件,估计你没有选择。
在生产exe文件的过程中需要用到main.box文件,你没有MAIN.box,所以无法生成exe了。如果源文件夹中含有MAIN.box文件,在选择好了源文
件夹后,main.box就会自动出现在“启动”右侧的下来列表框中了。
至于main.box文件是什么样子的,可以参考这篇文章:
/Article/wangzhanjianshe/2008-10-28/Article_20081028165925_4717.html
另外,在netbox安装目录的Samples文件夹中还有一些子目录,在里面有一些main.box的例子,大家可以参考:
Dim httpd
Shell.Service.RunService "NBWeb", "NetBox Web Server", "NetBox Http Server Sample"
'---------------------- Service Event ---------------------
Sub OnServiceStart()
Set httpd = NetBox.CreateObject("NetBox.HttpServer")
If httpd.Create("", 80) = 0 Then
Set host = httpd.AddHost("", "\wwwroot")
host.EnableScript = true
host.AddDefault "default.asp"
host.AddDefault "default.htm"
host.AddDefault "index.asp"
host.AddDefault "index.htm"