Sign in to follow this  
Followers 0
rajesh

Automation of Stinger removal tool

12 posts in this topic

#1 ·  Posted (edited)

I am newbie to this site .We have a requirement in our organisation.I want to automate the process of starting the stinger and scanning the computer, the same tool will be sent across the domain thro login script to all the users of the Domain.

I have tried the following things, i created the script autoinstall.au3 with following lines,

; Run the FixMytob installer

Run("stng259.exe")

WinWaitActive("Stinger 259", "&ScanNow")

Send("!s")

I compiled the autoinstall.au3 and executed the scipt,

The Stinger application is opening but it is not starting the scan process.

Can anybody pl tell me ,what is mistake in the script or any missing things

Edited by rajesh

Share this post


Link to post
Share on other sites



#4 ·  Posted (edited)

Run("stng259.exe")

WinWaitActive("Stinger 259", "&ScanNow")

Send("!s")

Can anybody pl tell me ,what is mistake in the script or any missing things

Well, if this is your entire code, then I doubt anyone can tell you what exactly your mistake is. You don't have anything as the title of your topic states referring to strings at all.

Edit: I actually am assuming from ChrisL's post that you are trying to automate a 3rd party application. I misunderstood this to be a native autoit script to do the work. My apologies.

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I don't know if you have considered this and also you would need to check the copyright on Stinger but you could potentially use Fileinstall and build the stinger into your script and run it from a location only having to distribute a single file.

fileinstall ("stng259.exe", @tempdir & "\stng259.exe", 1)

Run(@tempdir & "\stng259.exe", @tempdir)

WinWaitActive("Stinger")

Send("s")

Just make sure that when you compile the script the stinger program is in the same folder as the script

Edited by ChrisL

Share this post


Link to post
Share on other sites

Thanks to everybody,

Christ's scirpt is working fine for me. I have one more requirement , I dont want users to cancel the scanning . Is their any way to run the Stinger application without interuption.

Thanks in Advance

Share this post


Link to post
Share on other sites

I must be bored!!

fileinstall ("stng259.exe", @tempdir & "\stng259.exe", 1)

Run (@tempdir & "\stng259.exe /ADL /LOG /GO /Silent", @tempdir)

Will run silently with no gui.

Remove /Silent if you want a Gui

/Go start scan

/ADL all local drives to be scanned

/Log create log

Share this post


Link to post
Share on other sites

If you want one with the GUI showing but locked out of gui until end of scan or ALT+F9 is pressed..

;Alt + F9 to unlock the stinger screen
HotKeySet("!{F9}", "unlock")

fileinstall ("stng259.exe", @tempdir & "\stng259.exe", 1)

Run (@tempdir & '\stng259.exe /ADL /LOG /GO', @tempdir)

WinWait ("Stinger")
$Lock = 1

While 1
$Status = StatusbarGetText ( "Stinger" )

    If $Status = "Scanning..." and $Lock = 1  Then
        WinSetState ("Stinger", "", @SW_DISABLE)
        Else
            ExitLoop
    Endif

Sleep (1000)
Wend

WinSetState ("Stinger", "", @SW_ENABLE)


Func unlock()
    $Lock = 0
    EndFunc

Share this post


Link to post
Share on other sites

I must be bored!!

Is it official? :P


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

I am newbie to this site .We have a requirement in our organisation.I want to automate the process of starting the stinger and scanning the computer, the same tool will be sent across the domain thro login script to all the users of the Domain.

I have tried the following things, i created the script autoinstall.au3 with following lines,

; Run the FixMytob installer

Run("stng259.exe")

WinWaitActive("Stinger 259", "&ScanNow")

Send("!s")

I compiled the autoinstall.au3 and executed the scipt,

The Stinger application is opening but it is not starting the scan process.

Can anybody pl tell me ,what is mistake in the script or any missing things

You can use the following command line switches:

  • /ADL- Scan all local drives
  • /GO - Start scanning immediately
  • /LOG - Save the log file after scans
  • /SILENT - Do not display graphical interface
Run stng259.exe /? to display these options.

Share this post


Link to post
Share on other sites

Thanks to everybody,

Now the scirpt for stinger removal tool is working in the background.

We have one more requirement , we want to run removal tools like Stinger,Fixmytob,Fixnetsky,Fixmykorgo one after other ,the script entered is shown below but it is throwing error as " Only one fix tool running at a time " because one removal tool is already running in the process, one more process is trying to start which is not able to start. Pl tell us what is the mistake has been done in below script.

fileinstall ("stng259.exe", @tempdir & "\stng259.exe", 1)

Run (@tempdir & "\stng259.exe /ADL /LOG /GO /Silent", @tempdir)

fileinstall ("FixMytob.exe", @tempdir & "\FixMytob.exe", 1)

Run (@tempdir & "\FixMytob.exe /ADL /LOG /GO /Silent", @tempdir)

fileinstall ("FxNetsky.exe", @tempdir & "\FxNetsky.exe", 1)

Run (@tempdir & "\FxNetsky.exe /ADL /LOG /GO /Silent", @tempdir)

fileinstall ("FixKorgo.exe", @tempdir & "\FixKorgo.exe", 1)

Run (@tempdir & "\FixKorgo.exe /ADL /LOG /GO /Silent", @tempdir)

Share this post


Link to post
Share on other sites

Try RunWait() this will allow the application to finish before you try to run another one.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

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