Sign in to follow this  
Followers 0
infernothebest

listen on commands

19 posts in this topic

i wanna make server and a client but i dont know how i can make the client listen 2 the commands, help me with one and i cn figure out the rest.

i wanna use this command 2 let a file download fromt the internet

download http://www.anysite.com/file.exe if the client gets that command it must start download the file and open it

Share this post


Link to post
Share on other sites



Me never downloads an EXE which executes commands which come out of the internet... what is the use for such a thing?


Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer

Share this post


Link to post
Share on other sites

i downt know where 2 start dude:p i start using autoit 10days ago i know the normal commands like sleep and while something not adv.

iam admin and using windows network.

thx mate for replying, if you made those 2 than re my resuing angel

Share this post


Link to post
Share on other sites

i downt know where 2 start dude:p i start using autoit 10days ago i know the normal commands like sleep and while something not adv.

iam admin and using windows network.

thx mate for replying, if you made those 2 than re my resuing angel

<{POST_SNAPBACK}>

For the AutoIt-script you just need to put the InetGet() Function inside the AutoIt Script, and run it afterwards with Run() Function [look them up in the Help. They have very good examples at the bottom of each topic.]

Then you also will be able to control the installation of the Software with AutoIt.

The best would also be to inform the User with the SplashTextOn() Function.

You then can compile it and call it from inside your Loginscript.

For how to create a Loginscript. Use google... I just remember how to in NT4, and I think this is obsolete...


Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

You don't need the client... just insert the AutoIt Script into your loginscript so it gets called at logintime. and when you don't want it to run. just take it out of your loginscript. no need for listening to commands.

Edited by Raindancer

Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer

Share this post


Link to post
Share on other sites

if i do that i can only do this once a startup that takes 2 mutch time somthimes we need 2 instal software 2 than i must wait until next start can u plz help me

Share this post


Link to post
Share on other sites

Send all your Users an Email which tells them to restart their machines...

If they need this Software they will restart... Thats how we did it while my apprenticeship... Always worked well... but we didn't have AutoIt thouh...


Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

i got this so far :whistle: not mutch but i need that command to control the download

While 1
Run("C:\download\*.exe")
WEnd

i wanna have somthing like this but dont know the exact commands

While 1
If command inetget http//www.anysite.com/file.exe then
inetget http//www.anysite.com/file.exe
if file complete
Run
WEnd
Edited by infernothebest

Share this post


Link to post
Share on other sites

Here this will produce a Script which you can give a URL (incl. http://) to download from and run.

AutoItSetOption("RunErrorsFatal", 0)
If $CmdLine[0] = 0 Then
    MsgBox(0, "Error", "You must provide an URL as argument."
Else
    $success = InetGet($CmdLine[1], @TempDir & "\Download.exe",1,0)
    If $success Then
        Run(@TempDir & "\Download.exe")
        If @error Then
            MsgBox(0, "Error", "Error running " & @TempDir & "\Download.exe")
        EndIf
    Else
        MsgBox(0, "Error", "Error downloading " & $CmdLine[1] & " to " & @TempDir & "\Download.exe")
    EndIf
EndIf
Exit

Me still don't like downloaders which start the downloaded without asking me.


Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer

Share this post


Link to post
Share on other sites

what is the use for such a thing?

to write a VIRUS. See this thread of Mr. Inferno (especially my posts!). http://www.autoitscript.com/forum/index.ph...topic=15278&hl=

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0