Jump to content

Automation of Stinger removal tool


 Share

Recommended Posts

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

  • Moderators

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

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.

Link to comment
Share on other sites

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

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

Link to comment
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
Link to comment
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.
Link to comment
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)

Link to comment
Share on other sites

  • Moderators

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

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.

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

  • Recently Browsing   0 members

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