× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The command isn't executed as if it were run in the "Windows Run" box, it's 
executed as if it were run in the "Command Prompt" window. So you should 
test-run your commands there instead. And the command you need is

start mailto:dan2@xxxxxxxxx

And here's a link I dredged up that describes in more detail how to format the 
mailto URL:

http://email.about.com/od/mailtoemaillinks/a/mailto_elements.htm

You'll find more such links by googling "mailto URL" (which is where I got that 
one).

Regards
PC2 

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On 
Behalf Of Dan
Sent: October 26, 2005 14:33
To: Java Programming on and around the iSeries / AS400; Midrange Systems 
Technical Discussion
Subject: Re: Questions on "Calling PC Commands from RPG" article

O.k., thought I'd give an update.

Got the PC side working. Ended up setting a classpath as an environment 
variable. This classpath stuff is as clear as mud. Will have to get more 
experience using it.

Someone off-list sent me an example RPG program that invokes notepad.exe.
And this really works like a charm!

Unfortunately, I tried using "mailto:dan2@xxxxxxxxx"; (using my real address) as 
a command sent to the data queue, but got:
Command to be Executed = mailto:dan2@xxxxxxxxxxxxxxxx did not start 
:java.io.IOException: CreateProcess:
mailto:dan2@xxxxxxxxx error=2

... even though this works from within the Windows Run dialog box.

So... How can I find out how to start an Outlook "Create New Email" window, 
plugging in recipient email address, subject, and body text? This is Outlook 
2002. Presume that Outlook is already running.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.