1. mathews rutto
  2. PowerBuilder
  3. Wednesday, 6 October 2021 05:33 AM UTC

Hi,

Am using FileCopy, it works fine when copying from application folder. How can i copy file from other folder for example desktop folder or drive c?

    ls_to = sle_1.text
    ls_from = sle_2.text
    li_FileNum = FileCopy (ls_from,ls_to,FALSE)

regards.

Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 6 October 2021 06:39 AM UTC
  2. PowerBuilder
  3. # Permalink

Run your app as administrator 

Comment
  1. mathews rutto
  2. Wednesday, 6 October 2021 06:49 AM UTC
What will happen when deploy to production? Will the end users be access of admin rights?
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 6 October 2021 06:55 AM UTC
This is not limitation of PowerBuilder. Windows OS doesn’t allow writing to certain areas of the system without admin privileges. Every app needs to be designed to consider the privileges the user has.
  1. Helpful
  1. mathews rutto
  2. Wednesday, 6 October 2021 07:14 AM UTC
Okay noted
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.