How do I define the pathname to a file in WIndows 10
Kenneth Brody
kenbrody at spamcop.net
Tue Dec 8 10:24:36 PST 2015
On 12/8/2015 12:35 PM, Brian K. White via Filepro-list wrote:
>
>> or add quotes around the whole string because of the space in My Documents:
>>
>> tf = "\""getenv("USERPROFILE"){x{"My Documents"{x{"foo.txt\""
>
> Wups, missing a { between the first "\"" and getenv() :
>
> tf = "\""{getenv("USERPROFILE"){x{"My Documents"{x{"foo.txt\""
... which means that instead of getting a "syntax error" in filePro, you'll
simply end up with an invalid filename.
(USERPROFILE includes the drive letter, so you can't preface it with "\".
And, if it didn't include a drive letter, you would now have a filename that
starts with "\\", which in all likelihood would also be a failure.)
--
Kenneth Brody
More information about the Filepro-list
mailing list