如何启动使用批处理文件在Visual Studio 2012 asp.net框架上创建的网站. [英] How to launch site created on Visual Studio 2012 asp.net frame work using batch file.
问题描述
我已在Visual Studio 2012上创建了一个Web应用程序.此应用程序使用ODP.NET提供程序与oracle 11g建立了数据库连接.我想使用bat文件在计算机上启动网站.
I have created a web application on Visual Studio 2012. This application has database connectivity with oracle 11g using ODP.NET provider. I wanted to launch a site on a computer using bat file.
推荐答案
您可以只使用"%ProgramFiles%\ Internet Explorer \ iexplore.exe< ; target url>在Internet Explorer中启动该网站.但是,如果您不想在运行后留下浏览器实例,则最好使用诸如 WGet .如果您在目标计算机上安装了PowerShell v3 +,也可以尝试采用 Invoke-WebRequest .
You can just use "%ProgramFiles%\Internet Explorer\iexplore.exe <target url>" to launch the site in internet explorer. But if you don't want browser instance be left after run, you had better use tools like WGet .If you have PowerShell v3+ installed on target machine, you can also try use Invoke-WebRequest .
这篇关于如何启动使用批处理文件在Visual Studio 2012 asp.net框架上创建的网站.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!