Experiment Name

Context: I often export waves from one packed experiment file to another where each experiment file represents a different level of data processing.   I would like to add a wave note to my waves as I export them that includes the name of the original experiment file in which the wave was created in.    

Q: How does one programmatically return a string containing the current Igor experiment's name?  

Seems like a simple thing, but I couldn't find it in the documentation. 

aclight

Use IgorInfo(1). That gives you the file name of the experiment. If you need the full path, you can use PathInfo home and read the S_Path output variable to get the disk path of the directory in which the experiment is located.