MSFN Forum: Shortcutter - To create simple shortcuts using command line! - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Shortcutter - To create simple shortcuts using command line! Rate Topic: ***** 1 Votes

#1 User is offline   Dirceu 

  • Group: Members
  • Posts: 2
  • Joined: 05-August 05

  Posted 18 November 2005 - 01:45 AM

Hello ppl!
This is my first utility with AutoIT.

Shortcutter 0.1 - Attached File  shortcutter_0.1.zip (115.01K)
Number of downloads: 83

May be useful for someone.
It creates a simple shortcut by given "target" and "link" paths, on command line.
If folder for link path doesn't exit, it will be created. That's a difference between this tool and MS "shortcut.exe" from Resource Server Kit, or from Optimum X.

Just read "shortcutter.txt".

Program Name: Shortcutter
Program Version: 0.1
Details: Creates a simple shortcut by the use of command line. If the path for the Link (.LNK) isn't valid / folders doesn't exist, they will be created! This utility was created mainly to use with silent installations (SFX) or similar stuff.
Language: AutoIT 3
Author: Dirceu de Oliveira Filho <d i r c e u AT g m a i l . c o m > A.K.A "Komakino" or "Komakin0" or "Repoman"
Website: http://repoman.free.fr | http://minor.free.fr


Usage: shortcutter.exe "<TARGET_PATH>" "<LINK_PATH>"

(World will be a better place if you put those quotes!)

<TARGET_PATH> - The file that the shortcut will refer (.EXE .DOC, etc)
<LINK_PATH> - The link file, with full path. (MUST END WITH .LNK)

Ex.
shortcutter.exe "%ProgramFiles%\My Program\My Program.exe" "%ALLUSERSPROFILE%\Start Menu\Programs\My Program\My Program.lnk"


FAQ

Q: Can i use enviroment variables?
A: Yes!

Q: Case sensitive?
A: Nope!

Q: Nothing happened! What's wrong?
A: Just make sure you typed the command line correctly AND have the right usage order! If the command line isn't correct, it won't work at all and won't even return an error message!

Q: Can i use it to create a shortcut from/for a network path address ?
A: Nope! And i don't know if it will able to do this some day. (At least i don't know yet!)

Q: Are you planning to add something in the future?
A: Maybe.

Q: Can i change the code, etc?
A: Go ahead! But don't forget to contact and give me some credits. I'll be pleased. :)


TIP

You can use it with batch!
Oh, and throw "shortcutter.exe" at "%windir%\system32" folder if you want ("\$OEM$\$$\system32" for unattended installations!).




That's it.
:hello:

This post has been edited by Dirceu: 18 November 2005 - 01:50 AM



#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 18 November 2005 - 04:35 AM

I've taken a guess at your source code as I have not downloaded it. Am I close?
If $cmdline[0] = 2 Then FileCreateShortcut($cmdline[1], $cmdline[2])

I would believe that workingdir and arguments could be a very useful addition.

This post has been edited by MHz: 18 November 2005 - 04:35 AM


#3 User is offline   Dirceu 

  • Group: Members
  • Posts: 2
  • Joined: 05-August 05

Posted 18 November 2005 - 09:32 AM

Yep, $cmdline is there for sure.
Well, i'll give a shot for these other 2.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy