I have a string that contains a full FileName; i.e., The path and the file name.
How can I get just the path out of that string?
I tried "File(FileName.path)" but it returned something like "0000 temp"
Seemingly, that only works on a file object, and not on a string.
I wanted to do something through find/replace within the string... but I dont know about it.
In other languages I would do a reverse search on a forward slash - which would find the last slash in the string
and I would erase everything after that.
If anyone can help me with this, I will greatly appreciate it!
Assume a string variable s; then
myPath = Folder(s).path;
(if the string s is a legal path) will give you the path associated with s's the full path.
Thanks a lot Peter!