ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
How to run ClamWin with parameters to scan a file selected
polocanada


Joined: 20 Sep 2009
Posts: 0
Reply with quote
I want to scan a selected file. But I can't use the ClamWin menu integration because I have so many meny entries there (small screen laptop) and too many menu entries. I know there are utilities to manage the menu entries and cascade, but I don't like to bloat my Explorer even more.

I want to use SEND TO to send a selected file to ClamWin. I can do it with Avira Antivir as well.
I like the fact it is GUI so I don't want to use clamscan, prefer ClamWin.

I tried to create a shortcut in SendTo folder with following parameters....

"G:\Program Files\ClamWin\bin\ClamWin.exe" --mode=scanner --path="%"

Same thing will happen if I put %1 or withhout "" or with {}, I even tried %f, %d there...

Here is what happens. It can't scan. ClamWin window opens but then it says:

--------

Scan Started Sun Sep 20 17:01:59 2009
-------------------------------------------------------------------------------

WARNING: Can't access file \\?\G:\Program Files\ClamWin\bin\%

----------- SCAN SUMMARY -----------
Known viruses: 623496
Engine version: 0.95.2
Scanned directories: 0
Scanned files: 0
Infected files: 0

Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 17.766 sec (0 m 17 s)
--------------------------------------
Completed
--------------------------------------
View user's profileSend private message
budtse


Joined: 14 Jan 2006
Posts: 0
Location: Belgium
Reply with quote
Have you tried creating a batch-file (e.g. "scan.bat") with the command and add that to the sendTo directory?

In that case the full path will replace %1, so the command in the batch-file would be:

"G:\Program Files\ClamWin\bin\ClamWin.exe" --mode=scanner --path="%1"

PS, I haven't checked the clamwin command syntax, but that looks fine from what i remember

budtse
View user's profileSend private message
Clammy


Joined: 12 Nov 2009
Posts: 0
Location: socal
Reply with quote
it's just %1 on my windows box (no quotes)
View user's profileSend private message
How to run ClamWin with parameters to scan a file selected
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic