ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Tip: One File Scan (for portable version)
humpty


Joined: 10 May 2013
Posts: 0
Reply with quote
Here is a batch file to scan just one file.

e.g onescan.bat

echo off
echo calling ClamWinPortable to scan : %1
clamwinportable --mode=scanner --path=%1

Put it in your ClamWinPortable folder and create a shortcut to it.
Move the shortcut to your SendTo folder.

You can now right-click any file > SendTo for a quick scan.
View user's profileSend private message
Lipper


Joined: 31 Oct 2010
Posts: 0
Location: USA
Reply with quote
Well, thanks humpty, but ClamWin Portable is a different open sourced project and not supported in these forums AFAIK. You will likely reach a greater number of ClamWin Portable users by posting at PortableApps (creator of ClamWin Portable) at https://portableapps.com/forums/support/clamwin_portable Still, I will find your bat file useful for some situations. Thanks again.

Note: I believe that when a portable program integrates with the Windows shell (context menu in this case) it is no longer considered portable.
View user's profileSend private message
Very useful!
Wakaku


Joined: 26 Aug 2013
Posts: 0
Reply with quote
I just joined because of this. I've been looking for a working SendTo shortcut for years, and this is it. Thank goodness there's a latest 2013 tip. I tried using the tips from posts from the net from older years, but nothing worked right. I changed the line: clamwinportable --mode=scanner --path=%1 to clamwin --mode=scanner --path=%1 to work for my non-portable ClamWin. I added the @ sign to tidy the messages displayed on the DOS box. I placed the batch file inside of the bin folder.

My batch file looks like this now:
@echo off
echo Scanning: %1
clamwin --mode=scanner --path=%1


I found out that such a batch file can also scan a folder recursively. I hope there would be a similar tip on how to scan multiple-highlighted files too.

Very Happy Thank you very much for the tip! Even though it was originally meant for a portable edition, it can still be used with the original non-portable one. Please don't delete this thread as I know a lot of other people will benefit as well.
View user's profileSend private message
Tip: One File Scan (for portable version)
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