1. Eric Verhorstert
  2. PowerBuilder
  3. Thursday, 9 May 2019 14:56 PM UTC

In the file explorer you can select "copy" from the context menu.

How can we simulate this with powerbuilder? I would like to know the Global External windows function.

 

 

Eric Verhorstert Accepted Answer Pending Moderation
  1. Thursday, 9 May 2019 19:24 PM UTC
  2. PowerBuilder
  3. # 1

Our program runs in a rdp session 

I want to show all the available files in a certain folder in a datawindow. If the user clicks on a file I have to call the copy command (just like the copy command in the file explorer). A program running in the background wil then download this file to the computer of the client.

Comment
  1. Eric Verhorstert
  2. Friday, 10 May 2019 07:37 AM UTC
I can't use filecopy because the target folder is on the clients computer (RDP session). I would like to copy the file to the clipboard. On the client computer they can use "paste" (explorer | contect menu) to save the file.
  1. Helpful
  1. David Peace (Powersoft)
  2. Friday, 10 May 2019 14:48 PM UTC
Hi

I don't know if this article can help, you will need to use a Windows API call to achieve this.

https://stackoverflow.com/questions/25708895/how-to-copy-files-by-win32-api-functions-and-paste-by-ctrlv-in-my-desktop

Cheers

David
  1. Helpful
  1. Eric Verhorstert
  2. Friday, 17 May 2019 11:45 AM UTC
Thanks for the link. I had never expected that the clipboard is that difficult. I also could not find a third party activeX.



So, it probably stops here.



Thanks

Eric
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 9 May 2019 15:35 PM UTC
  2. PowerBuilder
  3. # 2

There is a FileCopy function built into PowerBuilder. The context menu in Windows Explorer is defined in the registry.

Perhaps you should give us a more detailed description of what you want to do.

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.