dcsimg
Results 1 to 10 of 10

Thread: Create shortcut from shortcut

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2018
    Location
    Slovakia
    Posts
    39

    Create shortcut from shortcut

    I am currently looking if itīs possible to create shortcut from shortcut - specifically, I have file "example.doc" in C:\test; its shortcut is placed in C:\test\shr; finally Iīve created shortcut from example.lnk in C:\test\shr2.

    Now, Iīve looked at the target path. Target path of shortcut in the shr2 folder is "C:\test\example.doc" instead of "C:\test\shr\example.lnk"

    Itīs possible to have the target path of the second shortcut from "C:\test\shr2" as a "C:\test\shr\example.lnk"?

    Thanks.
    VB.NET Developer

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    22,041

    Re: Create shortcut from shortcut

    That doesn't make sense. A shortcut opens a target file or application. What is the point of having a shortcut target a shortcut that targets a file, when you should only use a shortcut to target a file or application?

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    22,041

    Re: Create shortcut from shortcut

    It'd make more sense if you wanted to create a shortcut to C:\test\shr, which would open that folder in explorer

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    101,625

    Re: Create shortcut from shortcut

    Why exactly would you want such a thing?

  5. #5

    Thread Starter
    Member
    Join Date
    Oct 2018
    Location
    Slovakia
    Posts
    39

    Re: Create shortcut from shortcut

    That doesn't make sense. A shortcut opens a target file or application. What is the point of having a shortcut target a shortcut that targets a file, when you should only use a shortcut to target a file or application?
    I need to hide the real file destination. Therefore I need shortcut from shortcut.
    For example - in auto startup there will be only "item.lnk" instead of "document.docx".
    Another example - when user wants to determine the real file destination, he ends up only with another .lnk file again.

  6. #6
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    101,625

    Re: Create shortcut from shortcut

    But what's the point of that? It's a moot point, because Windows won't allow you to create a shortcut to a shortcut, but I'm interested to know what the actual point is.

  7. #7

    Thread Starter
    Member
    Join Date
    Oct 2018
    Location
    Slovakia
    Posts
    39

    Re: Create shortcut from shortcut

    Specifically, I need to hide the real file destination. So when user wants to know the real file location (i.e. opens shortcut location), it redirects him to another shortcut which points to another and so on.
    The same with .lnk file signature - when user wants to view the real file destination by analyzing shortcut signature (i.e. content in hex viewer - shortcut path), he ends up only with another .lnk file.

  8. #8
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    101,625

    Re: Create shortcut from shortcut

    Quote Originally Posted by VB.NET Developer View Post
    Specifically, I need to hide the real file destination.
    Thank you for repeating what you had already posted. You already said that and I asked what the point of that was. Forget it. It doesn't matter anyway.

  9. #9

    Thread Starter
    Member
    Join Date
    Oct 2018
    Location
    Slovakia
    Posts
    39

    Re: Create shortcut from shortcut

    So itīs definitely impossible? Iīve heard about hardlinks, but I am not sure if this approach would be applicable according to my specifications. Any other ideas?

  10. #10
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    22,041

    Re: Create shortcut from shortcut

    You could write a small windowless app. launcher application with some stored file paths. You would then link to that, passing an identifying argument, and launch the hidden file or application within the launcher app.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width