Getting the Current User Name On Windows

xavier.bury at clearstream.com xavier.bury at clearstream.com
Fri Oct 19 10:08:41 EDT 2007


shorter than that is to do 

echo %username%

Net user USERID /dom is used to find user's infos on the network. Much 
slower...

Cheers
---------------------=---------------------
Xavier Bury

use-revolution-bounces at lists.runrev.com wrote on 19/10/2007 16:04:36:

> Hiya,
> 
> It's 'net user' (without the apostrophies).
> 
> If you add the '/?' switch you get the list of options.
> 
> Cheers,
> 
> Luis.
> 
> 
> 
> On 19 Oct 2007, at 14:56, David Burgun wrote:
> 
> > Hi,
> >
> > I'm using the "whoami" shell  function to return the current user 
> > name on the Mac. Does anyone know the equivalent code for Windows?
> >
> > Thanks a lot
> > All the Best
> > Dave
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your 
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution



----------------------------------------------------------------------------
Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg R.C.S. Luxembourg B 60911.


-----------------------------------------
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents
of this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. Any views expressed in
this e-mail are those of the individual sender, except where the
sender specifically states them to be the views of Clearstream
International or of any of its affiliates or subsidiaries.

Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
http://deutsche-boerse.com/letterhead

END OF DISCLAIMER


More information about the Use-livecode mailing list