Now I use the function ADIR to get some information about our running exe-file 'student.exe':
dimension lExeInfo(1)
lProgName='student.exe'
=adir(lExeInfo,'&lProgName')
thisform.txtDatInstal.value=dtoc(lExeInfo[1,3])+' - '+lExeInfo[1,4]
To try things in the field before publishing it to the real users, I like to compile to a file name 'student1.exe'. In that case the upper code wil not work, because the exe-file name isn't 'student.exe' but 'student1.exe'...
I need VFP-code to use in my application to know the name of the exe-file that is currently executing. In that case I don't have to hard-code the variabel lProgName.
Who can help me?
dimension lExeInfo(1)
lProgName='student.exe'
=adir(lExeInfo,'&lProgName')
thisform.txtDatInstal.value=dtoc(lExeInfo[1,3])+' - '+lExeInfo[1,4]
To try things in the field before publishing it to the real users, I like to compile to a file name 'student1.exe'. In that case the upper code wil not work, because the exe-file name isn't 'student.exe' but 'student1.exe'...
I need VFP-code to use in my application to know the name of the exe-file that is currently executing. In that case I don't have to hard-code the variabel lProgName.
Who can help me?