Page 1 of 1

Opening IFS Folder

Posted: Mon Feb 27, 2012 5:26 pm
by rmullis
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?

Re: Opening IFS Folder

Posted: Mon Feb 27, 2012 5:35 pm
by Brian
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.

Re: Opening IFS Folder

Posted: Mon Feb 27, 2012 5:39 pm
by rmullis
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

Re: Opening IFS Folder

Posted: Tue Mar 06, 2012 12:03 pm
by rmullis
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.

Re: Opening IFS Folder

Posted: Wed Mar 07, 2012 6:07 pm
by rmullis
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);

Re: Opening IFS Folder

Posted: Thu Mar 08, 2012 10:42 am
by Brian
Ah, yes. I did not notice that you didn't escape your \ characters. sorry for the confusion. Glad you worked it out.

Re: Opening IFS Folder

Posted: Fri Mar 09, 2012 11:42 am
by rmullis
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.

Re: Opening IFS Folder

Posted: Fri Mar 09, 2012 12:36 pm
by Brian
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.

Re: Opening IFS Folder

Posted: Fri Mar 09, 2012 1:50 pm
by rmullis
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.