Creating Windows Shortcuts in Linux

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
7
down vote

favorite












Is it possible to create a Windows shortcut file (.lnk) in Bash?



No, I'm not talking about symlinks...



I need to place some Windows shortcuts in my Samba share.










share|improve this question

















  • 1




    I found a couple of interesting links: msdn.microsoft.com/en-us/library/windows/desktop/… and ithreats.files.wordpress.com/2009/05/… . Good luck.
    – glenn jackman
    Oct 1 '15 at 14:23










  • IIRC Cygwin includes a utility that creates Windows shortcuts without using using Windows libraries, so it should work on Linux. I don't remember what the utility is called.
    – Gilles
    Oct 1 '15 at 23:35














up vote
7
down vote

favorite












Is it possible to create a Windows shortcut file (.lnk) in Bash?



No, I'm not talking about symlinks...



I need to place some Windows shortcuts in my Samba share.










share|improve this question

















  • 1




    I found a couple of interesting links: msdn.microsoft.com/en-us/library/windows/desktop/… and ithreats.files.wordpress.com/2009/05/… . Good luck.
    – glenn jackman
    Oct 1 '15 at 14:23










  • IIRC Cygwin includes a utility that creates Windows shortcuts without using using Windows libraries, so it should work on Linux. I don't remember what the utility is called.
    – Gilles
    Oct 1 '15 at 23:35












up vote
7
down vote

favorite









up vote
7
down vote

favorite











Is it possible to create a Windows shortcut file (.lnk) in Bash?



No, I'm not talking about symlinks...



I need to place some Windows shortcuts in my Samba share.










share|improve this question













Is it possible to create a Windows shortcut file (.lnk) in Bash?



No, I'm not talking about symlinks...



I need to place some Windows shortcuts in my Samba share.







bash windows samba






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 1 '15 at 13:58









Lugaxx

3551412




3551412







  • 1




    I found a couple of interesting links: msdn.microsoft.com/en-us/library/windows/desktop/… and ithreats.files.wordpress.com/2009/05/… . Good luck.
    – glenn jackman
    Oct 1 '15 at 14:23










  • IIRC Cygwin includes a utility that creates Windows shortcuts without using using Windows libraries, so it should work on Linux. I don't remember what the utility is called.
    – Gilles
    Oct 1 '15 at 23:35












  • 1




    I found a couple of interesting links: msdn.microsoft.com/en-us/library/windows/desktop/… and ithreats.files.wordpress.com/2009/05/… . Good luck.
    – glenn jackman
    Oct 1 '15 at 14:23










  • IIRC Cygwin includes a utility that creates Windows shortcuts without using using Windows libraries, so it should work on Linux. I don't remember what the utility is called.
    – Gilles
    Oct 1 '15 at 23:35







1




1




I found a couple of interesting links: msdn.microsoft.com/en-us/library/windows/desktop/… and ithreats.files.wordpress.com/2009/05/… . Good luck.
– glenn jackman
Oct 1 '15 at 14:23




I found a couple of interesting links: msdn.microsoft.com/en-us/library/windows/desktop/… and ithreats.files.wordpress.com/2009/05/… . Good luck.
– glenn jackman
Oct 1 '15 at 14:23












IIRC Cygwin includes a utility that creates Windows shortcuts without using using Windows libraries, so it should work on Linux. I don't remember what the utility is called.
– Gilles
Oct 1 '15 at 23:35




IIRC Cygwin includes a utility that creates Windows shortcuts without using using Windows libraries, so it should work on Linux. I don't remember what the utility is called.
– Gilles
Oct 1 '15 at 23:35










2 Answers
2






active

oldest

votes

















up vote
9
down vote



accepted










Below is a link to a Linux tool which allows you to create Windows shortcuts. The source code is available in both Bash and C:



http://www.mamachine.org/mslink/index.en.html






share|improve this answer




















  • Confirmed that mslink can create a shortcut to a UNC path and directory; which is more than I can say for all the Python stuff I was looking at.
    – Cameron Kerr
    Aug 17 at 15:06

















up vote
-4
down vote













Creating Windows Shortcuts in Linux is not the easy task but now you can fix connections to bluetooth audio devices and wireless displays in windows 10 issue easily by follow us and the get the information to read and then apply it.






share|improve this answer








New contributor




Khushbu Kashyap is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f233286%2fcreating-windows-shortcuts-in-linux%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    9
    down vote



    accepted










    Below is a link to a Linux tool which allows you to create Windows shortcuts. The source code is available in both Bash and C:



    http://www.mamachine.org/mslink/index.en.html






    share|improve this answer




















    • Confirmed that mslink can create a shortcut to a UNC path and directory; which is more than I can say for all the Python stuff I was looking at.
      – Cameron Kerr
      Aug 17 at 15:06














    up vote
    9
    down vote



    accepted










    Below is a link to a Linux tool which allows you to create Windows shortcuts. The source code is available in both Bash and C:



    http://www.mamachine.org/mslink/index.en.html






    share|improve this answer




















    • Confirmed that mslink can create a shortcut to a UNC path and directory; which is more than I can say for all the Python stuff I was looking at.
      – Cameron Kerr
      Aug 17 at 15:06












    up vote
    9
    down vote



    accepted







    up vote
    9
    down vote



    accepted






    Below is a link to a Linux tool which allows you to create Windows shortcuts. The source code is available in both Bash and C:



    http://www.mamachine.org/mslink/index.en.html






    share|improve this answer












    Below is a link to a Linux tool which allows you to create Windows shortcuts. The source code is available in both Bash and C:



    http://www.mamachine.org/mslink/index.en.html







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Oct 9 '15 at 9:09









    Lugaxx

    3551412




    3551412











    • Confirmed that mslink can create a shortcut to a UNC path and directory; which is more than I can say for all the Python stuff I was looking at.
      – Cameron Kerr
      Aug 17 at 15:06
















    • Confirmed that mslink can create a shortcut to a UNC path and directory; which is more than I can say for all the Python stuff I was looking at.
      – Cameron Kerr
      Aug 17 at 15:06















    Confirmed that mslink can create a shortcut to a UNC path and directory; which is more than I can say for all the Python stuff I was looking at.
    – Cameron Kerr
    Aug 17 at 15:06




    Confirmed that mslink can create a shortcut to a UNC path and directory; which is more than I can say for all the Python stuff I was looking at.
    – Cameron Kerr
    Aug 17 at 15:06












    up vote
    -4
    down vote













    Creating Windows Shortcuts in Linux is not the easy task but now you can fix connections to bluetooth audio devices and wireless displays in windows 10 issue easily by follow us and the get the information to read and then apply it.






    share|improve this answer








    New contributor




    Khushbu Kashyap is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      -4
      down vote













      Creating Windows Shortcuts in Linux is not the easy task but now you can fix connections to bluetooth audio devices and wireless displays in windows 10 issue easily by follow us and the get the information to read and then apply it.






      share|improve this answer








      New contributor




      Khushbu Kashyap is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



















        up vote
        -4
        down vote










        up vote
        -4
        down vote









        Creating Windows Shortcuts in Linux is not the easy task but now you can fix connections to bluetooth audio devices and wireless displays in windows 10 issue easily by follow us and the get the information to read and then apply it.






        share|improve this answer








        New contributor




        Khushbu Kashyap is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        Creating Windows Shortcuts in Linux is not the easy task but now you can fix connections to bluetooth audio devices and wireless displays in windows 10 issue easily by follow us and the get the information to read and then apply it.







        share|improve this answer








        New contributor




        Khushbu Kashyap is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Khushbu Kashyap is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 11 mins ago









        Khushbu Kashyap

        1




        1




        New contributor




        Khushbu Kashyap is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Khushbu Kashyap is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Khushbu Kashyap is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f233286%2fcreating-windows-shortcuts-in-linux%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay