Computing.Net > Forums > Programming > key-combination in batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

key-combination in batch file

Reply to Message Icon

Name: Sebastian42
Date: August 4, 2008 at 07:30:28 Pacific
OS: WinMe
CPU/Ram: 700MHz 650Mb
Product: Generic
Comment:

I know that "C:\Program Files\Outlook Express\msimn.exe" in a batchfile will launch Outlook Express. How could I follow that with the command to open a new message ? Just writing 'CTRL N' on the next line of the batch file does NOT achieve that result, even though typing it does.

Basty



Sponsored Link
Ads by Google

Response Number 1
Name: pyrolitic
Date: August 4, 2008 at 16:39:33 Pacific
Reply:

Have you checked if there is a commandline option for your version of Outlook Express which will open it with a new message? See:
http://support.microsoft.com/?kbid=...
(just tells how to access commandline options for Outlook Express)
Seems that would be the simpliest technique. I was surprised by what you wrote, I'd always thought that you had to write the batch file command like this:
C:\Progra~1\Outloo~1\msimn.exe, for it to work. Being able to write it out fully seems easier to read.

Update added, realized the Microsoft support page above was worthless (is that a surprise...), but did find the commandline switch. Try:
C:\Program Files\Outlook Express\Msimn.exe /mailurl:mailto:
That seems to do what you want.


0

Response Number 2
Name: Sebastian42
Date: August 5, 2008 at 03:01:57 Pacific
Reply:

The inverted commas are quite crucial, if you want to write the terms in full, rather than as 123456~1. So I created a batch file with "C:\Program Files\Outlook Express\Msimn.exe /mailurl:mailto:" and the result was "Bad command or file name".
Knowing that unliklely changes can produce good results (especially in batch files) I prefaced that command line with "start", then the result was "Cannot find file 'C:\Program Files\Outlook Express\Msimn.exe /mailurl:mailto:' ".
I hope that gives a clue. The OE I'm using in WinMe is v6

Basty


0

Response Number 3
Name: klint
Date: August 5, 2008 at 05:36:48 Pacific
Reply:

Try "C:\Program Files\Outlook Express\Msimn.exe" /mailurl:mailto:x@example.com

Also, on Windows XP you can use the following much simpler command, not sure about earlier systems:

start mailto:x@example.com

If you want to add content:

start mailto:x@example.com?subject=Test%20one^&body=This%20is%20a%20test


0

Response Number 4
Name: Sebastian42
Date: August 7, 2008 at 12:32:20 Pacific
Reply:

Thank you for that.
I did some experimenting and found that what I really wanted is provided by :


"C:\Program Files\Outlook Express\Msimn.exe"
start mailto:
cls

Basty


0

Response Number 5
Name: Sebastian42
Date: August 9, 2008 at 03:43:15 Pacific
Reply:

Klint
Where can I find a list of commands like 'mailto:' for DOS batch
files - I want to automate some householding chores in Outlook Express -
initially to move all the mail in the Inbox elsewhere; and other more
complex manouvres.

Basty


0

Related Posts

See More



Response Number 6
Name: klint
Date: August 9, 2008 at 09:02:11 Pacific
Reply:

The "mailto:" protocol was primarily designed for creating email links on web pages. It's just like "http:" but instead of opening a web page it opens a new email message using your default mail program. It can't be used to control your Outlook application, as it's only designed for sending messages. For more information, try these links:

http://webdesign.about.com/od/begin...

http://msdn.microsoft.com/en-us/lib...


0

Response Number 7
Name: Sebastian42
Date: August 10, 2008 at 04:53:56 Pacific
Reply:

As a matter of 'householding' I have been having great trouble accessing the thread of this particular enquiry (from the email link sent to me) - I keep getting messages like 'page can not be found' etc and it is only with great perseverence that I've been able to get to this today, by taking a round-about route.

Basty


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: key-combination in batch file

Date Routines in Batch Files www.computing.net/answers/programming/date-routines-in-batch-files/15590.html

%DATE% in batch files with win98 www.computing.net/answers/programming/date-in-batch-files-with-win98/4007.html

Progress bar in batch file www.computing.net/answers/programming/progress-bar-in-batch-file/14919.html