Page 1 of 2 12>
Topic Options
#30980 - 2002-10-18 07:34 PM SLOW
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
I thought I already posted this, must not have.
Win98 users
Users run LMSCRIPT - renamed kix32.exe to LMSCRIPT.EXE - suggested by forum

KIX 4.1 Have Dlls on users's local windows\system

Win2K servers

The values are put in the run registry because we have multiple users on the pcs and some delete icons just for the fun of it. We are a 24hr 7 day a week manufacturer.

Script runs just really slow. Is there a way to speed it up or is it just a performance issue between Win98 and Win2k?

[CODE]
if ingroup("TX-Everyone")
$OS = @producttype

;use h: /delete
use g: /delete
;use h: "\\TX-Server\Marshall\home"
use g: "\\TX-Server\Marshall\depts"
endif

if $OS = "Windows 98"if $OS = "Windows 98"
; Test for virus upgrade

;Macola

; MACOLA Section

if ingroup("TX-Macola Access")
Use M: /delete
USE M: "\\Tx-Server\Apps"
endif

if ingroup("TX-Mapcon")
Use O: /delete
USE O: "\\Tx-Server\Apps"
$regkey='HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run'
$regentry='MapconIcon'
$regvalue='\\tx-control\netlogon\short2.bat'
$rc=writevalue($regkey,$regentry,$regvalue,'REG_SZ')
if @ERROR
? 'Error writing to registry: '+@ERROR+' - '+@SERROR

endif
; "Creating Mapcon icon" sleep 1 ?
endif

; LIMS
if ingroup("TX-LIMS")
$regkey='HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run'
$regentry='LIMSIcon'
$regvalue='\\tx-control\netlogon\Lims.bat'
$rc=writevalue($regkey,$regentry,$regvalue,'REG_SZ')
if @ERROR
? 'Error writing to registry: '+@ERROR+' - '+@SERROR
endif
; "Creating Lims icon" sleep 1 ?
endif

if ingroup("TX-Orders")
$regkey='HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run'
$regentry='OrdersIcon'
$regvalue='\\tx-control\netlogon\orders.bat'
$rc=writevalue($regkey,$regentry,$regvalue,'REG_SZ')
if @ERROR
? 'Error writing to registry: '+@ERROR+' - '+@SERROR

endif
; "Creating Orders Icon" sleep 1 ?
endif

if ingroup("TX-Quality")
regkey='HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run'
$regentry='QualityIcon'
$regvalue='\\tx-control\netlogon\Quality.bat'
$rc=writevalue($regkey,$regentry,$regvalue,'REG_SZ')
if @ERROR
? 'Error writing to registry: '+@ERROR+' - '+@SERROR

endif
; "Creating Quality icon" sleep 1 ?
endif

endif
;OK SECTION
; Code for OK user on laptop to map depts and home
if ingroup("OK-Laptops")
use h: /delete
use g: /delete
use h: "\\tx-Data\pryor\home"
use g: "\\tx-Data\pryor\depts"
endif
COOKIE1
exit
[CODE]
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#30981 - 2002-10-18 07:41 PM Re: SLOW
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Not that it would slow it down, but you have either a typo or some missing Endif

if $OS = "Windows 98"if $OS = "Windows 98"

When you say slow, what is slow? How much time we talking?

Has it always been slow? or a recent thing happening? Does it happen to a few, or everyone?

Top
#30982 - 2002-10-18 07:45 PM Re: SLOW
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I could determine from your posting if the script run slowly on Win9x, W2K, or both.

If you incorporate WriteLog() or WriteLog2() in your code, where does the log file Time/Date stamp show delays?

[ 18. October 2002, 19:50: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#30983 - 2002-10-18 07:59 PM Re: SLOW
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I would look at network properties on the clients. Things like extra clients, protocols, binding and provider order, etc.

Or maybe AV software.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#30984 - 2002-10-18 08:00 PM Re: SLOW
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The one sigle item in your script that might slow it down would be an issue with the USE statement. If you for example connect to a share that is unavailable, then you would incur a 30 second penalty while waiting for USE to time out.

However, you should inplement Howard's logging functions in oder to create a time trace of your script and see which functions take the longest.
_________________________
There are two types of vessels, submarines and targets.

Top
#30985 - 2002-10-18 08:03 PM Re: SLOW
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Actually, with regards to AV software. I used to have an issue with NAV where each single line of script would take about a second to execute. I reported it here: Script-Incompatibility with Norton Antivirus 2001 !
_________________________
There are two types of vessels, submarines and targets.

Top
#30986 - 2002-10-18 09:20 PM Re: SLOW
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
Never used WriteLog how does it work? Syntax?
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#30987 - 2002-10-18 09:25 PM Re: SLOW
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Follow the link in my previous post. The code is a UDF in the UDF Library. The header of the UDF contains examples.

Are you familiar with including a UDF in your code? If not, see this link: How to use UDFs
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#30988 - 2002-10-18 09:47 PM Re: SLOW
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
Nope - new to all of this. Just trying to keep my head above water. Moving all Netware Data over to Win2K servers and needed new login script. I will read up when I get the chance. This weekend I am moving data and apps.
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#30989 - 2002-10-18 09:50 PM Re: SLOW
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
Why would the mapping G: code work sometimes but not all the time. I have some users that get G: one time and not the next.
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#30990 - 2002-10-18 09:58 PM Re: SLOW
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Kathy:

Both the G: and H: drive are deep mapping. This will not work under Windows 9x and NT. Please see the KiXtart Manual Appendix A for an explanation. You will need to use the SUBST.EXE command in oder to support deep mapping under Windows NT.
_________________________
There are two types of vessels, submarines and targets.

Top
#30991 - 2002-10-18 10:35 PM Re: SLOW
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Kathy,
You mention NetWare...
Have you optimized the protocol bindings and provider orders? They make a huge difference in performance!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#30992 - 2002-10-18 10:38 PM Re: SLOW
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
Yes on Protocol preferences.

The mapping is just to a shared folder on the win2k server. \\server\marshall(shared)\depts(shared)
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#30993 - 2002-10-18 10:45 PM Re: SLOW
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Kathy: Nevertheless, Windows 9x/NT client will not be able to successfully map to the deep mapped shares. The server OS does not matter in this case, since the mapping is a client function.
_________________________
There are two types of vessels, submarines and targets.

Top
#30994 - 2002-10-18 10:49 PM Re: SLOW
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
I thougt I read somewhere that win98 could not do a root mapping but just to the level of a shared folder.
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#30995 - 2002-10-18 11:30 PM Re: SLOW
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Can you nest shares? [Eek!]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#30996 - 2002-10-19 08:27 AM Re: SLOW
Anupam Agarwal Offline
Fresh Scripter

Registered: 2002-09-25
Posts: 17
Loc: Austin, TX
The idea of the log file is still a good one. Here is a sample of how:

$Ret = RedirectOutput("filename.txt, 1)
"@Time Connecting L: drive to share \\TX-Something..." ?

You can place these text strings before and after pieces of code. See if that helps.

Top
#30997 - 2002-10-19 08:31 AM Re: SLOW
Anupam Agarwal Offline
Fresh Scripter

Registered: 2002-09-25
Posts: 17
Loc: Austin, TX
Forgot to mention that in Win98, you can only map \\servername\sharename to drive letter. I see in your code that you are trying to map \\servername\sharename\foldername. This is probably why it is taking a long time because it is timing out. The functionality of mapping folders inside shares to a drive letter directly only exists in Windows 2000 and above.
Top
#30998 - 2002-10-19 05:35 PM Re: SLOW
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Anupam: I think we've told Kathy at least five times alread that those deep maps won't work under Windows 9x. We even pointed here to the appropriate KiXtart Manual pages and related post on this BBS. BTW, you can deep map under Windows NT, too, however, you'll have to use SUBST.EXE. Just take a look at the YAMD() UDF in the UDF Forum.

Also, Howard's WriteLog() UDF (mentioned in his post) do the logging including a timestamp to trace script bottlenecks.
_________________________
There are two types of vessels, submarines and targets.

Top
#30999 - 2002-10-19 08:11 PM Re: SLOW
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
It is \\servername\sharename\sharename. Guess that won't work and EXCUSE me if I am new to this and I am in a HUNK of stress right now. A few of you could be a little more understanding. Feels like a chat room in here at times. Most of you are really nice and I do appreciate all of the help you have given me. There are two of us moving 18 servers and oh well forget it.
_________________________
Stupid is forever - Ignorance can be fixed.

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 568 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.137 seconds in which 0.102 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