https://ss64.com/nt/cmd.html http://steve-jansen.github.io/guides/windows-batch-scripting/part-2-variables.html 變數要看 for /? use in kvirc .appveyor.yml 把變數前三個字元跳過 - '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars%ssl_arch:~3%.bat"' - if exist VCdeps.7z (curl -kLo VCdeps.7z https://ci.appveyor.com/api/projects/craftwar_appveyor/obs-deps/artifacts/VCdeps.7z -f --retry 5 -z VCdeps.7z) else (curl -kLo VCdeps.7z https://ci.appveyor.com/api/projects/craftwar_appveyor/obs-deps/artifacts/VCdeps.7z -f --retry 5 -C -) output stderr to file dir > a.txt 2>&1 AppVeyor的各種修正 記錄用,也許能學到一些有用的指令 .sh extension is not properly mapped on VS 2017 image https://github.com/appveyor/ci/issues/1881 cmd / c ftype sh_auto_file = "C:\msys64\usr\bin\bash.exe" " `" %L `" " % * | out-null cmd / c assoc .sh = sh_auto_file Batch file: Find if substring is in string (not in a fil