[英]Shortcut to execute a Windows PowerShell command
I'm currently developing a discord bot and I'm quite new to programming:我目前正在开发一个 discord 机器人,我对编程很陌生:
To start the bot, I have to open a new windows PowerShell, navigate to the discord bot's folder and activate it by using the node.
要启动机器人,我必须打开一个新的 windows PowerShell,导航到 discord 机器人的文件夹并使用node.
. . To make this a lot quicker, I would like to make a.exe file to do this commands for me and execute the following commands:为了使这更快,我想制作一个 .exe 文件来为我执行此命令并执行以下命令:
cd desktop/discord bot
导航到文件夹: cd desktop/discord bot
node.
用node.
It would be wonderfull if someone knew how to do this or know where I can search for something like this.如果有人知道如何做到这一点或知道我可以在哪里搜索这样的东西,那就太好了。
For everyone that comes here and what to know how i did it.. I make a text file and converted the empty text file to an.bat file (google how to do that).对于来到这里的每个人以及知道我是如何做到的......我制作了一个文本文件并将空文本文件转换为一个 .bat 文件(谷歌如何做到这一点)。 Then with microsoft visual studio edit the file.然后用 microsoft visual studio 编辑文件。 I wrote only node.
我只写了node.
in the file and to worked great.在文件中并且工作得很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.