Creating a new directory failed:

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1273
Joined: 23 Nov 2010
Has thanked: 721 times
Been thanked: 222 times

Creating a new directory failed:

Postby arjfca » 03 Jul 2011

I'm trying different command from the EL Collection.

This one to create a directory failed with a message. "Unable to create directory"

I'm using Windows 7 pro 64

Code: Select all

If barnumber = 1 then
begin
   If ELC.PathExists("f:\temp\Test.Txt") then print ("Found file");

   Value1 = ELC.DirectoryCreate("F:\temp\data\TestData");
   
end;

Martin
Attachments
Failed to create directory.jpg
Failed to create directory.jpg (23.31 KiB) Viewed 89 times

User avatar
TJ
Posts: 6572
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 968 times
Been thanked: 1902 times

Re: Creating a new directory failed:

Postby TJ » 03 Jul 2011

arjfca wrote:I'm trying different command from the EL Collection.

This one to create a directory failed with a message. "Unable to create directory"

I'm using Windows 7 pro 64

Code: Select all

If barnumber = 1 then
begin
   If ELC.PathExists("f:\temp\Test.Txt") then print ("Found file");

   Value1 = ELC.DirectoryCreate("F:\temp\data\TestData");
   
end;

Martin


make sure you have administrator's right to the drive and directory.
These users thanked the author TJ for the post (total 2):
arjfcaStan Bokov

arjfca
Posts: 1273
Joined: 23 Nov 2010
Has thanked: 721 times
Been thanked: 222 times

Re: Creating a new directory failed:

Postby arjfca » 03 Jul 2011

I'm using WIndows 7 pro

Under the drive name, in the security section, I have selected "Contrôle Total", full control over the drive for
- Authenticated Users
- System
- Administrator
- Users ( Martin)

I have done the same under the directory.
Problem persist

Something else I should know?

Martin

arjfca
Posts: 1273
Joined: 23 Nov 2010
Has thanked: 721 times
Been thanked: 222 times

Resolved: Creating a new directory failed:

Postby arjfca » 03 Jul 2011

I resolved the problem.

In Windows Explorer, left click on the directory under witch the new directory will be created

F:\temp... Left Click
Select "Take Ownership"
Enter

Go back to MC and tried the code

Et Voila!

Martin
These users thanked the author arjfca for the post (total 2):
TJStan Bokov


Return to “MultiCharts”