> > What you probably want is ...
> >
[quoted text clipped - 8 lines]
> Working without a .NET?
> http://classicvb.org/
>>> Environ("UserName") - this is the Windows logon userid.
>>>
[quoted text clipped - 6 lines]
> I don't doubt you for a second, but how does one change the username
> environment variable?
======================================
C:\>set username
USERNAME=kep
C:\>set username=NoneOfYourBusiness!
C:\>set username
USERNAME=NoneOfYourBusiness!
======================================
Of course, that only affects the current process.
> I thought it always picked up the same as
> GetCurrentUser - what is the point of it otherwise?
Like many conveniences, that's all it is.
I guess your question is similar to, "if you can die in a car with airbags,
what's the point of them anyway?" Maybe it's good, maybe not. Depends on
the crash.
In this case, you *can* take the uncertainty out of it, though. Or at least
lots more of it. (You familiar with OS support for impersonating users?
<g>)
--
Working without a .NET?
http://classicvb.org/
Tony Jollans - 23 Nov 2005 21:40 GMT
Thanks Karl!
I guess it's possible to fool any program if you try hard enough :-)
--
Enjoy,
Tony
> >>> Environ("UserName") - this is the Windows logon userid.
> >>>
[quoted text clipped - 34 lines]
> Working without a .NET?
> http://classicvb.org/
Karl E. Peterson - 23 Nov 2005 22:40 GMT
> Thanks Karl!
>
> I guess it's possible to fool any program if you try hard enough :-)
Keep that in mind, and you'll go far. ;-)
--
Working without a .NET?
http://classicvb.org/
>>>>> Environ("UserName") - this is the Windows logon userid.
>>>>>
[quoted text clipped - 34 lines]
>> Working without a .NET?
>> http://classicvb.org/