Creating a new directory failed:

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 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
(23.31 KiB) Downloaded 248 times

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Creating a new directory failed:

Postby TJ » 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
make sure you have administrator's right to the drive and directory.

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 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: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 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


Return to “MultiCharts”