Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Create shortcuts in the command line

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-04-2009
Member
 
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,

Reply With Quote
  #2  
Old 27-04-2009
Member
 
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.
Reply With Quote
  #3  
Old 27-04-2009
Member
 
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
Reply With Quote
  #4  
Old 27-04-2009
Member
 
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
Reply With Quote
  #5  
Old 27-04-2009
Member
 
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 05:43 AM.