windows filepro and username variable

Robert Haussmann haussma at nextdimension.net
Sun May 18 14:18:42 PDT 2008


Scott,

filePro is simply pulling from the windows environment.  It may be
that in certain configurations, USERNAME isn't getting set (e.g.,
maybe windows XP Home--I'm not sure).

the easiest way to troubleshoot this is to start a command prompt
and type:

set > c:\env.txt

then look at c:\env.txt and see what your environment looks like.
Does USERNAME appear?

Bob Haussmann
Tabor Children's Services, Inc.

> -----Original Message-----
> From: filepro-list-
> bounces+haussma=nextdimension.net at lists.celestial.com [mailto:filepro-
> list-bounces+haussma=nextdimension.net at lists.celestial.com] On Behalf
> Of Scott Nelson
> Sent: Sunday, May 18, 2008 5:14 PM
> To: Fairlight
> Cc: filePro Mailing List
> Subject: Re: windows filepro and username variable
> 
>  From the desktop, running fp 5.0.7 and logged in as a user.  Have the
> command 'a=getenv("%USERNAME%")  and show"@"<A in auto processing.  It
> show blank, with or w/o the %.
> 
> Scott
> 
> 
> Fairlight wrote:
> > Is it just me, or did Scott Nelson say:
> >
> >> I am running fp on xp pro, and trying to get the getenv to get the
> >> %USERNAME%.  It returns blank.  I have tried variations on the
> username
> >> with and w/o % etc.  Any one got this working?
> >>
> >
> > Are you doing it from inside a service like IIS, or are you doing it
> > actually logged in and on the desktop?
> >
> > It should be getenv("USERNAME") and work fine--at least while logged
> into
> > the desktop.
> >
> > mark->
> >
> 
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list



More information about the Filepro-list mailing list