× 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 problem with STRPCCMD is that the command length is limited
to 123 bytes. Users will be drilling down through several
directories to get to a file to open. I will need to store the
entire path to the file. They also use some quite long names
such as:

W:\Southeast Region\REALLY LONG FOLDER NAME\Marketing Scheduled
Items\Enhanced M-Wall- low profile base, plus price, & detaiBIll's
sample sell sheet with my translation.pdf

Well over the 123 byte limit.

These directory paths will be stored in a physical file.





Bob Ostrowski | Senior Programmer/Analyst
TRAINOR GLASS COMPANY | National - IT
11901 S. Austin Ave. | Alsip, IL 60803
T 708.293.4218 | F 708.293.6218 | C 708.560.5813
bob.ostrowski@xxxxxxxxxxxxxxxx | www.trainorglass.com






-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Friday, July 08, 2011 9:20 AM
To: RPG programming on the IBM i / System i
Subject: Re: ShellExecuteA

From a 5250 session...

STRPCO
STRPCCMD PCCMD('rundll32 url.dll,FileProtocolHandler c:\myfile.pdf')
PAUSE(*NO)


The STRPCO is only needed once per 5250 session...

Check the archives for more info...

HTH,
Charles


On Fri, Jul 8, 2011 at 9:52 AM, Robert Ostrowski
<Bob.Ostrowski@xxxxxxxxxxxxxxxx> wrote:
Is there an equivalent of ShellExecuteA that can be run from an RPGIV
program to
open a file on the user's PC?







Bob Ostrowski | Senior Programmer/Analyst
TRAINOR GLASS COMPANY | National - IT
11901 S. Austin Ave. | Alsip, IL 60803
T 708.293.4218 | F 708.293.6218 | C 708.560.5813
bob.ostrowski@xxxxxxxxxxxxxxxx <mailto:bob.ostrowski@xxxxxxxxxxxxxxxx>
| www.trainorglass.com <http://www.trainorglass.com>





--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.