Welcome Guest.   Make a donation to an author on the site April 21, 2014, 09:50:02 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: Windows software shortcut (LNK) creator  (Read 5109 times)
garbanzo
Supporting Member
**
Posts: 33


View Profile Give some DonationCredits to this forum member
« on: April 19, 2012, 08:47:29 AM »

Greetings smiley

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.com/...SU-Screenshot-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!
Logged
skwire
Moderator
*****
Posts: 3,905



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: April 19, 2012, 10:01:54 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?
Logged

garbanzo
Supporting Member
**
Posts: 33


View Profile Give some DonationCredits to this forum member
« Reply #2 on: April 19, 2012, 10:11:49 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!
Logged
c.gingerich
Supporting Member
**
Posts: 411



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: April 19, 2012, 10:23:28 AM »

Here ya go!  smiley Should be self explanatory, but if you have any questions let me know.

* Link Snack.exe (1324 KB - downloaded 308 times.)


* Screenshot - 4_19_2012 , 10_21_48 AM.png (21.58 KB, 442x304 - viewed 253 times.)
« Last Edit: April 19, 2012, 07:32:53 PM by c.gingerich » Logged

garbanzo
Supporting Member
**
Posts: 33


View Profile Give some DonationCredits to this forum member
« Reply #4 on: April 19, 2012, 10:30:29 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:23 AM by garbanzo » Logged
c.gingerich
Supporting Member
**
Posts: 411



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: April 19, 2012, 01:43:57 PM »

Sure. I'll update in a few
Logged

c.gingerich
Supporting Member
**
Posts: 411



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: April 19, 2012, 01:50:35 PM »

Ok. I updated Link Snack. Now pressing enter in any text box will create the link. Re-download from above.
Logged

Ath
Supporting Member
**
Posts: 2,132



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: April 19, 2012, 01:59:15 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 embarassed)
Logged

c.gingerich
Supporting Member
**
Posts: 411



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: April 19, 2012, 02:17:33 PM »

It's called Visual Dialogscript. Unfortunately it is no longer in development.  Sad Angry
I have been using it for over 15 years.
Logged

skwire
Moderator
*****
Posts: 3,905



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: April 19, 2012, 03:40:34 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:39 PM by skwire » Logged

c.gingerich
Supporting Member
**
Posts: 411



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #10 on: April 19, 2012, 03:45:40 PM »

@skwire: Thanks   smiley

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

garbanzo
Supporting Member
**
Posts: 33


View Profile Give some DonationCredits to this forum member
« Reply #11 on: April 19, 2012, 05:54:00 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:15 PM by garbanzo » Logged
c.gingerich
Supporting Member
**
Posts: 411



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #12 on: April 19, 2012, 07:33:44 PM »

Sorry about that, should be fixed now. embarassed Download again from above.
Logged

garbanzo
Supporting Member
**
Posts: 33


View Profile Give some DonationCredits to this forum member
« Reply #13 on: April 19, 2012, 08:03:10 PM »

Working perfectly, thank you so much  thumbs up

Skwire, consider this thread closed.
Logged
Josh
Charter Honorary Member
***
Posts: 3,298



View Profile Give some DonationCredits to this forum member
« Reply #14 on: September 12, 2012, 07:33:50 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?
Logged

Strength in Knowledge
c.gingerich
Supporting Member
**
Posts: 411



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #15 on: September 12, 2012, 07:40:05 PM »

@Josh I'll try to add support for CSV as soon as I can.
Logged

Josh
Charter Honorary Member
***
Posts: 3,298



View Profile Give some DonationCredits to this forum member
« Reply #16 on: September 12, 2012, 07:47:21 PM »

That would be awesome!
Logged

Strength in Knowledge
c.gingerich
Supporting Member
**
Posts: 411



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #17 on: September 13, 2012, 10:48:53 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!
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.039s | Server load: 0.04 ]