如何启动使用批处理文件在Visual Studio 2012 asp.net框架上创建的网站. [英] How to launch site created on Visual Studio 2012 asp.net frame work using batch file.

查看:50
本文介绍了如何启动使用批处理文件在Visual Studio 2012 asp.net框架上创建的网站.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆