【发布时间】:2013-06-28 14:16:51
【问题描述】:
我正在开发一个应用程序。必须在整个项目中更改某些路径。路径是固定的,可以编辑文件(在 ".cshtml" 中)。
所以我想我可以使用批处理文件将所有“http://localhost.com”更改为“http://domain.com”(我知道相对路径和绝对路径,但在这里我必须这样做:-))
因此,如果您有可以在文件中进行更改的代码,那就太棒了!
为了完成我的问题,这里是文件和目录的路径
MyApp
MyApp/Views
MyApp/Views/Index/page1.cshtml
MyApp/Views/Index/page2.cshtml
MyApp/Views/Another/page7.cshtml
...
感谢帮助我:-)
【问题讨论】:
-
如果你说
it would be marvellous,我们会帮你的,但是,唉,你说it could be marvellous。
标签: windows batch-file command-line-interface