Duplicate file in Data directory


#1

Hello,

Is there a way to prohibite the duplicate file in Data directory when the file allready exist compiled in software ?

Thank-you,
Gilbert


#2

No, the sole possibility is to use a virtual path for the “Data” subfolder:


#3

Hi,

Yes, it is a solution, the problem is that my customers need to have a drive disk with the same letter that the one for virtual folder, or not !

Thank-you,
Gilbert


#4

Why?
Is it because you ask them to place files into a subdirectory?


#5

I need my php home page compliled in .exe to reconize the path of .exe folder installation.
Something that I don’t get with php when using virtual path after trying all php function knowed, I only get the windows drive letter and windows user name folder but not the folder path of .exe.
Solution of course is to ask my clients to install .exe in root windows user name folder.

Thank-you,
Gilbert


#7

Ok, I found the solution to get path :

function GetRootPath: String;

begin
S := IncludeTrailingBackslash(ExtractFilePath(GetGlobalVar(“HEPublicationFile”,"")));
Result := S;

end;

And then :
$path = exo_return_hescriptcom (‘MainUser.GetRootPath’, ‘’);
echo $path;


#8

THANK YOU @Gilmichel for sharing your solution. Few months back I beat my head on desk trying to figure this one out.


#9

Yes, and it is also possible to make it shorter :

function GetRootPath: String;

begin
S := ExtractFilePath(GetGlobalVar(“HEPublicationFile”,""));
Result := S;

end;

…and to get the path of your .exe :

function GetRootPath: String;

begin
S := GetGlobalVar(“HEPublicationFile”,"");
Result := S;

end;