0

I would like to run a batch script that calls another batch script hosted on the internet. In bash, this can be done using something like this:

curl -s -L http://j.mp/script.sh | bash

How can I achieve this in windows batch. I have busybox and curl available but no powershell.

I looked around, but maybe I am using the wrong keywords as I cannot find what I am after.

alxbrd
  • 107
  • 5
  • Something like `curl whatever > temp.bat && cmd /C temp.bat` – TessellatingHeckler Oct 14 '15 at 15:45
  • In the end I hacked it with curl -o something then call something then del something. But I was wondering if there is a better way. – alxbrd Oct 14 '15 at 16:02
  • Well... there is a better way, but you said no PowerShell and didn't mention being on a company network, so you can't use group policies, PowerShell package managers, DSC, or even Invoke-Expression. You're stuck in the 1980s. – TessellatingHeckler Oct 14 '15 at 18:00

0 Answers0