我给自己的Sass+Compass,在Windows下写个bat,快速cd到我的sass目录

在Windows下,我总是要打开Ruby的cmd来进行Sass,其中要写好多cd,次数多了,自己的多敲,的确能记得更牢靠,但是无形中会浪费自己的一点点敲cd命令的时间,所以我想到自己在windows下,能快速达到我要compass watch的目录,嘻嘻。

@echo on
@echo test Sass
date/t
C:
D:
cd ..
cd wamp
cd www
cd hallpando
cd templates
cd test
cd css
date/t time/t
C:WindowsSystem32cmd.exe /E:ON /K C:Ruby200insetrbvars.bat

双击运行之后的结果是:

 

最终,我执行完这个bat文件之后,我只需要在窗口敲入"compass watch"就可以,oh Yeah!!

原文地址:https://www.cnblogs.com/fsong/p/4587508.html