|
1. It does need to be a Windows shortcut. The idea is simple: we're saving TIFF images to the IFS for a specific period of time, after which we're moving them to an archive directory. The directory to which we are sending them has a path structure such as //server/year/month/terminal/application/image.tiff. This specific format has meaning to us and we'll be able to find this image again years later. However, I want to include a shortcut to this image (in its archive location) in an alternate directory path structure such as //server/document_service_number/image.lnk. The document_service_number is a value that is known to my RPGLE program at runtime and this alternate directory path gives us an alternate method of looking up these archived images.
2. [...] If I create a hard link, and give the file the same name (different location) and extension, then the file is created and can be opened with a double click. The downside to a hard link is the file size -- it's the same as the original file to which it points.
If I create a symlink with the same file and extension, then the file is created and can be opened with a double click AND the file size is 1KB (regardless of the size of the original -- I've tested with an original that's 498KB). The downside to using the QSHELL 'ln' command is that from the Windows side, the
file is not a 'shortcut'. A minor issue, agreed, but not exactly what I was hoping for.
From what you've described so far, hard links actually seem perfect.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.