Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Strange result from userid()

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Strange result from userid()
#12662
Posted by: Michael S 2009-01-31 18:53:53
I appended on this topic before and I think it got lost. Anyway ....

I'm seeing REALLY strange behaviour from the userid() command. At work, my userid is misi01 and at home I simply have Michael. On my girlfriend's PC I have an account called Michael_V. When debugging in RPC on her PC, the result from the userid() command is MISI01 !?!?!?!?!?

Any ideas Jeff on where this could be coming from ???
Message2.
#12663
Posted by: Jeff Glatt 2009-02-01 06:24:03
USERID produces "the computer name", not the name of the person currently logged in.
Message3. Don't understand your answer.
#12664
Posted by: Michael S 2009-02-02 15:46:00
I remember from the previous append that got lost that I wrote that I had changed my account name on my girlfriend's PC from Michael to Michael_V and that userid was still returning the former rather than the latter.

To my knowledge, the only (?) way her PC could be returning MISI01 would be if installing Reginald on a PC hard-wired the account name somewhere into the innards, and as a result of simply copying Reginald to a memory stick from work and then installing it on her machine would result in userid() returning MISI01.

BTW - my computer name at work is SEW02160, so at least there userid() is working as expected (where it returns my LAN logon userid of MISI01).
Message4.
#12666
Posted by: PeterJ 2009-02-02 23:22:34
I did the same test on several PCs, with different Windows userids. In my home network I get the windows userid, at work my LAN userid. But I have never seen an unexpected userid as Michael did.
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥1,420.00 ·
 
 
¥950.00 ·
 
 
¥288.00 ·
 
 
¥738.00 ·
 
 
¥397.00 ·
 
 
¥750.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0