Jump to content

listen on commands


Recommended Posts

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

Link to comment
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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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
Link to comment
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 *

Link to comment
Share on other sites

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...