topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday March 18, 2024, 11:47 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: Windows software shortcut (LNK) creator  (Read 20604 times)

garbanzo

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 38
    • View Profile
    • Donate to Member
DONE: Windows software shortcut (LNK) creator
« on: April 19, 2012, 08:47 AM »
Greetings :)

I have a need to create several hundred shortcuts to the same app, each with a different name and different arguments. My current "copy, rename, right-click, edit, confirm, repeat" process is cumbersome. This little project would benefit greatly from an app that would let me paste text in to the relevant fields, hit Create to make a shortcut, then repeat.

Here is a very similar app to what I'm imagining, but it is designed to create admin shortcuts, which I don't need.
http://www.softpedia...reenshot-168241.html

Required fields are Name, Target, Start Dir, and the directory where the file will be created. It would be nice if arguments could be put in a separate text box, since these have to change with every shortcut I create. Optional features could include selecting an icon, adding a description, and whatever else LNK files support, but I don't need these for my purposes. Ideally, form data would not be cleared after creating a shortcut, but maybe this could be an option.

Thanks!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #1 on: April 19, 2012, 10:01 AM »
Do you have these different names and arguments in a text file?  If so, it would be easier to simply make a script that reads that in and creates all your shortcuts in one pass without a GUI.  Thoughts?

garbanzo

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 38
    • View Profile
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #2 on: April 19, 2012, 10:11 AM »
I considered that. I don't have them right now, but I could enter the data into Excel as I work, then just export to CSV. So yes, a script would work too!

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #3 on: April 19, 2012, 10:23 AM »
Here ya go!  :) Should be self explanatory, but if you have any questions let me know.

« Last Edit: April 19, 2012, 07:32 PM by c.gingerich »

garbanzo

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 38
    • View Profile
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #4 on: April 19, 2012, 10:30 AM »
Wow, great!

Working well for my purposes, thank you.

One little request: could you set it up so that hitting Return in any text box sends the command to create the link?
« Last Edit: April 19, 2012, 10:52 AM by garbanzo »

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #5 on: April 19, 2012, 01:43 PM »
Sure. I'll update in a few

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #6 on: April 19, 2012, 01:50 PM »
Ok. I updated Link Snack. Now pressing enter in any text box will create the link. Re-download from above.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,610
    • View Profile
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #7 on: April 19, 2012, 01:59 PM »
Chris,
What tool/language/environment do you use for tools like these? AHK? (missed that info from the posts you made the last couple of days :-[)

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #8 on: April 19, 2012, 02:17 PM »
It's called Visual Dialogscript. Unfortunately it is no longer in development.  :( >:(
I have been using it for over 15 years.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #9 on: April 19, 2012, 03:40 PM »
@c.gingerich: Very nice!  Thanks for jumping in.   :Thmbsup:

@garbanzo: Are you good with this or did you still require a commandline app that could read a CSV file and spit out your shortcuts?  If not, I'll mark this thread as done and move it to the finished section.
« Last Edit: April 19, 2012, 03:46 PM by skwire »

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #10 on: April 19, 2012, 03:45 PM »
@skwire: Thanks   :)

I can add command line support for a CSV file if needed as well.

garbanzo

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 38
    • View Profile
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #11 on: April 19, 2012, 05:54 PM »
c.gingerich, now that I'm home from work and able to test the tool more thoroughly, I realize there is a bug.

Text inputted into the Parameters field ought to be added to the end of the Target string. Instead, it is showing up as the "Start in" data.

If you could have a look, I would really appreciate it!
« Last Edit: April 19, 2012, 06:01 PM by garbanzo »

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #12 on: April 19, 2012, 07:33 PM »
Sorry about that, should be fixed now. :-[ Download again from above.

garbanzo

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 38
    • View Profile
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #13 on: April 19, 2012, 08:03 PM »
Working perfectly, thank you so much  :up:

Skwire, consider this thread closed.

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #14 on: September 12, 2012, 07:33 PM »
c.gingerich, is there any way you could modify this program to simply require the target path and link name and pull this info from a CSV file?

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #15 on: September 12, 2012, 07:40 PM »
@Josh I'll try to add support for CSV as soon as I can.

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Points: 45
  • Posts: 3,411
    • View Profile
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #16 on: September 12, 2012, 07:47 PM »
That would be awesome!

c.gingerich

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 748
    • View Profile
    • The Blind House
    • Donate to Member
Re: DONE: Windows software shortcut (LNK) creator
« Reply #17 on: September 13, 2012, 10:48 AM »
As per request I added CSV support to Link Snack. Create a CSV file in the following format:

Target file, Link Name, Start Dir, Location, Parameters, Icon

Start Dir, Parameters and Icon are optional

All file options require the fill path (i.e. Fill path to target, icon, location and Start Dir)
Start Link Snack and drag and drop the CSV file onto the dialog and it will be processed immediately. If there are any errors creating a link, a file called LinkErr.txt will be created in the same location as Link Snack.exe.

Download Link Snack 2.0

Enjoy!