The online racing simulator
[Solved] File Directory Unknown, failed to create file.
Context:
I am making a script which backups user data and some lfs lapper stored values into .txt files.

Problem:
With LFS Hosting, I won't know the exact directory, I can just go back or forward a folder.

In the cmd console we could just do .\ to stay within the current directory, or ..\ to go back a folder, but it seems like that doesn't work in LFSLapper. (it won't create a file).

Example directory: (my script is in LFSLapper/includes)
$Directory = "..\Databases";

Temporary Solution:

However, this works if I put the exact directory in (but I won't be able to do this in LFS Hosting):
$Directory = "C:\Games\LFSLapper V7.0.6.3\bin\default\Databases";

Question:
Does anyone have a way to create a .txt file within a directory that they are unfamiliar of, using the CreateFile() function?
** Best answer **
"..\" is folder where the LFSLapper.exe is located.

So you want to do:
$Directory = "..\bin\default\Databases";
This thread is closed

FGED GREDG RDFGDR GSFDG