Page 1 of 1
Program path and name
Posted: Thu Apr 30, 2020 1:07 am
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

)
Re: Program path and name
Posted: Thu Apr 30, 2020 1:44 am
by StarBootics
Hello,
Try this code :
Code: Select all
Debug ProgramFilename()
Debug GetPathPart(ProgramFilename())
Best regards
StarBootics
Re: Program path and name
Posted: Thu Apr 30, 2020 2:06 am
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])"...
Thanks again
