Forum posts for thunderbird.exe

How to attach a PDF file to a new email in Outlook and next move the file to a different fol…

Ok I got it to work this way I wanted a solution that works for outlook.exe and thunderbird.exe can I use an IF EXISTS statement to differentiate between whether or not to use outlook or thunderbird.exe? how do I scan only every 10 seconds so as to make this activity less resource intensive?

:loop
REM Example file
IF EXIST filename C:Scanned1.pdf GOTO command
REM All this gets done if the file exists...
:command
START outlook.exe /c /a C:Scanned1.pdf
MOVE /Y C:Scanned1.pdf C:Recieved
ELSE
GOTO LOOP
:cont


like this?

:loop
REM Example file
IF EXIST filename C:Scanned1.pdf
GOTO command
ELSE
TIMEOUT /T 10
GOTO LOOP
REM All this gets done if the file exists...
:command
IF EXIST outlook.exe
START /wait outlook.exe /c /a C:Scanned1.pdf
MOVE /Y C:Scanned1.pdf C:Recieved
ELSE
GOTO
START /wait thunderbird.exe thunderbird -compose 'attachment='$C:Scanned1.pdf''
MOVE /Y C:Scanned1.pdf C:Recieved
:cont

View complete forum thread with replies

Other posts related to thunderbird.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Determine when a third-party application becomes active [duplicate]
How to attach a PDF file to a new email in Outlook and next move the file to a different fol…
Syntax looping issue with Dos batch file no execution
Escaping commas in batch file START command?
Thunderbird compose email in a batch script - continue to next command
Piping current buffer as a string(!) to an external command
Create Thunderbird email from Excel macro
Batch Script Logging and it runs double?

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.