Forum Discussion
howie_
12 years agoContributor
I'm not entirely sure that I understand what's going on here (having never worked with Stores|File nor INI files), but for what it's worth I use this code to identify a file using a relative path:
currentFolderPath = aqFileSystem.GetFolderInfo(aqFileSystem.GetCurrentFolder()).Path;
This gives me the directory of the script file itself, and then I can drill to whatever file I need. For instance:
..\..\New Folder\file1.txt
becomes:
aqFileSystem.GetFolderInfo(aqFileSystem.GetCurrentFolder()).ParentFolder.ParentFolder.Path + "\\New Folder\\file1.txt";
I hope that helps, good luck.