Page 1 of 1 1
Topic Options
#1831 - 2000-02-25 11:44 AM ELIMINATING SCRIPT WHEN DIALING IN
Anonymous
Unregistered


I'm currently using the following logon batch file in user manager:

%0\..\kix32.exe %0\..\trackit.scr

The script file (trackit.scr) reads as follows:

IF INGROUP("GROUPNAME")
RUN "\\SERVERNAME\SHARE\FILE.EXE"
ENDIF

This works great when users are on the LAN, and they logon thru their BDC on their subnet (which there is on every subnet). The problem is when users dial-in. It takes forever for the black DOS window to go away (2-5 minutes, which is forever for an enduser), and for the *.exe file to run (6 minutes total). Even if I use the SETCONSOLE("HIDE") command, the black DOS window, which is actually running the kix32.exe from the logon server, takes up too much resources over the modem, and their not able to do anything else. Everything else takes too long to open and run, and the modem is basically running at 100% doing the kix32.exe stuff.

Here's what I want to do: somehow make it so that the *.bat file in user manager (which points to the script file) only runs when users logon thru the LAN. I don't want the *.bat file to run when they get onto the network via a dial-connection.

I know I can un-check the logon to network box in their dial-connection, but they need access to server resources, so that's not an option. I just don't want the *.bat and *.scr file to run when dialing-in. I just got beat up by users for an hour in an IT meeting over it, so any suggestions would be greatly appreciated...

Brad

This logon batch file, along with the actual script, runs on all our BDC's and works great when

Top
#1832 - 2000-02-29 02:21 AM Re: ELIMINATING SCRIPT WHEN DIALING IN
test_user Offline
Fresh Scripter

Registered: 2000-02-29
Posts: 14
Skip,

When the people dialin, do they get a different ip address or subnetmask assigned?

If so, you can filter on that. If needed I'll post some code here.

Gr,
Steven

Top
#1833 - 2000-02-29 11:00 AM Re: ELIMINATING SCRIPT WHEN DIALING IN
Anonymous
Unregistered


No, they don't get a different subnet IP address. We use DHCP for the LAN, and static for RAS, but it's all the same subnet. Thanks for inquiring...
Top
#1834 - 2000-03-01 07:15 AM Re: ELIMINATING SCRIPT WHEN DIALING IN
RStern Offline
Lurker

Registered: 2000-03-01
Posts: 4
If you have a different set of IP addresses for dialin, even in the same subnet, you could probably do a calculation off of that. You can see from this script how to get address info, and then you can try a greater than, less than scenario with the IP address portion. Let me know how it goes!

$ip = substr(@IPADDRESS0,5,7) ; Original middle 2 octets
$oct2 = rtrim(ltrim(substr($IP,1,3))) ; Get 2nd octet
$oct3 = rtrim(ltrim(substr($IP,5,3))) ; Get 3nd octet
$mid = $oct2 + "." + $oct3 ; Formatted concatenated middle 2 octets

------------------
Richard Stern

_________________________
Richard Stern

Top
#1835 - 2000-03-02 11:00 AM Re: ELIMINATING SCRIPT WHEN DIALING IN
Anonymous
Unregistered


Hi all,

My thoughts:

Have one general logonbatchfile in which you copy the kix executable and dll's to the workstation if not yet available. Yes I know you can make it smarter with version-control and things, but this is the idea:

LOGIN.BAT:
IF EXIST(C:\NETTOOLS\KIX32.EXE) GOTO RUNKIX
:COPYKIX
C:
MD \NETTOOLS
COPY \\SERVER\SHARE\KIX.ZIP
UNZIP KIX.ZIP

:RUNKIX
C:\NETTOOLS\KIX32.EXE \\SERVER\NETLOGON\LOGIN.KIX

:END

In the kix script, you can use the @RAS macro thingy stuff tool macro!

Regards,

Marc



Top
#1836 - 2000-03-03 01:24 PM Re: ELIMINATING SCRIPT WHEN DIALING IN
Anonymous
Unregistered


I may be missing something here but...
Is there someway you can put "checkras" into the mix? If you are not familiar, this is a util from the NT Reskit which runs at logon, detects a RAS connection, and then allows you to run a different Kix scr.

If this might help and you want more info, email me : nial_pye@rhss.bc.ca

Nial

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 931 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.054 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