Using DOS to create a shortcut to a file
Results 1 to 12 of 12

Thread: Using DOS to create a shortcut to a file

  1. #1
    Join Date
    Feb 2008
    Posts
    4

    Question Using DOS to create a shortcut to a file

    does anyone know how to create a shortcut to a file using DOS commands

    I have this ==> c:\folder1\file.txt
    I need this ==> c:\folder2\file.lnk

    This would really help me out a lot

    Thanks
    Steve T.

  2. #2
    Join Date
    Apr 2000
    Location
    Sheboygan, WI
    Posts
    53,391
    And are trying to get the .lnk to run? Or maybe you are using the wrong extension there. How about program you are runing?

  3. #3
    Join Date
    Apr 2000
    Location
    Sheboygan, WI
    Posts
    53,391

  4. #4
    Join Date
    Feb 2008
    Posts
    4
    Boy, that was a fast response - thank you.

    I think there is some mixup, the extension for a shortcut, LNK not INK

    Shorcuts don't run - my nose sometimes run - my INK runs when I use a fountain pen

  5. #5
    Join Date
    Apr 2000
    Location
    Sheboygan, WI
    Posts
    53,391

    Shortcut or "link" to the original file; similar to an alias on the Macintosh platform; may be created in Windows by right-clicking a file and selecting "Create Shortcut."

    If the LNK file is a shortcut to a program (.EXE file), it can contain attributes to define how the program runs; to set the attributes, right-click the shortcut file, select "Properties," and modify the Target Field. LNK file icons typically include a small curled arrow to indicate that the file points to another location.


    Just call the actual program.

  6. #6
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806

  7. #7
    Join Date
    Apr 2000
    Location
    Sheboygan, WI
    Posts
    53,391
    Doc to the rescue, Thanks.

  8. #8
    Join Date
    Feb 2008
    Posts
    4
    Looks like this is just what I'm looking for - thanks for your fast response - I'll give it a shot tomorrow and let you know - I'm very optimistic

    Thanks again
    Steve T

  9. #9
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    You're welcome.

    Note that I've never tried Microsoft's "shortcut.exe" on Windows XP or Vista. It does work in Windows 9x/Me.

  10. #10
    Join Date
    Feb 2008
    Posts
    4
    Update,
    I - STFW - found shortcut.exe, then I - RTFM - found how it works

    TA DA victory dance!

    Thanks to all

    FYI - shortcut.exe is documented to work under XP (which is what I have, and can testify that it does) but not documented to work under Vista.

    Steve T

  11. #11
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    Good to hear you got it working. Thanks for posting back.

  12. #12
    Join Date
    Mar 2007
    Posts
    1,900
    Welcome to the site Steve!

    Glad to have helped ya so quickly

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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