欢迎使用CSDN-markdown编辑器

来源:互联网 发布:女童长裤春秋淘宝网 编辑:程序博客网 时间:2024/06/15 19:54

每次项目启动nw App都要回到nw.exe所在的目录,在拖拽项目文件夹到

nw.exe来开启App,时间长了就觉得比较麻烦了。再次,我们看看怎么

用bat脚本来启动项目App。

首先,我的目录结构是这样的
—-nw
——–quick-start
————config.json
————index.html
————start.bat
——–nw.exe
我们通过start.bat 文件来启动quick-start项目

start.bat内容:

call ..\nw.exe ..\quick-start

这样,我们每次直接运行start.bat就可以启动项目,不用再退回到上级目录,不用再拖拽quick-start目录到nw.exe来启动项目。

0 0