I want to make a shortcut to see the attached files in the directory where I saved the S3D project..when I save the project in the respective folder in our case Test project, the shortcut button should automatically go to where the S3D file is saved..I tried FileName and FILE_NAME..is it possible to do it?
thanks
Program Folder;
Procedure DoIt;
var
PDF:TpdfPrinter;
Begin
PDF:=TpdfPrinter.create(1250);
PDF.FileName := PrgFolder+’SobaSav\Test proiject’;
PDF.ShowPdf;
PDF.Free;
End;
Begin
Doit;
End.

Program Folder;
Procedure DoIt;
var
PDF:TpdfPrinter;
Begin
PDF:=TpdfPrinter.create(1250);
PDF.FileName := PrgFolder+’..\CustomFolder\’;
PDF.ShowPdf;
PDF.Free;
End;
Begin
Doit;
End.
This code works for me… maybe you need “\” at end?
You have to make relative path to your folder from Corpus path!
You have to make relative path to your folder from Corpus path!..what do you mean?
if your folder is inside Corpus folder (ie c:\Corpus\YourFolder) then PDF.FileName := PrgFolder+’YourFolder\’;
if your folder is outside Corpus folder (ie c:\YourFolder\Projects) then PDF.FileName := PrgFolder+’..\YourFolder\Projects\’;
Path is relative to Corpus instalation folder.
I think I didn’t make myself understood…when I open a random project, this path should automatically change to the name of the directory where it is saved..the script now works and opens the directory where all the saves made in the corpus are..for example, I make several projects and put them in different directories and with certain files that I need to access while I’m working on the project.when I click the button below, the directory of the project I’m working on and the related files should open
Example:
- Open Corpus
- Open project C:\myprojects\project1.s3d
- click button
- folder C:\myprojects\ opens on your PC?
This is what you want?
If yes… hm, I am not sure, if there is no system variable that stores path of current file…
I’ll investigate it… there is so little documentation about Corpus that it is so hard to do anything without manual…
yes curent path need to know if is possible to do..can be done by a bat or ini extension?
It is not possible.
i try with and wihtout and both doesnt work
PDF.FileName := PrgFolder+’SobaSavCustomFolder’;
system cannot find specification