Page 1 of 1 1
Topic Options
#9182 - 2001-06-05 05:18 PM Check for RAS from W2K machines ???
Anonymous
Unregistered


Hi!

How do I determine if a Windows2000 client that is logging in, is doing that through RAS ???

Our old script looks like this (this is for Windows95 machines) :
-----------------------------------------
$ras_value=readvalue("HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\SERVICES\REMOTE ACCESS","remote connection")

if $ras_value=01000000
; the thing to dooo
end if
-----------------------------------------

This doesnt work on windows2000 clients.
Of course, because the registry doesn't look the same.

Anyone who can help me rewrite this so it also works for Windows2000 clients ?

Regards,
Stefan

Added: Im using vesion 3.63

[This message has been edited by stefank (edited 05 June 2001).]

Top
#9183 - 2001-06-05 06:46 PM Re: Check for RAS from W2K machines ???
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Stefan, hey, hows it going ?

Have you tried KiXtart's @RAS macro ?

-Shawn

Top
#9184 - 2001-06-06 10:32 AM Re: Check for RAS from W2K machines ???
Anonymous
Unregistered


Yeah, i noticed there was a RAS macro (number of RAS connections).

But how do I use it ?

Top
#9185 - 2001-06-07 12:23 AM Re: Check for RAS from W2K machines ???
Anonymous
Unregistered


I found this on another site :

"For WinNT use the CheckRas utility from the resource kit and check the @error macro.

If @error=1
$RAS=YES
endif
"

Is that the only way ?

If I use the RAS macro, do i also have to
use the CheckRas utility ?

Please help

Top
#9186 - 2001-06-07 12:50 AM Re: Check for RAS from W2K machines ???
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hi Stefan,

with the macro you can simply do it like this :

code:

if @ras
;@ras is non-zero = User is dialing up
else
;User isn't dialing up
endif

Jochen

_________________________



Top
#9187 - 2001-06-06 02:37 PM Re: Check for RAS from W2K machines ???
Anonymous
Unregistered


oh....THANKS Jochen!

Do you know how to do it in earlier versions of Kix ?

Is there a way to do it without the @RAS-macro ? Let say, using the registry for instance ?

/Stefan


Top
#9188 - 2001-06-06 03:01 PM Re: Check for RAS from W2K machines ???
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Stefan,

don't nail me to it , but i think @ras was
there since at least 3.43 (same usage)

So why complicate things

Jochen

_________________________



Top
#9189 - 2001-06-06 03:06 PM Re: Check for RAS from W2K machines ???
Anonymous
Unregistered


Ok, thanks for your help!
Top
#9190 - 2001-06-07 04:42 AM Re: Check for RAS from W2K machines ???
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

The @ras macro was introduced at kixtart version 3.40
A complete list of kixtart updates is.


  • first number is introduction of command, function or macro.
    no number means: it was there from the beginning.
  • second number is remove of some statement. only the OLExx functions
    are removed at kixtart 2001 and are replaced by other functions.

code:

'addkey ', {* functions *}
'addprinterconnection ', {* functions *}
'addprogramgroup ', {* functions *}
'addprogramitem ', {* functions *}
'address ', {* macro's *}
'and ', {* boolean *} 3.15
'asc ', {* functions *} 3.46
'at ', {* functions *}
'backupeventlog ', {* functions *} 3.61
'beep ', {* commands *}
'big ', {* commands *}
'box ', {* functions *}
'break ', {* commands *}
'call ', {* commands *}
'case ', {* commands *} 3.37
'cd ', {* commands *}
'chr ', {* functions *} 3.30
'cleareventlog ', {* functions *} 3.61
'close ', {* functions *} 3.30
'cls ', {* commands *}
'color ', {* commands *}
'comment ', {* macro's *}
'comparefiletimes ', {* functions *} 3.40
'cookie1 ', {* commands *}
'copy ', {* commands *} 3.40
'createobject ', {* functions *} 4.00
'csd ', {* macro's *} 4.00
'curdir ', {* macro's *} 3.46
'date ', {* macro's *}
'day ', {* macro's *}
'dectohex ', {* functions *} 3.60
'del ', {* commands *}
'delkey ', {* functions *}
'delprinterconnection ', {* functions *}
'delprogramgroup ', {* functions *}
'delprogramitem ', {* functions *}
'deltree ', {* functions *}
'delvalue ', {* functions *}
'dim ', {* commands *}
'dir ', {* functions *} 3.60
'display ', {* commands *}
'do ', {* commands *} 3.15
'domain ', {* macro's *}
'dos ', {* macro's *}
'each ', {* commands *} 4.00
'else ', {* commands *}
'endif ', {* commands *}
'endfunction ', {* commands *} 4.00
'endselect ', {* commands *} 3.37
'enumgroup ', {* functions *} 3.45
'enumipinfo ', {* functions *} 4.00
'enumkey ', {* functions *}
'enumlocalgroup ', {* functions *} 3.45
'enumvalue ', {* functions *}
'error ', {* macro's *}
'execute ', {* functions *} 3.60
'exist ', {* functions *}
'existkey ', {* functions *}
'exit ', {* commands *}
'expandenvironmentvars', {* functions *} 3.61
'flushkb ', {* commands *}
'for ', {* commands *} 4.00
'fullname ', {* macro's *}
'function ', {* commands *} 4.00
'get ', {* commands *}
'getdiskspace ', {* functions *} 3.53
'getfileattr ', {* functions *} 3.60
'getfilesize ', {* functions *} 3.60
'getfiletime ', {* functions *} 3.53
'getfileversion ', {* functions *} 3.40
'getobject ', {* functions *} 4.00
'gets ', {* commands *}
'global ', {* commands *}
'go ', {* commands *}
'gosub ', {* commands *} 3.37
'goto ', {* commands *}
'homedir ', {* macro's *}
'homedrive ', {* macro's *} 3.40
'homeshr ', {* macro's *}
'hostname ', {* macro's *} 3.30
'if ', {* commands *}
'in ', {* commands *} 4.00
'ingroup ', {* functions *}
'instr ', {* functions *}
'inwin ', {* macro's *}
'ipaddress0 ', {* macro's *} 3.30
'ipaddress1 ', {* macro's *} 3.30
'ipaddress2 ', {* macro's *} 3.30
'ipaddress3 ', {* macro's *} 3.30
'keyexist ', {* functions *} 4.00
'kix ', {* macro's *}
'lanroot ', {* macro's *}
'lcase ', {* functions *} 3.44
'ldomain ', {* macro's *}
'ldrive ', {* macro's *}
'len ', {* functions *}
'lm ', {* macro's *}
'loadhive ', {* functions *} 3.46
'loadkey ', {* functions *}
'logevent ', {* functions *} 3.48
'logoff ', {* functions *} 3.30
'longhomedir ', {* macro's *} 3.40
'loop ', {* commands *} 3.15
'lserver ', {* macro's *}
'ltrim ', {* functions *} 3.37
'maxpwage ', {* macro's *}
'md ', {* commands *} 3.30
'mdayno ', {* macro's *}
'messagebox ', {* functions *} 3.20
'month ', {* macro's *}
'monthno ', {* macro's *}
'next ', {* commands *} 4.00
'olecallfunc ', {* functions *} 3.46 4.00
'olecallproc ', {* functions *} 3.46 4.00
'olecreateobject ', {* functions *} 3.46 4.00
'oleenumobject ', {* functions *} 3.61 4.00
'olegetobject ', {* functions *} 3.46 4.00
'olegetproperty ', {* functions *} 3.46 4.00
'olegetsubobject ', {* functions *} 3.46 4.00
'oleputproperty ', {* functions *} 3.46 4.00
'olereleaseobject ', {* functions *} 3.46 4.00
'open ', {* functions *} 3.30
'or ', {* boolean *} 3.15
'password ', {* commands *}
'play ', {* commands *}
'primarygroup ', {* macro's *} 3.36
'priv ', {* macro's *}
'productsuite ', {* macro's *} 4.00
'producttype ', {* macro's *} 4.00
'pwage ', {* macro's *}
'quit ', {* commands *} 3.40
'ras ', {* macro's *} 3.40
'rd ', {* commands *} 3.48
'readline ', {* functions *} 3.30
'readprofilestring ', {* functions *}
'readtype ', {* functions *}
'readvalue ', {* functions *}
'redirectoutput ', {* functions *} 3.20
'return ', {* commands *} 3.37
'rnd ', {* functions *} 3.48
'rserver ', {* macro's *}
'rtrim ', {* functions *} 3.37
'run ', {* commands *}
'savekey ', {* functions *}
'scriptdir ', {* macro's *} 3.46
'select ', {* commands *} 3.37
'sendkeys ', {* functions *} 3.60
'sendmessage ', {* functions *} 3.20
'serror ', {* macro's *} 3.46
'set ', {* commands *}
'setascii ', {* functions *} 3.61
'setconsole ', {* functions *} 3.17
'setdefaultprinter ', {* functions *}
'setfileattr ', {* functions *} 3.60
'setfocus ', {* functions *} 3.60
'setl ', {* commands *}
'setm ', {* commands *}
'setsystemstate ', {* functions *} 3.63
'settime ', {* commands *}
'settitle ', {* functions *} 4.00
'setwallpaper ', {* functions *} 3.35
'shell ', {* commands *}
'showprogramgroup ', {* functions *}
'shutdown ', {* functions *} 3.20
'sid ', {* macro's *} 3.36
'sidtoname ', {* functions *} 4.00
'site ', {* macro's *} 3.60
'sleep ', {* commands *}
'small ', {* commands *}
'split ', {* functions *} 4.00
'srnd ', {* functions *} 3.48
'startdir ', {* macro's *}
'step ', {* commands *} 4.00
'substr ', {* functions *}
'syslang ', {* macro's *} 3.53
'time ', {* macro's *}
'to ', {* commands *} 4.00
'ubound ', {* functions *} 4.00
'ucase ', {* functions *} 3.44
'unloadhive ', {* functions *} 3.46
'until ', {* commands *} 3.15
'use ', {* commands *}
'userid ', {* macro's *}
'userlang ', {* macro's *} 3.53
'val ', {* functions *} 3.37
'vartype ', {* functions *} 4.00
'vartypename ', {* functions *} 4.00
'wdayno ', {* macro's *}
'while ', {* commands *} 3.15
'wksta ', {* macro's *}
'writeline ', {* functions *} 3.46
'writeprofilestring ', {* functions *}
'writevalue ', {* functions *}
'wuserid ', {* macro's *}
'ydayno ', {* macro's *}
'year ' {* macro's *}


Why do you want to use an (very) old version of kixtart. Kixtart 3.63 is
very stable and it doesn't contain real problems.
Greetings.

------------------
Site map:

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1160 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.055 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org