#196035 - 2009-09-23 08:00 AM
SteelKiX Macros: USERID, WKSTA, TICKS, DOMAIN, CRLF, CURDIR
|
It_took_my_meds
Hey THIS is FUN
Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
|
Macro CURDIR
;Author Richard von Mallesch (It took my meds)
;Action Returns the current directory
;Version 1.0
;Date 23/09/2009
Dim $Env
Imports $Env = System.Environment
$CURDIR = $Env.CurrentDirectory
EndMacro
Macro CRLF
;Author Richard von Mallesch (It took my meds)
;Action Returns a new line
;Version 1.0
;Date 23/09/2009
Dim $Env
Imports $Env = System.Environment
$CRLF = $Env.NewLine
EndMacro
Macro DOMAIN
;Author Richard von Mallesch (It took my meds)
;Action Returns the domain or workgroup the computer belongs to
;Version 1.0
;Date 23/09/2009
Dim $Env
Imports $Env = System.Environment
$DOMAIN = $Env.UserDomainName
EndMacro
Macro TICKS
;Author Richard von Mallesch (It took my meds)
;Action Returns the number of milliseconds elapsed since computer was last booted
;Version 1.0
;Date 23/09/2009
Dim $Env
Imports $Env = System.Environment
$TICKS = $Env.TickCount
EndMacro
Macro USERID
;Author Richard von Mallesch (It took my meds)
;Action Returns the current user's Windows NT user ID
;Version 1.0
;Date 23/09/2009
Dim $Env
Imports $Env = System.Environment
$USERID = $Env.UserName
EndMacro
Macro WKSTA
;Author Richard von Mallesch (It took my meds)
;Action Returns the computer name
;Version 1.0
;Date 23/09/2009
Dim $Env
Imports $Env = System.Environment
$WKSTA = $Env.MachineName
EndMacro
Edited by It_took_my_meds (2009-09-23 09:25 AM) Edit Reason: Added headers
|
Top
|
|
|
|
#196044 - 2009-09-23 03:52 PM
Re: SteelKiX Macros: USERID, WKSTA, TICKS, DOMAIN, CRLF, CURDIR
[Re: It_took_my_meds]
|
BoForce
Fresh Scripter
Registered: 2005-10-22
Posts: 36
Loc: Leeuwarden, The Netherlands
|
Very nice.
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
2 registered
(morganw, mole)
and 414 anonymous users online.
|
|
|