edutraini Posted June 1, 2016 Report Share Posted June 1, 2016 Pessoal existe alguma forma de baixar um arquivo e executar que fica hospedado no meu site no seguinte endereco http://www.emtinformatica.com.br/site/Suporte_EMT.exe por dentro do programa em vez do cliente entrar no site Quote Link to comment Share on other sites More sharing options...
kapiaba Posted June 1, 2016 Report Share Posted June 1, 2016 acho que usando o FTP. Quote Link to comment Share on other sites More sharing options...
sistem Posted June 1, 2016 Report Share Posted June 1, 2016 Ola edutrine tente esse comando via prompt, e usar o winexec bitsadmin /transfer mydownloadjob /download /priority normal URL C:\Arquivo.ext ex: bitsadmin /transfer mydownloadjob /download /priority normal http://www.emtinformatica.com.br/site/Suporte_EMT.exe c:\teste.exe ou baixe o wget para windows(similar a linux), coloca na pasta de seu sistema http://gnuwin32.sourceforge.net/packages/wget.htm ex: wget http://www.emtinformatica.com.br/site/Suporte_EMT.exe [] Quote Link to comment Share on other sites More sharing options...
sistem Posted June 1, 2016 Report Share Posted June 1, 2016 bitsadmin nao eh presente no winXP eh lento no win10 (onde testei) o exemplo abaixo eh super rapido, usando o Adodb.Stream junto com XMLHTTP (testado no win10) fontes: http://stackoverflow.com/questions/2973136/download-a-file-with-vbs http://www.pctoledo.com.br/forum/viewtopic.php?f=4&t=16791 MsgRun( "Aguarde o download...", "espere", { || DowlFile() } ) Function DowlFile() oXMLHTTP := CREATEOBJECT( "Microsoft.XMLHTTP" ) oADODBStream := CREATEOBJECT( "Adodb.Stream" ) oXMLHTTP:Open( "GET", "http://www.emtinformatica.com.br/site/Suporte_EMT.exe", .f. ) oXMLHTTP:Send() oADODBStream:Type := 1 oADODBStream:Open() oADODBStream:Write( oXMLHTTP:ResponseBody ) oADODBStream:SaveToFile( "c:\teste.exe", 2 ) Return nil Quote Link to comment Share on other sites More sharing options...
aokisantos Posted June 2, 2016 Report Share Posted June 2, 2016 Sistem, tem como informar PROXY neste seu exemplo? att. Quote Link to comment Share on other sites More sharing options...
edutraini Posted June 2, 2016 Author Report Share Posted June 2, 2016 Sistem, Parabens funcionou perfeitamente Obrigado Quote Link to comment Share on other sites More sharing options...
sistem Posted June 2, 2016 Report Share Posted June 2, 2016 aokisantos acho que sim https://gallery.technet.microsoft.com/scriptcenter/3a416e46-a9b2-4bcd-9d1a-0f84fd209d86 Sistem, tem como informar PROXY neste seu exemplo? att. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.