How do I define the pathname to a file in WIndows 10

Brian K. White brian at aljex.com
Tue Dec 8 03:04:13 PST 2015


On 12/7/2015 11:57 AM, John Hemmer via Filepro-list wrote:
> Hi,
> I am trying to redirect a report so that it appear as a text file on my laptop.
> I am have trouble in windows 10 because it does not seem to work like olderversion of windows, like windows 7.
> Help?
> John
>   		 	   		
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20151207/1e6181aa/attachment.html>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>

I think you are going to want to use the system variables to point to 
the users My Documents directory, without hard coding any assumptions 
about where that actually is. Otherwise you will always run into 
permissions problems not being able to write to dirs you used to be able to.

%USERPROFILE%\My Documents\foo.txt

Which would probably look like this in a filepro prc table (I'm not 
using windows filepro so I can't double-check it):

x = chr("92")
tf = getenv("USERPROFILE"){x{"My Documents"{x{"foo.txt"

or add quotes around the whole string because of the space in My Documents:

tf = "\""getenv("USERPROFILE"){x{"My Documents"{x{"foo.txt\""

-- 
bkw


More information about the Filepro-list mailing list