Page 1 of 1

configure tools %ProjectFile

Posted: Fri May 10, 2024 5:16 pm
by jassing
Would be nice to have a %PROJECTFILE token.

Re: configure tools %ProjectFile

Posted: Fri May 10, 2024 7:04 pm
by HeX0R
Tools can make use of the PB_TOOL_Project environment variable.
And there is also %PROJECT

Re: configure tools %ProjectFile

Posted: Sat May 11, 2024 1:11 am
by jassing
%PROJECT is only the directory....
What if there are multiple projects in the same directory?

Re: configure tools %ProjectFile

Posted: Mon May 13, 2024 8:20 pm
by HeX0R
jassing wrote: Sat May 11, 2024 1:11 am %PROJECT is only the directory....
What if there are multiple projects in the same directory?
The environment variable contains path and filename!

Re: configure tools %ProjectFile

Posted: Mon May 13, 2024 10:44 pm
by jassing
HeX0R wrote: Mon May 13, 2024 8:20 pm The environment variable contains path and filename!
not here,6,10lts, 6.11b2 x64

I created a simple tool:

Code: Select all

MessageRequester("test",PeekS(GetCommandLine_()))
created a tool to pass %PROJECT.

I switched to a file in the project.
I ran the tool.
I got the directory only.
The Info Button wrote:%PROJECT : The directory where the project file resides if there is an
open project.

Re: configure tools %ProjectFile

Posted: Tue May 14, 2024 9:17 am
by HeX0R
I was talking about environment variables!

Code: Select all

MessageRequester("test",GetEnvironmentVariable("PB_TOOL_Project"))

Re: configure tools %ProjectFile

Posted: Tue May 14, 2024 4:16 pm
by jassing
I was unaware of that.. thanks!