Jump to content

Recommended Posts

Posted

Signature - my forum contributions:

  Reveal hidden contents

 

Posted

Func IsRDP() ; Returns True or False
    Return Not (EnvGet('SESSIONNAME') == '')
EndFunc

Here is a snippet for you.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Solution
Posted

  On 7/5/2013 at 7:52 AM, guinness said:
Func IsRDP() ; Returns True or False
    Return Not (EnvGet('SESSIONNAME') == '')
EndFunc

Here is a snippet for you.

 

Hmpf .. I knew that, but I read somewhere, that he %SESSIONNAME% variable is set if you are on a terminal server. If you just RDP to

the console of a workstation, or server – it is empty. Obviously that's untrue - should've checked that before asking here. 

Sorry!

Posted

No problem, actually orbs was the one who really answered you. I just wrapped it in a function.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 7/5/2013 at 8:08 AM, woffi said:

 

Hmpf .. I knew that, but I read somewhere, that he %SESSIONNAME% variable is set if you are on a terminal server. If you just RDP to

the console of a workstation, or server – it is empty. Obviously that's untrue - should've checked that before asking here. 

 

 

Thanks - to orbs also.

Actually I just found out that under Win7, Sessioname contains "Console" when not in an RDP Session, so the Function is not quite correct ;)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...