.sh文件写成.bat文件?

cd ./game-server && mkdir -p logs && npm install -d

echo '============ game-server npm installed ============'

cd ..

cd ./web-server && npm install -d

echo '============ web-server npm installed ============'

cd ..

这是sh文件中的内容,求帮忙,急

首先文件名修改为.bat,其中的内容修改如下:

cd ./game-server && md logs && cd ./logs && npm install -d
echo '============ game-server npm installed ============'
cd ..
cd ./web-server && npm install -d
echo '============ web-server npm installed ============'
cd ..