I have a particular program in the green-screen environment that allows the user to double-click a field on a screen and it opens a particular folder in the IFS in Windows Explorer. Needless to say, this works with no problem in the green-screen environment. I am trying to replicate this in PROFOUND UI using the loadPCCommandApplet and runPCCommand java scripts. Everytime I try to open the same folder that gets opened in green-screen, I get the following error:
java.io.IOException:Cannot run program "\\POWER6\CRM\RMULLIS":CreateProcess error = 5, Access is denied.
I have checked every folder in the path and they have full authority for *PUBLIC. Also, as I said previously, this folder opens fine in green-screen. Is there any other place that I need to check authority/permission?
Opening IFS Folder
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
- Brian
- Profound Logic Staff Member
- Posts: 286
- Joined: Thu Apr 14, 2011 10:23 am
- First Name: Brian
- Last Name: May
- Company Name: Profound Logic Software
- Contact:
Re: Opening IFS Folder
Try something for me. Open the path in windows explorer first and log in when prompted. Then close it out and run your program.
I think the problem is that since you are not logged into iAccess, explorer is attempting to open the share with your windows user and password. Let me know what happens.
I think the problem is that since you are not logged into iAccess, explorer is attempting to open the share with your windows user and password. Let me know what happens.
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
Re: Opening IFS Folder
Brian,
I already had a drive mapped to the IFS from earlier that asked me for my user id and password, but I disconnected it any way and remapped the drive to the IFS. Unfortunately, it gave me the same error.
Thanks,
Robert
I already had a drive mapped to the IFS from earlier that asked me for my user id and password, but I disconnected it any way and remapped the drive to the IFS. Unfortunately, it gave me the same error.
Thanks,
Robert
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
Re: Opening IFS Folder
Any suggestions on this. I changed my screen to use window.open, instead of runPCCommand. Unfortunately, it gave me the same error, "Access denied". I have checked the authority of the IFS and the folders I am trying to access and *PUBLIC has full authority to them.
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
Re: Opening IFS Folder
I have finally resolved the issue by setting up the following script in the onclick event:
var openfile = "explorer \\\\power6\\crm\\rmullis\\";runPCCommand(openfile);
In the green-screen environment with the STRPCCMD, all I had to do was "start \\power6\crm\rmullis\"
Also, taking this one step further, I was able to open files from the IFS with the following script:
var openfile = "RUNDLL32 SHELL32.DLL,ShellExec_RunDLL \\\\power6\\crm\\rmullis\\rjmtest.pdf";runPCCommand(openfile);
var openfile = "explorer \\\\power6\\crm\\rmullis\\";runPCCommand(openfile);
In the green-screen environment with the STRPCCMD, all I had to do was "start \\power6\crm\rmullis\"
Also, taking this one step further, I was able to open files from the IFS with the following script:
var openfile = "RUNDLL32 SHELL32.DLL,ShellExec_RunDLL \\\\power6\\crm\\rmullis\\rjmtest.pdf";runPCCommand(openfile);
- Brian
- Profound Logic Staff Member
- Posts: 286
- Joined: Thu Apr 14, 2011 10:23 am
- First Name: Brian
- Last Name: May
- Company Name: Profound Logic Software
- Contact:
Re: Opening IFS Folder
Ah, yes. I did not notice that you didn't escape your \ characters. sorry for the confusion. Glad you worked it out.
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
Re: Opening IFS Folder
Brian,
Just for clarification, I did have my '\' "escaped" in my IFS folder name. For some reason, I had to call the Windows Explorer in Profound, but in green-screen, the generic "start" worked for opening a folder or any type of file.
Just for clarification, I did have my '\' "escaped" in my IFS folder name. For some reason, I had to call the Windows Explorer in Profound, but in green-screen, the generic "start" worked for opening a folder or any type of file.
- Brian
- Profound Logic Staff Member
- Posts: 286
- Joined: Thu Apr 14, 2011 10:23 am
- First Name: Brian
- Last Name: May
- Company Name: Profound Logic Software
- Contact:
Re: Opening IFS Folder
Yes, you are correct. The Java applet is a little more particular than the green screen STRPCCMD functionality. Although, I have never been a fan of "start" because of the ugly dos window that opens when using it. What you have now is a better option, in my opinion.
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
Re: Opening IFS Folder
I did have the "RUNDLL32", but that stopped working on Windows 7 PCs. "START" was the only thing I could get working for STRPCCMD in green-screen.
Who is online
Users browsing this forum: No registered users and 5 guests