Results 1 to 5 of 5

Thread: Create shortcuts in the command line

  1. #1
    Join Date
    Apr 2009
    Posts
    69

    Create shortcuts in the command line

    Hello!

    I just spent an afternoon on my XP to try to create shortcuts (called "symbolic link" under UNIX) with the command line.
    No results
    My problem is: I really need to create shortcuts (from python, which is normally filled launch any command line tool) with a partial mirror script Debian deposit before work (at least ) under linux and windows!

    Can anyone help me?

    thank you for your answers,

  2. #2
    Join Date
    Feb 2009
    Posts
    71

    Re: Create shortcuts in the command line

    I think you should go through a VB script.But I even also heard that similar to the built-in START command, in addition to normal, minimized and maximized an applicatin you could also use an commands from Command line.

  3. #3
    Join Date
    Apr 2009
    Posts
    69

    Re: Create shortcuts in the command line

    Ok, thank you very much!

    The solution is not necessarily ideal, but I probably troubleshoot ... Again thank you

  4. #4
    Join Date
    Dec 2008
    Posts
    183

    Re: Create shortcuts in the command line

    With WSH (you should be able to call via Python I think):

    Code:
    WshShell = CreateObject ( "WScript.Shell") 
      strDesktop = WshShell.SpecialFolders ( "Desktop") 
      oMyShortcut = WshShell.CreateShortcut (strDesktop + "\ Sample.lnk") 
      oMyShortcut.WindowStyle = 3 & & 7 = Minimized Maximized 4 = Normal  
      oMyShortcut.IconLocation = "C: \ myicon.ico" 
      OMyShortcut.TargetPath = "% windir% \ notepad.exe" 
      oMyShortCut.Hotkey = "ALT + CTRL + F" 
      oMyShortCut.Save

  5. #5
    Join Date
    Apr 2009
    Posts
    69

    Re: Create shortcuts in the command line

    Ok, thank you all.

    I will (initially) to use the command line tool proposed by Paramartha, before getting into the WSH (or outright IShellLink via PyWin32 ...)

    Regards

Similar Threads

  1. How to create ZIP Files from Command-Line via VBScript?
    By FB in forum Windows Server Help
    Replies: 10
    Last Post: 21-12-2011, 11:18 PM
  2. List of Windows XP and Windows Vista Command line Shortcuts
    By Pyrotechnic in forum Tips & Tweaks
    Replies: 6
    Last Post: 15-10-2010, 08:18 AM
  3. How to create a .ISO File and burn a CD, via command-line
    By Dubeyji in forum Windows Software
    Replies: 6
    Last Post: 15-09-2010, 06:00 AM
  4. Create torrent-file via command line
    By GurdeepS in forum Technology & Internet
    Replies: 8
    Last Post: 23-06-2010, 06:52 AM
  5. Winrar: Create SFX via Command Line
    By magicT in forum Windows Software
    Replies: 3
    Last Post: 03-07-2009, 01:26 PM

Posting Permissions

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