When I type the following into the command line...
C:\>postie -host:mail.server.net -user:myuser -pass:78abc -msg:1 -file:c:\mailmonitor\msg1.txt -extract
... it works fine and returns...
C:\>postie -host:mail.server.net -user:myuser -pass:78abc -msg:1 -file:c:\mailmonitor\msg1.txt -extract
There are 11 messages waiting (146661 bytes)
1. Fwd: Monday morning meeting
Date: Sun, 3 Oct 2010 20:40:28 -0700
From: [email protected]
To: [email protected]
However, when I use Macro Scheduler to open a command line, enter the same command, and hit enter, I get an error...
C:\Windows\system32>cd \
C:\>postie -host:mail.server.net -user:myuser -pass:78abc -msg:1 -file:c:\mailmonitor\msg1.txt -extract
'postie' is not recognized as an internal or external command,
operable program or batch file.
C:\>
I have tried using RunProgram>cmd /c (and a lot of other things) but I must be doing something wrong. I have looked at the help for the RunProgram command, but do not see why this won't work. Please help!!!
The code I am using is...
Code: Select all
Let>MyCommandPath=\
Let>MyCommand=postie -host:mail.server.net -user:myuser -pass:78abc -msg:1 -file:c:\mailmonitor\msg1.txt -extract
RunProgram>cmd.exe
Wait>1
Send>cd %MyCommandPath%
Press Enter
Wait>1
Send>%MyCommand%
Press Enter