Windows filenames and "/" (was Re: logtext and logfile)

Kenneth Brody kenbrody at bestweb.net
Mon Mar 3 10:42:53 PST 2008


Quoting Nancy Palmquist (Mon, 03 Mar 2008 13:31:38 -0500):

[...]
> Look at permissions.  You need to be careful where you write stuff.
>
> Suggestion:
>
> /appl/filepro/filename/logs
>
> So logfile would be:
>
> file=getenv("PFDATA"){getenv("PFDIR"){"/filepro/"{@fi{"/logs"{@rn{","{1
>
> Same exact string works for WINDOWS, just do this
>
> file=xlate(file,"/",chr("92"))  to flip the slashes.

Unless you're passing the filename to SYSTEM (which we're not doing here),
there is no need to flip the slashes under Windows.  The forward slash
works just fine.

[...]

-- 
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list