Re: AW: Getting the currently logged in user under Windows

2010-05-17 Thread Andre Garzia
On unix like systems, you can do shell("whoami") Sent from my iPad On May 17, 2010, at 7:17 PM, Bob Sneidar wrote: > I think mostly Windows Home is neutered in respect to Windows Networking > protocols. I don't think there would be any problem with shell calls relating > to things both Home a

Re: Getting the currently logged in user under Windows

2010-05-17 Thread J. Landman Gay
Bob Sneidar wrote: How odd they are different between Windows and Mac! If Linux is the same as OS X, which could be likely, then it's Windows that's odd. :) I'm too lazy to boot up my Ubuntu installation to check. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive S

Re: Getting the currently logged in user under Windows

2010-05-17 Thread Mark Wieder
Bob- Monday, May 17, 2010, 3:15:31 PM, you wrote: > How odd they are different between Windows and Mac! rotfl -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe,

Re: AW: Getting the currently logged in user under Windows

2010-05-17 Thread Bob Sneidar
I think mostly Windows Home is neutered in respect to Windows Networking protocols. I don't think there would be any problem with shell calls relating to things both Home and Professional had in common. Bob On May 17, 2010, at 9:59 AM, Tiemo Hollmann TB wrote: > Tested: It works also on XP w

Re: Getting the currently logged in user under Windows

2010-05-17 Thread Bob Sneidar
How odd they are different between Windows and Mac! Bob On May 17, 2010, at 3:12 PM, J. Landman Gay wrote: > Bob Sneidar wrote: >> I would use a lineoffset with "USERNAME=" as opposed to a repeat >> loop, but as another post pointed out $username is much better. > > In case anyone's keeping sc

Re: Getting the currently logged in user under Windows

2010-05-17 Thread J. Landman Gay
Bob Sneidar wrote: I would use a lineoffset with "USERNAME=" as opposed to a repeat loop, but as another post pointed out $username is much better. In case anyone's keeping score, on OS X it's $USER. There is also $LOGNAME. At least here, they're both the same thing. -- Jacqueline Landman Ga

Re: Getting the currently logged in user under Windows

2010-05-17 Thread Bob Sneidar
I would use a lineoffset with "USERNAME=" as opposed to a repeat loop, but as another post pointed out $username is much better. Bob On May 17, 2010, at 7:05 AM, Malte Pfaff-Brill wrote: > Hi all, > > I am using this under Vista to identify the currently logged in user: > > function getUser

AW: Getting the currently logged in user under Windows

2010-05-17 Thread Tiemo Hollmann TB
n-boun...@lists.runrev.com [mailto:use-revolution- > boun...@lists.runrev.com] Im Auftrag von Malte Pfaff-Brill > Gesendet: Montag, 17. Mai 2010 16:06 > An: use-revolution@lists.runrev.com > Betreff: Getting the currently logged in user under Windows > > Hi all, > > I am using th

Re: Getting the currently logged in user under Windows

2010-05-17 Thread Roger . E . Eller
Malte Pfaff-Brill wrote: > Roger: *Yikes* > > Of course you are right. Sometimes I do not see the tree from the forest :-) > This should work reliably across Windows versions, right? > > Thanks again, > > malte I have used $username on WinXP and Win 7. Others, I would expect also to work, but I

Re: Getting the currently logged in user under Windows

2010-05-17 Thread Malte Pfaff-Brill
Roger: *Yikes* Of course you are right. Sometimes I do not see the tree from the forest :-) This should work reliably across Windows versions, right? Thanks again, malte ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this

Re: Getting the currently logged in user under Windows

2010-05-17 Thread Roger . E . Eller
--- On Mon, 5/17/10, Malte Pfaff-Brill wrote: > From: Malte Pfaff-Brill > Subject: Getting the currently logged in user under Windows > To: use-revolution@lists.runrev.com > Date: Monday, May 17, 2010, 9:05 AM > Hi all, > > I am using this under Vista to identify the curre

Re: Getting the currently logged in user under Windows

2010-05-17 Thread Malte Pfaff-Brill
Thank you Mike! atb, malte ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution

Re: Getting the currently logged in user under Windows

2010-05-17 Thread Michael Kann
/ or WIn 7, even when not logged in with admin rights? -- I'm afraid to log in any way except the way I always do it -- I might screw something up. Mike --- On Mon, 5/17/10, Malte Pfaff-Brill wrote: > From: Malte Pfaff-Brill > Subject: Getting the currently logged in user un

Getting the currently logged in user under Windows

2010-05-17 Thread Malte Pfaff-Brill
Hi all, I am using this under Vista to identify the currently logged in user: function getUserName local tUser set the hideconsolewindows to true put shell("set user") into tUser set the itemDel to "=" repeat for each line theLine in tUser if item 1 of theLine="USERNAME" then