Page 1 of 2 12>
Topic Options
#122994 - 2004-07-15 12:13 PM My shortcuts are too 'intelligent'
Jochen Administrator Offline
KiX Supporter
*****

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

I know there was a solution to this but can't find it here ...

I am trying to create a shortcut for a script to be written.
the shortcut is residing in the root folder of the script. It should start

'%0\..\bin\wkix32.exe %0\..\scripts\myscript.kx'

Clever as the system is, it translates %0\..\ to the full path in my environment as soon as I finish the creation manually
So the script is no longer portable.

I know there was a program to make shortcuts dumb as a brick, but can't remember what this was.

Any help ?

Thanx
_________________________



Top
#122995 - 2004-07-15 12:46 PM Re: My shortcuts are too 'intelligent'
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
dunno about yours but simple, create shortcut, path %windir%\notepad.exe
it didn't translate it to anything.
_________________________
!

download KiXnet

Top
#122996 - 2004-07-15 12:48 PM Re: My shortcuts are too 'intelligent'
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and if you are wanting to have %0 sounds like you don't really want the path there.
so, get rid of that.
_________________________
!

download KiXnet

Top
#122997 - 2004-07-15 12:57 PM Re: My shortcuts are too 'intelligent'
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Not sure Jochen but perhaps give one of these articles a try.

HOW TO: Disable the NTFS File System Tracking of Broken Shortcut Links
http://support.microsoft.com/?ID=299780

Shortcuts Created Under Windows NT 4.0 Resolve to UNC Paths
http://support.microsoft.com/?ID=158682

Disabling Automatic Network Shortcut Resolution
http://support.microsoft.com/?id=150215

Do your shortcuts attempt to resolve to another computer?
http://www.jsiinc.com/suba/tip0100/rh0177.htm

Top
#122998 - 2004-07-15 01:44 PM Re: My shortcuts are too 'intelligent'
Jochen Administrator Offline
KiX Supporter
*****

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

basically it seems that it doesn't allow %0\..\ things if shortcut is created by hand ...

What I really want to do is to start the friggin script without any cmd file nor the resulting dos box PLUS it should start from that shortcut no matter where the folder with the script is located.
So if I create a shortcut it always translates the target to my file structure read (d:\scripts\bla\bla\wkix32.exe). Thus the shortcut will get useless when I move the folder to another computer

_________________________



Top
#122999 - 2004-07-15 03:16 PM Re: My shortcuts are too 'intelligent'
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
not tested but how does it worky with:
program: wkix32 script.kix
start in: blank
_________________________
!

download KiXnet

Top
#123000 - 2004-07-15 03:19 PM Re: My shortcuts are too 'intelligent'
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
cappy, your thinking about making the shortcut "stupid" and one does that with the old SHORTCUT.EXE reskit tool, and the /S switch. But that switch made it stupid from a "which hostname to run from" standpoint - what your doing is different. I would like to know the answer to your question too.
Top
#123001 - 2004-07-15 04:07 PM Re: My shortcuts are too 'intelligent'
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
re Lonk: That would probably search wkix32 in the known paths

re Shawn : yeah, that was exactly what came to my mind but I didn't remember that it only stupidizes on a host point of view ...

Hmmm ... if one knows the answer please lemme know
_________________________



Top
#123002 - 2004-07-15 04:18 PM Re: My shortcuts are too 'intelligent'
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, then you can do what I do.
rename wkix32.exe to yourproggy.exe and your script to kixtart.kix
_________________________
!

download KiXnet

Top
#123003 - 2004-07-15 04:48 PM Re: My shortcuts are too 'intelligent'
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
still it would be not portable then, because of the unknown folder structure
_________________________



Top
#123004 - 2004-07-15 04:57 PM Re: My shortcuts are too 'intelligent'
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh?
what you would mean by that?
do you say that the shortcut is only a start, neither your script is portable?
_________________________
!

download KiXnet

Top
#123005 - 2004-07-15 05:20 PM Re: My shortcuts are too 'intelligent'
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Maybe create the shortcut programatically to avoid the "helpfulness" of the GUI, and avoid specifying the path altogether?
Top
#123006 - 2004-07-15 05:51 PM Re: My shortcuts are too 'intelligent'
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Maybe being more precise will help:

The folder the shortcut resides is 'Grp_Import_Export'.
The 'path' to wkix32 would be '%0\..\bin\wkix32' and the 'path' to the script would be '%0\..\scripts\nameofscript.kx' assuming the thing to start in '%0\..\'

tried with makescut, but failed

Thanx for all replies by now


[edit: uhh... I was precise in my first post, sorry]


Edited by Jochen (2004-07-15 05:52 PM)
_________________________



Top
#123007 - 2004-07-16 09:51 AM Re: My shortcuts are too 'intelligent'
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Have you tried without the "%0"?

IIRC this is a kludge for scripts in the netlogon share which you have to use because is is not your "current working directory".

Simple relative paths "..\foo\bar.exe" should be sufficient in most cases.

Top
#123008 - 2004-07-16 11:16 AM Re: My shortcuts are too 'intelligent'
Jochen Administrator Offline
KiX Supporter
*****

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

but this results also in invalid path messages
_________________________



Top
#123009 - 2004-07-16 11:39 AM Re: My shortcuts are too 'intelligent'
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Hmm...

I've just re-read your first post.

If the shortcut is in the root of this directory so that the structure is:
Code:

-ROOT [contains myshortcut.lnk]
|
|--BIN [contains Kix32.exe]
|
|--SCRIPTS [contains myscript.exe]



The the shortcut should be either:
Code:
BIN\kix32.exe SCRIPTS\myscript.kix



Or, if you must force a relative path:
Code:
.\BIN\kix32.exe .\SCRIPTS\myscript.kix



You shouldn't be referring to a parent directory at any point.

Top
#123010 - 2004-07-16 11:41 AM Re: My shortcuts are too 'intelligent'
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
richard, have you tested that those worky?
tried it both ways yesterday with no luck.
_________________________
!

download KiXnet

Top
#123011 - 2004-07-16 11:52 AM Re: My shortcuts are too 'intelligent'
Jochen Administrator Offline
KiX Supporter
*****

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

Code:

-ROOT [contains myshortcut.lnk]
|
|--BIN [contains Kix32.exe]
|
|--SCRIPTS [contains myscript.exe]






that is exactly the given situation ... sad thing that none of your suggestions worked
_________________________



Top
#123012 - 2004-07-16 03:04 PM Re: My shortcuts are too 'intelligent'
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
cappy, try changing the shortcut property "start in:" to point to a relative path (hopefully that includes an env var) that contains your kixscript. Have you tried that yet ?

-Shawn

Top
#123013 - 2004-07-16 03:10 PM Re: My shortcuts are too 'intelligent'
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Hmmm..

Tried this by..

(1) Clearing out the "Start in" line
(2) Input the following -
\bin\wkix32.exe \myscripts\myscript.kix

Tell everything ok and look at the shortcut, and it shows:
C:\bin\wkix32.exe \myscripts\myscript.kix

HTH,

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

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 1014 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.131 seconds in which 0.076 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