Terminal 在命令运行时打开特定的命令Promp

Terminal 在命令运行时打开特定的命令Promp,terminal,command,prompt,Terminal,Command,Prompt,我在我的网站上使用sass,我发现每次都需要打开命令提示符/终端,键入所有命令,然后开始编程,这很烦人。如何在命令运行时保存命令提示符/终端。我正在使用Windows8和Mac来编程。谢谢你的帮助 (命令为[用于命令提示]: cd xampp/htdocs sass --watch style.scss:style.css 和[对于终端]: cd Applications/XAMPP/xamppfiles/htdocs/ sass --watch style.scss:style.css 非

我在我的网站上使用sass,我发现每次都需要打开命令提示符/终端,键入所有命令,然后开始编程,这很烦人。如何在命令运行时保存命令提示符/终端。我正在使用Windows8和Mac来编程。谢谢你的帮助

(命令为[用于命令提示]:

cd xampp/htdocs
sass --watch style.scss:style.css
和[对于终端]:

cd Applications/XAMPP/xamppfiles/htdocs/
sass --watch style.scss:style.css

非常感谢。)

我已经成功地尝试过了:

1. Create new text file on desktop;
2. Enter desired commands in text file;
3. Rename extension of text file from ".txt" --> ".bat"
例如,在bat文件中:

d:
cd server
node server.js
cmd