Getting the name of the running script
Forums
Hi Brian
Is there a system field that holds the name of the running script?
for example: I have few versions of the same script. They are all having the same name suffixed by V1, V2, V3, etc.
The scripts generate excel files and I want to make sure the generated excel files are stored in different folders, depending on which version of the script is running.
Thanks a lot!
Avi
Thats OK Brian, normally,
Thats OK Brian, normally, when something is categorically not possible it indicates that a new way of thinking is required,
probably it is not a good idea to create directories based on which version of the script you are running, I will think of some other , less kludgy, ways to handle my growing population of libraries :-)
Take care,
Avi
Hi Avi,
Hi Avi,
The only thing I can think of is to have a variable in each of the scripts that holds the script name, such as:
sScriptName = "This is my script.iss"
You then reference this variable to see which script you are running. Does that help solve the problem? Unfortunately there isn't a function like in Excel where you can get the name of the current spreadsheet.
Brian