Hi
I stumbled on to something peculiar in Stata.
Let's say that I have created a folder named "C:\nhb's folder", note that ' is part of the name of the folder.
If I want to see all files in that folder I'll use the extended Stata function dir:
But as seen above `: dir "C:\nhb' is evaluated giving the error and the rest "s folder" is displayed.
Is there a workaround for this?
Looking forward to hear from you
PS I have tried using \' for escaping the problem without any luck
I stumbled on to something peculiar in Stata.
Let's say that I have created a folder named "C:\nhb's folder", note that ' is part of the name of the folder.
If I want to see all files in that folder I'll use the extended Stata function dir:
Code:
. di `"`: dir "C:\nhb's folder" dir "*"'"' invalid syntax s folder" dir "*'
Is there a workaround for this?
Looking forward to hear from you
PS I have tried using \' for escaping the problem without any luck
Comment