当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - writing a bat file that runs node.js with administrator rights and run a .js file

问题描述:

It's been quite a while since I've written .bat files and was wondering if it could help me run a .js file located in a directory, through the node.js command prompt. It's quite tedious to have to run the node.js command prompt with administrator rights, change directory to the right location and run the .js file daily, thus I'd like a quicker way of doing that, but how do I do this?

分享给朋友:
您可能感兴趣的文章:
随机阅读: