Page 1 of 1 1
Topic Options
#128658 - 2004-10-29 05:41 PM wshShortcut problems
Clayton Offline
Fresh Scripter

Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
I've been using wshshortcut for a while with no problems. Just the other day I started getting an error on my line with the wshshorcut command.
I have the 1.3 wshshcortcut in my udf.kix that's called from my login.kix.

login

Break on
Call "@SCRIPTDIR\udf.kix"

If InGroup("ADM") Use h: "\\tpaprime01\ADM" EndIf
If InGroup("ACCT") Use h: "\\tpaprime01\ACCT" EndIf
If InGroup("CORP") Use h: "\\tpaprime01\CORP" EndIf
If InGroup("MEDMAL") Use h: "\\tpaprime01\MAL" EndIf
If InGroup("REALAND") Use h: "\\tpaprime01\REALAND" EndIf
If InGroup("ENV") Use h: "\\tpaprime01\ENV" EndIf
If InGroup("CORP") Use h: "\\tpaprime01\CORP" EndIf
If InGroup("FLOATER") Use h: "\\tpaprime01\DATA" EndIf
If InGroup("INS") Use h: "\\tpaprime01\INS" EndIf
If InGroup("LABOR") Use h: "\\tpaprime01\LABOR" EndIf
If InGroup("LANDATA") Use h: "\\tpaprime01\LANDATA" EndIf
If InGroup("BANKRUPT") Use h: "\\tpaprime01\BANKRUPT" EndIf
If InGroup("LDATA") Use q: "\\tpaprime01\LANDATA" EndIf

Use U: '\\tpaprime01\'+@USERID+'$$'
Use G: \\tpaprime01\data
Use J: \\tpaprime01\vol1
Use S: \\tpaprime\shared
Use W: \\tpaprime01\word
Use X: \\tpaprime01\apps

SetTime( "\\tpaprime" )

AddPrinterConnection ("\\tpaprime01\PRT 1900")
AddPrinterConnection ("\\tpaprime01\PRT 1901")
AddPrinterConnection ("\\tpaprime01\PRT 1902")
AddPrinterConnection ("\\tpaprime01\PRT 1903")
AddPrinterConnection ("\\tpaprime01\PRT 1904")
AddPrinterConnection ("\\tpaprime01\PRT 1905")
AddPrinterConnection ("\\tpaprime01\CPR 1906")
AddPrinterConnection ("\\tpaprime01\CPR 1907")
AddPrinterConnection ("\\tpaprime01\PRT 1908")
AddPrinterConnection ("\\tpaprime01\PRT 1909")
AddPrinterConnection ("\\tpaprime01\PRT 2000")
AddPrinterConnection ("\\tpaprime01\PRT 2001")
AddPrinterConnection ("\\tpaprime01\PRT 2002")
AddPrinterConnection ("\\tpaprime01\PRT 2003")
AddPrinterConnection ("\\tpaprime01\PRT 2004")
AddPrinterConnection ("\\tpaprime01\PRT 2005")
AddPrinterConnection ("\\tpaprime01\PRT 2006")
AddPrinterConnection ("\\tpaprime01\PRT 2007")
AddPrinterConnection ("\\tpaprime01\PRT 2008")
AddPrinterConnection ("\\tpaprime01\PRT 2009")
AddPrinterConnection ("\\tpaprime01\CPR 2010")
AddPrinterConnection ("\\tpaprime01\CPR 2011")
AddPrinterConnection ("\\tpaprime01\CPR 2012")
AddPrinterConnection ("\\tpaprime01\CPR 2013")
AddPrinterConnection ("\\tpaprime01\PRT 2014")
AddPrinterConnection ("\\tpaprime01\PRT 2015")
AddPrinterConnection ("\\tpaprime01\PRT 2016")
AddPrinterConnection ("\\tpaprime01\PRT 2017")

;**************************E-Transcript Viewer********************************************************************
If NOT Exist('%windir%\etrnview.exe')
Run "\\tpaprime\installs\etranscript\envsetup.exe"
Sleep 1
SendKeys ("~Y")
Sleep 3
SendKeys ("{ENTER}")
EndIf
;*****************************************************************************************************************

;***********************************Desktop Shortcuts*************************************************************

$=wshShortcut("Choice Mail","http://choicemail:8080/login.html")


;***********************************************************************************************************

Exit


Anyone have any ideas why this quit working??
Thanks!

Top
#128659 - 2004-10-29 05:45 PM Re: wshShortcut problems
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Did by any chance (maybe without your knowledge) did someone slip in a newer version of Kixtart ?
Top
#128660 - 2004-10-29 05:47 PM Re: wshShortcut problems
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2061
Loc: Tulsa, OK
Did you notice what the error that you get is?
Top
#128661 - 2004-10-29 05:49 PM Re: wshShortcut problems
Clayton Offline
Fresh Scripter

Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
Same version 4.22 - I'm the only one who runs the site.

Unknown Command [wshShortcut]!


I'm also having a problem with the script randomly not running at login. I can run the script from command line and it works. Wonder if these are related in someway.

All are XP machines without SP2.


Edited by Clayton (2004-10-29 05:57 PM)

Top
#128662 - 2004-10-29 05:57 PM Re: wshShortcut problems
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I would think this line is not resolving correctly:

Call "@SCRIPTDIR\udf.kix"

Would suggest you trace-out @SCRIPTDIR like this:

? "ScriptDir=" @SCRIPTDIR

To make sure its resolving correctly ... what OS's you running ? Does this appear on just one type of OS ?



Top
#128663 - 2004-10-29 06:13 PM Re: wshShortcut problems
Clayton Offline
Fresh Scripter

Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
I was thinking along those lines. I put the direct path of the udf and it worked. Crazy why it stopped resolving like that. Thanks!
Top
#128664 - 2004-10-29 07:25 PM Re: wshShortcut problems
Cybex Offline
Getting the hang of it
*****

Registered: 2004-07-21
Posts: 81
Loc: Brandon, FL.
Clayton,
Could you please edit your post and remove about 15 of the "*"'s from the long lines. It messes up the page sizes and forces scrollbars.

I guess I'll be the good cop since it's almost Hallows Eve.
_________________________
Common sense isn't so common.

Top
#128665 - 2004-11-01 02:27 PM Re: wshShortcut problems
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Just a quick question.. Do all of your users need all 28 Printers??

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Chris S., Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 146 anonymous users online.
Newest Members
nremmel, AlexTheGreat, ovdmtz, AlexPallaress, wschenk
17490 Registered Users

Generated in 0.13 seconds in which 0.098 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