CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Computer Programming (http://www.codingforums.com/forumdisplay.php?f=21)
-   -   VBScript Question (Didn't know where to put it) (http://www.codingforums.com/showthread.php?t=284231)

comfroels 12-16-2012 06:17 AM

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


All times are GMT +1. The time now is 11:34 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.