Code:
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