Creating Shortcuts from the command prompt!

Discussion in 'Microsoft Windows 2000 CMD Promt' started by Tom Bombadill, Nov 14, 2003.

  1. Is there a way to create shortcuts and place them in a particular location
    from the command prompt? I'd want to put that in a batch file I'd like to
    create.

    Thanks,
     
    Tom Bombadill, Nov 14, 2003
    #1
    1. Advertisements

  2. Tom Bombadill wrote:
    > Is there a way to create shortcuts and place them in a particular
    > location from the command prompt? I'd want to put that in a batch
    > file I'd like to create.
    >
    > Thanks,


    Couple of ways I know of, this one has worked well for me -

    http://www.microsoft.com/technet/tr...echnet/scriptcenter/scrguide/sas_wsh_aytf.asp

    Dean

    --
    Dean Wells [MVP / Windows platform]
    MSEtechnology
    [[ Please respond to the Newsgroup only regarding posts ]]
    R e m o v e t h e m a s k t o s e n d e m a i l
     
    Dean Wells [MVP], Nov 14, 2003
    #2
    1. Advertisements

  3. "Tom Bombadill" wrote:

    >Is there a way to create shortcuts and place them in a particular location
    >from the command prompt? I'd want to put that in a batch file I'd like to
    >create.
    >
    >Thanks,
    >

    I once downloaded makescut.exe. Here is the helpscreen with a link:

    F:\WINNT>makescut /?

    MAKESCUT.EXE 1.02
    Copyright (C)1999-2000 Inteletek, Inc.
    www.scriptlogic.com

    MakeScut is a 32-bit command-line utility that creates shortcut files
    (.LNK or .PIF) for Windows 9x/NT applications.
    Usage: MAKESCUT /n "filespec"[.lnk/.prf] /t "filespec"
    [/a "args"] [/s "folder"]

    [/i "file" index] [/r min/max] [/o] [/k [CTRL+][ALT+][SHIFT+]key]

    /n Filespec of shortcut that will be created. MakeScut will
    automatically create the proper type of shortcut, .lnk
    or .pif, based on whether the target application is a
    Windows or MS-DOS application.
    example: c:\windows\desktop\myshortcut.
    /t Filespec of the target application.
    /a Command-line arguments to the target application.
    If there is more than one paramater be sure to enclose the
    list of paramaters in quotes.
    /i Filespec and index of the icon for the shortcut.
    /s Working Directory
    /r Run window
    /o Overwrite existing shortcut of the same name.
    /k Shortcut key. example: CTRL+ALT+U.


    hth
    --
    Greetings
    Matthias________________________________________
    For help on nt commands enter in a cmd window:
    W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
     
    Matthias Tacke, Nov 14, 2003
    #3
  4. "Matthias Tacke" wrote:

    >"Tom Bombadill" wrote:
    >
    >>Is there a way to create shortcuts and place them in a particular location
    >>from the command prompt? I'd want to put that in a batch file I'd like to
    >>create.
    >>
    >>Thanks,
    >>

    >I once downloaded makescut.exe. Here is the helpscreen with a link:
    >
    >F:\WINNT>makescut /?
    >
    >MAKESCUT.EXE 1.02
    >Copyright (C)1999-2000 Inteletek, Inc.
    >www.scriptlogic.com
    >

    Found a link on the site claiming it is free.

    http://www.scriptlogic.com/eng/products/scriptingtoolkit/


    >hth


    --
    Greetings
    Matthias________________________________________
    For help on nt commands enter in a cmd window:
    W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm
     
    Matthias Tacke, Nov 14, 2003
    #4
  5. Tom Bombadill

    Dave Patrick Guest

    Also check out Marty List's cool tool shortcut.exe
    http://www.optimumx.com/download/

    --
    Regards,

    Dave Patrick ....Please no email replies - reply in newsgroup.
    Microsoft MVP [Windows NT/2000 Operating Systems]

    "Tom Bombadill" wrote:
    > Is there a way to create shortcuts and place them in a particular location
    > from the command prompt? I'd want to put that in a batch file I'd like to
    > create.
    >
    > Thanks,
    >
    >
     
    Dave Patrick, Nov 14, 2003
    #5
  6. Tom Bombadill

    Mark V Guest

    In microsoft.public.win2000.cmdprompt.admin Dave Patrick wrote:

    > Also check out Marty List's cool tool shortcut.exe
    > http://www.optimumx.com/download/


    OP,
    Marty's util. endorsed here FWIW. Note that the syntax is different
    than the old MS utility of the same name.

    But do not neglect that you might just COPY a pre-existing .LNK file
    from source to destination.
     
    Mark V, Nov 14, 2003
    #6
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eric

    Permission Denied while running cscript command in command prompt

    Eric, Oct 3, 2003, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    0
    Views:
    785
  2. Tim

    command prompt - rename command

    Tim, Nov 5, 2003, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    8
    Views:
    454
  3. Clyde

    Creating a printer from the command prompt

    Clyde, Apr 27, 2004, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    0
    Views:
    209
    Clyde
    Apr 27, 2004
  4. Herb Martin

    Command prompt tool to minimize a command window AFTER it starts?

    Herb Martin, Jul 16, 2005, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    4
    Views:
    79,308
    dolapos
    Apr 9, 2009
  5. command line prompt showing how long last command took?

    , May 17, 2006, in forum: Microsoft Windows 2000 CMD Promt
    Replies:
    13
    Views:
    680
    Mark V
    May 31, 2006
Loading...

Share This Page