Jump to content

Creating a folder


Recommended Posts

I'm using the code below to create a folder, but it doesn't work. I don't want to create the folder manually.
I've used this code for vcl apps multiple times. It worked fine. 

Quote

if not DirectoryExists(UniServerModule.StartPath+'Dokuman\Ornek') then
 CreateDir(UniServerModule.StartPath+'Dokuman\Ornek\');

 

Link to post
Share on other sites
37 minutes ago, emin said:

I'm using the code below to create a folder, but it doesn't work. I don't want to create the folder manually.
I've used this code for vcl apps multiple times. It worked fine. 

Hello,

Use 

ForceDirectories

ForceDirectories(UniServerModule.StartPath+'Dokuman\Ornek\');

 

Link to post
Share on other sites
14 hours ago, emin said:

I'm using the code below to create a folder, ...

Remember,

if you are using your unigui application as Service, then you can not create it any where. Only User/ Puclic Dcuments can .

and only Server Side.

  • Upvote 1
Link to post
Share on other sites
On 11/7/2020 at 9:02 AM, Abaksoft said:

Remember,

if you are using your unigui application as Service, then you can not create it any where. Only User/ Puclic Dcuments can .

and only Server Side.

Erratum...

Confirmed :  ForceDirectories  works fine anywhere  (also as Service)  (ServerSide)  Thx to Sherzod  !!!

In the olds Unigui versions, i can't do it.  I don't know how and when, this has been fixed.

(Build 1539 = OK).

Sorry for the bad advice. 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...