Tom,

For the “relative” idea, maybe fill in the “Start In” value in the *.lnk file 
with the “current” (pwd) directory name?  Not sure if that would make any 
difference, but it may be worth a try.

Peter

From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Tom 
Brennan
Sent: Wednesday, October 18, 2023 2:02 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: z/OS 3.1 documentation


On 10/18/2023 9:53 AM, Seymour J Metz wrote:

>  Can windows shortcuts use relative paths?



Maybe, but it doesn't work for me on Win 10:



Currently my VBS script creates links like this depending on what

directory you are in when you run the script (pwd):

https://urldefense.com/v3/__https://www.mildredbrennan.com/mvs/shortcut1.png__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!Mx2ZOw4YcO5e5Oui2qKON9odIKi7CrGO3U5XjT5vAtWGTX5BMy8eh6w7AMn1-AZyjYi9eYu6ptsP-4Uy2z2FVjMsJA$<https://urldefense.com/v3/__https:/www.mildredbrennan.com/mvs/shortcut1.png__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!Mx2ZOw4YcO5e5Oui2qKON9odIKi7CrGO3U5XjT5vAtWGTX5BMy8eh6w7AMn1-AZyjYi9eYu6ptsP-4Uy2z2FVjMsJA$>



If I try to change that to relative, like this:

https://urldefense.com/v3/__https://www.mildredbrennan.com/mvs/shortcut2.png__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!Mx2ZOw4YcO5e5Oui2qKON9odIKi7CrGO3U5XjT5vAtWGTX5BMy8eh6w7AMn1-AZyjYi9eYu6ptsP-4Uy2z17mxVQ5A$<https://urldefense.com/v3/__https:/www.mildredbrennan.com/mvs/shortcut2.png__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!Mx2ZOw4YcO5e5Oui2qKON9odIKi7CrGO3U5XjT5vAtWGTX5BMy8eh6w7AMn1-AZyjYi9eYu6ptsP-4Uy2z17mxVQ5A$>



... I get an error, as if relative is not allowed:

https://urldefense.com/v3/__https://www.mildredbrennan.com/mvs/shortcut3.png__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!Mx2ZOw4YcO5e5Oui2qKON9odIKi7CrGO3U5XjT5vAtWGTX5BMy8eh6w7AMn1-AZyjYi9eYu6ptsP-4Uy2z0Wl5_19Q$<https://urldefense.com/v3/__https:/www.mildredbrennan.com/mvs/shortcut3.png__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!Mx2ZOw4YcO5e5Oui2qKON9odIKi7CrGO3U5XjT5vAtWGTX5BMy8eh6w7AMn1-AZyjYi9eYu6ptsP-4Uy2z0Wl5_19Q$>



I could call a DOS window and have it open the relative file, but then I

see a DOS window for a split second which bugs me, and the shortcut also

appears as a DOS window icon.  So I'm sticking with what I have.

https://urldefense.com/v3/__https://www.mildredbrennan.com/mvs/shortcut4.png__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!Mx2ZOw4YcO5e5Oui2qKON9odIKi7CrGO3U5XjT5vAtWGTX5BMy8eh6w7AMn1-AZyjYi9eYu6ptsP-4Uy2z1xI5UUyg$<https://urldefense.com/v3/__https:/www.mildredbrennan.com/mvs/shortcut4.png__;!!Ebr-cpPeAnfNniQ8HSAI-g_K5b7VKg!Mx2ZOw4YcO5e5Oui2qKON9odIKi7CrGO3U5XjT5vAtWGTX5BMy8eh6w7AMn1-AZyjYi9eYu6ptsP-4Uy2z1xI5UUyg$>



--



This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to