PC Review


Reply
Thread Tools Rate Thread

Command-line utility to create shortcuts ?

 
 
Antoine
Guest
Posts: n/a
 
      18th Apr 2005
Hello,

A few monthes ago, I came across a tool capable of "batch" creating
shortcuts in any directory (not only on the desktop) but I
definitely cannot remember what its name was. Any advice would be
greatly appreaciated.

Thanks,
Antoine
 
Reply With Quote
 
 
 
 
rm
Guest
Posts: n/a
 
      18th Apr 2005
Le 18 Apr 2005 13:58:59 GMT, Antoine a écrit :

> Hello,


Hi,

>
> A few monthes ago, I came across a tool capable of "batch" creating
> shortcuts in any directory (not only on the desktop) but I
> definitely cannot remember what its name was. Any advice would be
> greatly appreaciated.


you can compile a small AutoIt3 script containing just 2 lines :

;----------------------CreateShortCut.au3--------------------------
FileCreateShortcut ( $CmdLine[1], $CmdLine[2] )
Exit
;----------------------CreateShortCut.au3--------------------------

into CreateShortCut.exe and then

use this prog with 2 command-line arguments:
like:

CreateShortCut.exe target-file link-file


ex:
CreateShortCut.exe C:\WINNT\SYSTEM32\calc.exe "C:\Documents and
Settings\_you_\Bureau\Shortcut to MS-Calculator.lnk"

>
> Thanks,


http://www.autoitscript.com/autoit3/downloads.php

> Antoine


@+
--
rm
http://foxmail.free.fr
 
Reply With Quote
 
Antoine
Guest
Posts: n/a
 
      18th Apr 2005
rm <(E-Mail Removed)> wrote :

> you can compile a small AutoIt3 script containing just 2 lines :
> [...]


Terrific ! Thanks a lot Ramon.

--
Antoine
 
Reply With Quote
 
rm
Guest
Posts: n/a
 
      18th Apr 2005
Le 18 Apr 2005 15:21:41 GMT, Antoine a écrit :

> Terrific !


tu veux parler de mon anglais ;-)

@+
--
rm
 
Reply With Quote
 
Toad
Guest
Posts: n/a
 
      19th Apr 2005
Antoine wrote:

> Hello,
>
> A few monthes ago, I came across a tool capable of "batch" creating
> shortcuts in any directory (not only on the desktop) but I
> definitely cannot remember what its name was. Any advice would be
> greatly appreaciated.
>
> Thanks,
> Antoine


There is something called WSH (Windows Scripting Host) that will allow
to do reasonably powerful scripting in Windows using Java script of VB
script or Perl script, etc. One of the things you can script is create
shortcuts like:

(Java Script)
Shell = new ActiveXObject("WScript.Shell");
DesktopPath = Shell.SpecialFolders("Desktop");
link = Shell.CreateShortcut(DesktopPath + "\\test.lnk");
link.Arguments = "1 2 3";
link.Description = "test shortcut";
link.HotKey = "CTRL+ALT+SHIFT+X";
link.IconLocation = "foo.exe,1";
link.TargetPath = "c:\\blah\\foo.exe";
link.WindowStyle = 3;
link.WorkingDirectory = "c:\\blah";
link.Save();

You don't have to use Desktop if you don't want. If you don't know WSH
then learn it as you will have no use for BAT/CMD files too much any
more.

Toad
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create zip file from command line in winxp without using any3rd party utility hitesh Windows XP General 6 22nd May 2008 04:59 PM
Command line utility to list processes with the "command line that was used to start the process" flahmeshess Microsoft Windows 2000 5 12th Oct 2006 02:46 AM
How do you use command line in shortcuts now ? =?Utf-8?B?c3RldmUgaC4=?= Windows Vista General Discussion 8 29th Jun 2006 06:25 PM
Create Shortcuts From Command-Line Joe Caverly Freeware 2 20th Apr 2005 04:12 AM
Command-line utility to create shortcuts ? Antoine Freeware 2 18th Apr 2005 05:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:55 PM.