Announcement

Collapse
No announcement yet.

Create Floder

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

  • Create Floder

    People, please, I am unable to create a folder with the name "JUNTA" and copy some files into it, I need to create a folder in this way.

    "C: \ Program Files \ Adobe \ Adobe Photoshop CC 2015 \ Plugins \ JUNTA"

    After copying some files into the folder "JUNTA"

    Help me please.
    The code I am using is this.

    Folder.Create ( "C: \ Program Files \ Adobe \ Adobe Photoshop CC 2015 \ Plugins \ BOARD");
    File.Copy ("AutoPlay \\ \\ Docs ArtSuite_64.8bf", "C: \ Program Files \ Adobe \ Adobe Photoshop CC 2015 \ Plugins \ JUNTA", true, true, false, true, nil);
    File.Copy ("AutoPlay \\ \\ Docs Coloriage_64.8bf", "C: \ Program_Files \ Adobe \ Adobe Photoshop CC 2015 \ Plugins \ JUNTA", true, true, false, true, nil);
    File.Copy ("AutoPlay \\ \\ Docs Decorator_64.8bf", "C: \ Program_Files \ Adobe \ Adobe Photoshop CC 2015 \ Plugins \ JUNTA", true, true, false, true, nil);

    What am I doing wrong ?

  • #2
    Hello .

    Incorrect syntax "C: \ Program Files \ Adobe \ Adobe Photoshop CC 2015 \ Plugins \ JUNTA"
    in

    C: \\ Program Files \\ \\ Adobe Adobe Photoshop CC 2015 \\ Plugins \ JUNTA

    and see that it works.

    a look at the guide ams would clear you the ideas

    an extract from the guide:

    Example 1

    Folder.Create ("C: \\ Stored");

    without the "\\" folders are not created.

    also it applies to the positioning and all file and folder operations.

    wishes for the project

    Comment


    • #3
      Folder Create

      Olá exmen

      appreciate your help

      So I'm doing everything right but still does not work, I put down the syntax I'm using, please there is still something wrong?

      Folder.Create("C:\\Program Files\\Adobe\\Adobe Photoshop CC 2015\\Plug-ins\\AKVIS");
      File.Copy("AutoPlay\\Docs\\ArtSuite_64.8bf", "C:\\Program Files\\Adobe\\Adobe Photoshop CC 2015\\Plug-ins\\AKVIS", true, true, false, true, nil);

      Comment


      • #4
        Originally posted by Emerson Costa View Post
        Olá exmen

        appreciate your help

        So I'm doing everything right but still does not work, I put down the syntax I'm using, please there is still something wrong?

        Folder.Create("C:\\Program Files\\Adobe\\Adobe Photoshop CC 2015\\Plug-ins\\AKVIS");
        File.Copy("AutoPlay\\Docs\\ArtSuite_64.8bf", "C:\\Program Files\\Adobe\\Adobe Photoshop CC 2015\\Plug-ins\\AKVIS\\", true, true, false, true, nil);
        Try that and see if it works for you :-)

        Comment


        • #5
          Hello
          Does not work, does not create the folder or copy the files.
          Do you know if this can be something with permissions of the windows?
          My system is Windows 10 64-bit.

          Comment


          • #6
            I operating systems we have them all.

            if you are making an application we can not know what operating system the user who is using it.

            I do some testing and let you know, let's see what the problem is.

            probably a matter of permissions.

            Comment


            • #7
              I'm not getting, already put all the necessary permissions and still not create the folder or copy the files.
              What might be happening?
              Is there any other way to do this?

              Comment


              • #8
                good evening
                I managed to make the code work, really was permission problem with the Adobe folder, now this perfect, but a doubt has arisen, as I am developing an installer for other people can install some programs, how can I fix the permission problem in the computer people ?
                There is some code to solve this?
                Please wait return.

                Comment


                • #9
                  the problem you have permissions.

                  I have often had to do with this bloody user account.

                  a soluzoine I found to this problem and lower to "0" under UAC.

                  but to do so, and must run as an administrator application.

                  you often forget to do it even though so well specified must somehow constringerlo way to do so by stopping the program as long as this does not run in administrator mode.

                  I worked long and hard about this and I solved in a jiffy.

                  if I run with uac enabled my application can not write to the registry.

                  Therefore a change of control over effetive key uac registry.

                  if this is not changed then the administrator mode is not executed and a block from here that alerts you to run in administrator mode, if this does not do the program does not go forward

                  Comment

                  Working...
                  X