Command line Arguments

G

Grafis

Does anyone know how to run a command line Scan and display either the
results with an option to choose what to remove and or keep or just
results of the scan?

<http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm>
v) "Are there any command line arguments available?" ( *.exe -scan
-schedule -withui -withresultsui)

I have tried many variations and I can a scan (-scan), a GUI scan (-scan
-withui) BUT I cannot get "withresultsUI" to give me results (-scan
-withresultsui).

I'm currently running this, but get no UI
shellCmd = "%comspec% /C " & chr(34) & "C:\Program Files\Microsoft
AntiSpyware\GIANTAntiSpywareMain.exe" & chr(34) & " -scan -withui
-withresultsui"

And for Andre who maintains the above mentioned page (THANK YOU!!!), the
Remote/Silent installs have changed due to nwe MSI and program folder
names. This is working for me:
shellCmd = "%comspec% /C " & chr(34) & "D:\msas\Microsoft
AntiSpyware.msi" & chr(34) & " /Q"
 
G

Grafis

Grafis said:
This is working for me:
shellCmd = "%comspec% /C " & chr(34) & "D:\msas\Microsoft
AntiSpyware.msi" & chr(34) & " /Q"

.... when running install from CD and CD is D:
 
A

Andre Da Costa

It has been a busy few months on the Anti-Spyware team, and I have learned a
lot about the product while supporting millions of users in a newsgroup
format. Here is a cool feature I ran into the other day.executing
antispyware with switches through the command line!



To do this, open up a command prompt and change to the c:\program
files\microsoft antispyware directory. Then use the switches below:



GIANTAntiSpywareMain.exe [-parameters] [-parameters]



-update : start an update check

-scan : scan [-optional scan parameters]

Optional scan parameters: [-withMainUI]
[-schedule]
[-withUI]
[-withResultUI]



Here is an example:
"GIANTAntiSpywareMain.exe -scan -withui -withresultsui -schedule "



Feel free to play with the switches and let me know if it is beneficial to
be able to do this.

--
Andre
Extended64 | http://www.extended64.com
Blog | http://www.extended64.com/blogs/andre
http://spaces.msn.com/members/adacosta
FAQ for MS AntiSpy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm
 
G

Grafis

Andre, you're pure 128 bit to me :) Thank you thank you thank you, you
posted right as I was coding up AdAware (purchased "plus" version
accepts arguments).

This works, nice minimalist scan that shows items detected in real time
and at the end of the scan shows reults with a "view list" option that
laucnhes to the full results screen where you can
remove/quarantine/ignore....
'GIANTAntiSpywareMain.exe -scan -withui -withresultsui -schedule'

This worked, ran as the normal app would excepted started automagically
'GIANTAntiSpywareMain.exe -scan -withMainUI'

This simply popped up the System Summary UI screen and sat there
'GIANTAntiSpywareMain.exe - update'

In lieu of the above working, I'm looking for a "dat/def" type file I
could simply copy over to the install folder to ensure latest coverage,
many of my machines won't be online (and should'nt be)
 
A

Andre Da Costa

No, thank Steve Dodson, he is pure 128-bit, I'm still 32-bit. lol. :-D
--
Andre
Extended64 | http://www.extended64.com
Blog | http://www.extended64.com/blogs/andre
http://spaces.msn.com/members/adacosta
FAQ for MS AntiSpy http://www.geocities.com/marfer_mvp/FAQ_MSantispy.htm

Grafis said:
Andre, you're pure 128 bit to me :) Thank you thank you thank you, you
posted right as I was coding up AdAware (purchased "plus" version accepts
arguments).

This works, nice minimalist scan that shows items detected in real time
and at the end of the scan shows reults with a "view list" option that
laucnhes to the full results screen where you can
remove/quarantine/ignore....
'GIANTAntiSpywareMain.exe -scan -withui -withresultsui -schedule'

This worked, ran as the normal app would excepted started automagically
'GIANTAntiSpywareMain.exe -scan -withMainUI'

This simply popped up the System Summary UI screen and sat there
'GIANTAntiSpywareMain.exe - update'

In lieu of the above working, I'm looking for a "dat/def" type file I
could simply copy over to the install folder to ensure latest coverage,
many of my machines won't be online (and should'nt be)





It has been a busy few months on the Anti-Spyware team, and I have
learned a lot about the product while supporting millions of users in a
newsgroup format. Here is a cool feature I ran into the other
day.executing antispyware with switches through the command line!



To do this, open up a command prompt and change to the c:\program
files\microsoft antispyware directory. Then use the switches below:



GIANTAntiSpywareMain.exe [-parameters] [-parameters]



-update : start an update check

-scan : scan [-optional scan parameters]

Optional scan parameters: [-withMainUI]
[-schedule]
[-withUI]
[-withResultUI]



Here is an example:
"GIANTAntiSpywareMain.exe -scan -withui -withresultsui -schedule "



Feel free to play with the switches and let me know if it is beneficial
to be able to do this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top