|
We had similar problems. We moved away from using shared folders on the IFS to serving files via the integrated web server. Worked perfectly and let us become platform independent as we have MacOS workstations as well that connect to our AS400.
On Mar 23, 2020, at 19:38, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx> wrote:
Obviously the problem is that Windows didn't keep the login information. It doesn't remember it permanently (unless you tell it to.)
You can use the "net use" PC command to set the Windows login information. You can use that from your script to make sure it's ready to launch the Xls (or PDF, which appears to be what you're actually trying to launch).
On 3/23/20 6:24 PM, gio.cot via RPG400-L wrote:--
Hi all
I'm try to open from RPG a Xls file stored in Ifs with this command :
STRPCCMD PCCMD('rundll32 shell32,ShellExec_RunDLL
"\\192.168.0.100\PDF\MYFLR\MYDOC_1141521.pdf") PAUSE(*NO)'). Yesterday i
tested my program and it was ok; today i have retried and
It don't works (i don't know why), then after some test, i have opened the
folder from windows explorer. Windows have asked AS400's user and password
and then showed the folder with MYDOC_1141521.pdf. After that i have retried
to run my program and now the STRPCCMD PCCMD('rundll32 shell32,ShellExec..
works fine and open the document.
Questions:
1. Which could the problem ?
2. Possible that until i don't open MYFLR via windows, STRPCCMD
PCCMD('rundll32 shell32,ShellExec.. Don't works
3. Which workaround ?
Thanks in advance
Gio
Scott Klement
http://www.scottklement.com
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
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.