quote:
Originally posted by aNILEator
I'm pretty sure that it was %f
If this is correct than it makes little sense and MS needs a slap
...
I mean, parameters in Windows (and DOS) batch processing and registry settings always have been %1, %2, %3, etc... It makes no sense that Windows Live Messenger uses %f.
But the %1, %2, etc have got nothing todo with what program you use. Those parameters are something from Windows/DOS itself. It is Windows/DOS which replaces them with the parameter you entered on the command line. Those indentifiers are placeholders for parameters inside batch jobs.
Program specific parameters (in Windows/DOS) useually are in the form of:
c:\programname.exe /para1 /para2
or
c:\programname.exe -para1 -para2
Anyways (too much rambling from my part here, I must stop this
),
quote:
Originally posted by ins4ne
I entered C:\Program Files\AntiVir PersonalEdition Classic\avscan.exe
Ok so far i thought it would work. Then i got a file and after receiving i got an error message: INVALID PARAMETER blahblah.
It either means Windows can't start the program
C:\Program with parameters
Files\AntiVir PersonalEdition Classic\avscan.exe (because you didn't used quotes!), or it means that your antivirus software expects a specific parameter and not just a file name. Though the later is most likely the case, seeing the few words of that error message (always try to quote the full error messages exactly as they are shown).
quote:
Originally posted by ins4ne
Then i went back to that page to find out why i get that message. I read that the guy nr1 had the same problem and guy nr2 told him to add %1 after the path.
Guy number 2 is certainly wrong IF he said it in context to Windows Live Messenger!
If he said it in context to another program then remember that not all tools are the same and thus command lines you enter in a program might be different.
eg: some replace %1 with the filename (like FireFox), some use %f to be replaced with a filename (like WinRar; possibly what aNILEator is confusing things with), some simply concats the filename, others use other tags as placeholder like %file%, etc, etc.
All those are nothing more than tags used by the host programs where you enter the command line in.
Windows Live Messenger does not replace any tags like %1 or %f with the filename, it simply concats the filename (enclosed in quotes) to the command line you've entered.
And as far as my 1 minute search goes (simply search on avscan.exe), the relevant parameters for that virusscanner can be like this:
* If you want the scanner window to always remain open after scanning a downloaded file:
Code:
/GUIMODE=1 /PATH="
path to file"
* If you want the scanner window to automatically close after scanning a downloaded file:
Code:
/GUIMODE=2 /PATH="
path to file"
So, try:
"C:\Program Files\AntiVir PersonalEdition Classic\avscan.exe" /GUIMODE=2 /PATH=
Also you could try this for a scan in DOS GUI:
"C:\Program Files\AntiVir PersonalEdition Classic\avcmd.exe" -z -noboot -nombr –allfiles
(note: but put a space after -allfiles)
-----
To know more possible parameters check your help files, or type /? as parameter on the command line in a DOS box.