atom/apm

cannot use apm in Windows batch file

mhechthz opened this issue · 0 comments

I try to run (because of proxy) following batch file:

set APMPATH=C:\Users\...
set ATOMPATH=C:\Users\...

set PROXY_IP=user:pass@myproxy:myport
%APMPATH%\apm config set proxy myproxy:myport
%APMPATH%\apm config set http-proxy %PROXY_IP%
%APMPATH%\apm config set https-proxy %PROXY_IP%

%ATOMPATH%\atom --proxy-server=http://%PROXY_IP

After the first apm command the batch stops.

How can the batch run properly?