Page 1 of 1

Extract path: not sure if this is a bug or not.

Posted: Thu Mar 12, 2009 10:31 am
by bokkie
Copy and paste this code snippet:

Set Variable Q to C:\\Temp\\Fred\\\\Bob\\Horse
Replace \\\\ with \\: Q
MessageBox: Substituting \\\\ with \\ yields..., $Q$
Extract Parent Folder: Q
MessageBox: The parent folder is..., $Q$


The second message box displays C:\\Temp\\Fred. Is this correct given the full pathname in the variable?

I'm not sure if it's a bug or not but the parent folder displayed does not seem to be what I was expecting. I wonder if it's because the last component Horse is being interpreted as a filename, in which case the parent of Bob would be Fred?

EDIT: Scrap this! The last component is indeed the pathname so the parent folder displayed is correct. Doh!