Investment Studio > Views > Downloads > Downloader > ActiveX interface > Aux > getNewPath
BSTR Aux.getNewPath(BSTR directory, extension)
Returns the full path to an unused filename with the specified extension in the specified directory.
Returns an empty string ("") in case of failure (e.g. if the directory can not be accessed).
Symbolic directory names (e.g. "<DATA>") in directory are automatically expanded to actual directory names.
Use this function e.g. to create temporary files in <TEMP> (don't forget to delete them when you're done!).