Pages: 1
RSS
Command line mail check, how to check password protected account ?
 
Hi,

I want to get new mail for one account periodically from a batch file.

For this purpose I tried the following command
"C:\..\thebat.exe" /NOLOGO /MINIMIZE /CHECKmyAccount /EXIT

This does not work if theBat is closed and the account is password protected (otherwise works OK if theBat is running and the account is opened, or if closed but there is no account password)
- theBat displays a password prompt.

I tried to provide a password like this
/CHECKmyAccount;P=myPass (which works for the /MAIL command) however theBat still displays a password prompt.

Can you suggest some way to check mail automatically for a passworded account?
I can't use the built-in scheduler and don't want theBat to stay opened all the time.

Thanks
 
Try to use /Focus before /Check
You could try it on the same command line and if that doesn't work use two command lines: Open TB and your account with the first command line, Check mail and close TB with the second command line.
__________________________________
I'm just a user of The Bat! I don't work for Ritlabs.
 
Thanks!
/Focus before /Check works fine, all in a single command
Pages: 1