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

Nancy Palmquist nlp at vss3.com
Mon Mar 3 13:33:46 PST 2008


Kenneth Brody wrote:
> 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.
> 
> [...]
> 
Guys,

Since my miniscule brain can not remember when it is ok and when not, I just 
make a habit of flipping on windows.  Then I don't have to worry about which 
case allows slashes that lean east and which only allow west leaning slashes.

I have found that this will always work and I can leave some RAM to remember 
other more important items.

But as always, you keep me honest.

Nancy

-- 
Nancy Palmquist 		MOS & filePro Training Available
Virtual Software Systems	Web Based Training and Consulting	
PHONE: (412) 835-9417		   Web site:  http://www.vss3.com


More information about the Filepro-list mailing list