Hm. Trying again with your code it seems to work really. Thumbs makes a perfect job.
I found something here
http://www.computerhope.com/forum/index.php?topic=119374.20;wap2and used it for this code, which works perfectly.
Thanks for help!
REM must be on to enumerate correctly
setlocal enabledelayedexpansion
REM Create string, set it to zero length
set AttachmentList=
REM Set error-out counter
set /a error=-1
REM Examine each file, add its name to the list followed by a comma
for %%F in (%*) do (set AttachmentList=!AttachmentList!%%~dpnxF,) & (set /a error=!error!+1)
REM End script if no files are processed
IF %error% LSS 0 GOTO cleanup
REM Remove final character (a comma)
set AttachmentList=%AttachmentList:~0,-1%
REM Compose email with attachments
thunderbird.exe -compose "to='
test@xxx.xx',subject='test',body='test',attachment='%Attachmentlist%'"
GOTO CLEANUP
:CLEANUP
set AttachmentList=
set /a error=0
localoff
GOTO NEXT
:NEXT