I'm using node js and google's https://googleapis.dev/nodejs to launch the servers and im running a start up script
curl "http://eve-robotics.com/release/EveAIO_setup.exe" --output Eve.exe
and in the logs it says
2019/12/29 20:27:44 windows-startup-script-bat: 'curl' is not recognized as an internal or external command, and this only happens for 2012,2016 instances on the 2019 it works fine, if i cannot use this command for these instances is there another way to download this file from a start up script?
Update
this is the command i am running for the start-up-script
Invoke-WebRequest -Uri "http://eve-robotics.com/release/EveAIO_setup.exe" -Headers @{"Upgrade-Insecure-Requests"="1"; "User-Agent"="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"; "Accept"="text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9"; "Accept-Encoding"="gzip, deflate"; "Accept-Language"="en-US,en;q=0.9";} -OutFile plz.exe
and after it is done running as i see in the logs of the instance i connect to it and the error i get when i try to run plz.exe is "the system cannot find the file specified".
Update Now i am getting this error after passing a full path
2019/12/30 21:36:20 windows-startup-script-ps1: Invoke-WebRequest : Illegal characters in path. 2019/12/30 21:36:20 windows-startup-script-ps1: At C:\Windows\TEMP\metadata-scripts903292515\windows-startup-script-ps1.ps1:1 2019/12/30 21:36:20 windows-startup-script-ps1: char:1 2019/12/30 21:36:20 windows-startup-script-ps1: + Invoke-WebRequest -Uri "http://eve-robotics.com/release/EveAIO_setup. ... 2019/12/30 21:36:21 windows-startup-script-ps1: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2019/12/30 21:36:21 windows-startup-script-ps1: + CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], ArgumentE 2019/12/30 21:36:21 windows-startup-script-ps1: xception 2019/12/30 21:36:21 windows-startup-script-ps1: + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Co 2019/12/30 21:36:21 windows-startup-script-ps1: mmands.InvokeWebRequestCommand
this is the command i am using
Invoke-WebRequest -Uri "http://eve-robotics.com/release/EveAIO_setup.exe" -Headers @{"Upgrade-Insecure-Requests"="1"; "User-Agent"="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"; "Accept"="text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9"; "Accept-Encoding"="gzip, deflate"; "Accept-Language"="en-US,en;q=0.9";} -OutFile C:\Users\browardboybrian\Desktop\plz.exe
curl
use PowerShellInvoke-WebRequest
. – John HanleyInvoke-WebRequest
? What is the exact error message? Add this information to your question. – John Hanley