Program path and name

Just starting out? Need help? Post your questions and find answers here.
JagV12
New User
New User
Posts: 9
Joined: Sat Jun 22, 2019 11:28 am

Program path and name

Post by JagV12 »

Hi there,

Is there a way for a running program to know its own path and name ? The equivalent of the C language "argv[0]" value...
Thanks (in advance :D )
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: Program path and name

Post by StarBootics »

Hello,

Try this code :

Code: Select all

Debug ProgramFilename()
Debug GetPathPart(ProgramFilename())
Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
JagV12
New User
New User
Posts: 9
Joined: Sat Jun 22, 2019 11:28 am

Re: Program path and name

Post by JagV12 »

Thanks StarBootics, "ProgramFilename()" is exactly what I was looking for !

I wasn't searching in the appropriate Help section ('FileSystem' instead of 'Process')... I should have been because I already used "ProgramParameter([Index])"... :oops:

Thanks again :D
Post Reply