View Single Post
Old 12-16-2012, 06:17 AM   PM User | #1
comfroels
New Coder

 
Join Date: Jan 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
comfroels is an unknown quantity at this point
VBScript Question (Didn't know where to put it)

I am terrible at VBScript and am not sure of syntax here I am trying to just check if there is an active rdp session active and if there is to pop up a window saying so.
Code:
 
dim IsRemoteSession 
 
 
 bool IsRemoteSession(void)

      return GetSystemMetrics( SM_REMOTESESSION )

 if IsRemoteSession = true then
 MessageBox "RDP Session Active"
 end if
any help would be appreciated
comfroels is offline   Reply With Quote