Command Line Information
Question asked by Merle Wait - 10/21/2026 at 4:04 PM
Answered
When I want the command line file to be invoked....
The documenation says that the exe or bat file has to be in the \assets\ location
So does the command line info look like C:\Smail\Assets\MyBat.bat ???
Second question... if my spool and email file is located at  K;\Mail\Spool\Spool4\X234242.eml
does it pass the whole K;\Mail\Spool\Spool4\X234242.eml  ??
Tony Scholz Replied
Employee Post Marked As Answer
Hello, 

The default location for this file will be; 
  • "C:\Program Files (x86) \SmarterTools\SmarterMail\Service\Assets"
  • "/opt/smartermail/assets
When filling in the file, enter only the file name, as SmarterMail looks in this directory by default. The full file path is passed to the file. 

Example of a CMD/BAT file for AV. 

SET “SCAN_EML_FILE=%*”

"C:\Program Files\ESET\ESET Security\ecls.exe" /base-dir="C:\Program Files\ESET\ESET Security\Modules" /aind /sfx /arch /adware /unsafe /unwanted /clean-mode=delete /quarantine /quar-dir="C:\SmarterMail\Spool\Quarantine" /no-log-console /log-file="L:\ESET\EsetCMD.log" /log-all %SCAN_EML_FILE%


Tony Scholz
Lead Network/System Administrator
SmarterTools Inc.

Reply to Thread

Enter the verification text