Page 1 of 1 1
Topic Options
#40972 - 2003-06-03 03:36 PM Shortcuts
hanke Offline
Fresh Scripter

Registered: 2002-10-22
Posts: 35
I am trying to create shortcuts to mapped drives for users on their desktop. .bat file code:

@echo off
shortcuts.vbs
cls
%0\..\Kix32.exe %0\..\was1.kix

Works in 2000 great but 98 doesn't grab the command. From the 98 if you click on shortcuts.vbs everything works.

Top
#40973 - 2003-06-03 03:41 PM Re: Shortcuts
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
why don't you code everything in pure KiXtart?

Anyway, try to provide the full path to WSH with the VBS script as parameter or try %0\..\shortcutrs.vbs or the full path to shortcuts.vbs.
_________________________
There are two types of vessels, submarines and targets.

Top
#40974 - 2003-06-03 04:18 PM Re: Shortcuts
hanke Offline
Fresh Scripter

Registered: 2002-10-22
Posts: 35
I am unsure of how to add that to my kixtart scripts but I would like to add that in so I would only have one script.
Top
#40975 - 2003-06-03 04:23 PM Re: Shortcuts
hanke Offline
Fresh Scripter

Registered: 2002-10-22
Posts: 35
When I add %0\..\shortcuts.vbs or the full path the script will not run in 98, 2000 works fine.
Top
#40976 - 2003-06-03 04:28 PM Re: Shortcuts
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
What is the contents (the code) of Shortcuts.VBS?

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

Top
#40977 - 2003-06-03 09:47 PM Re: Shortcuts
hanke Offline
Fresh Scripter

Registered: 2002-10-22
Posts: 35
Dim objShell, strDesktop, objShortCut

Set objShell = CreateObject("WScript.Shell")
strDesktop = objShell.SpecialFolders("Desktop")
Set objShortCut = objShell.CreateShortCut(strDesktop & "\Home.lnk")
objShortCut.TargetPath = "u:\"
objShortCut.Save

Set objShortCut = objShell.CreateShortCut(strDesktop & "\Shared.lnk")
objShortCut.TargetPath = "v:\"
objShortCut.Save

Top
#40978 - 2003-06-03 09:58 PM Re: Shortcuts
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Search the UDF Forum for 'shortcut' in the subject line and take a look at the FAQ Forum under Copy a shortcut to the Desktop, Start Menu, etc.
_________________________
There are two types of vessels, submarines and targets.

Top
#40979 - 2003-06-03 10:07 PM Re: Shortcuts
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I save you the time.
check out for similar "wscript" UDF at:
http://kixhelp.com/udfs/
or
http://www.gwspikval.com/jooel/UDF/

those are both just "mirrors" of our current udf-forum.
they miss all the post but have only the udf's inside them.
kixhelp.com does not update everyday but otherwise they are same.
they also have a search-engine which eases to work to scroll the total of 360 UDFs!

simply for shortcut you get at least the wsh-shortcut udf:
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000399
and it's version 1.0:
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000034

and kixtart version (not as clean as kixtart naturally does not support this):
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000160

there are others too which has their own benefits and dis-benefits...
_________________________
!

download KiXnet

Top
#40980 - 2003-06-03 11:26 PM Re: Shortcuts
hanke Offline
Fresh Scripter

Registered: 2002-10-22
Posts: 35
It works in 2000 but I can't get windows 98 to work, I have installed WSH 5.6 and that is not it. Does this work in Windows 98.
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 696 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.062 seconds in which 0.045 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