您的位置:首页 > 运维架构 > Tomcat

批处理直接启动WebServer运行asp工程,像tomcat一样手动指定www目录

2011-10-11 16:07 537 查看
注:需要修改 www目录,如果WebServer目录有变动也需要修改(一般装了VS就有了,我装的VS2008,有可能位置不一样的)。

www目录:E:\WEB\www

端口号:8599

WebServer目录:C:\Program Files\Common Files\microsoft shared\DevServer\9.0\WebDev.WebServer.EXE

运行后启动IE浏览器地址:cmd /c start iexplore http://localhost:8599 >nul

运行后打开www目录:cmd /c explorer "E:\WEB"

@echo off

echo 正在启动 ASP.NET Development Server 。。。

cmd /c start "" "C:\Program Files\Common Files\microsoft shared\DevServer\9.0\WebDev.WebServer.EXE" /port:8599 /path:"E:\WEB\www" /vpath:"/" >nul

cmd /c start iexplore http://localhost:8599 >nul

cmd /c explorer "E:\WEB" >nul

echo 启动成功!

rem pause >nul
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐