ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Problem opening Xls file in IFS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem opening Xls file in IFS

    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 dosn’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


  • #2
    Use the "net use" command to ensure that the drive is available before trying to open the xls

    Comment

    Working...
    X