Computing.Net > Forums > Programming > creating a shortcut thru a bat file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

creating a shortcut thru a bat file

Reply to Message Icon

Name: chris5726
Date: March 29, 2007 at 20:57:52 Pacific
OS: win xp pro
CPU/Ram: intel 2.8ghz/ 4gb
Product: dell
Comment:

I have created a simple .bat to load a large number of apps and updates to them. how can i create a shortcut for one of the apps to be placed on all users desktop with a custom .icn picture. I found the "shortcut" cmd but it does not work in win xp pro. I think I have to create a file that ends in .lnk but how is this done.

thanks in advane for any help



Sponsored Link
Ads by Google

Response Number 1
Name: Balkrah (by Vaughan Newton)
Date: April 1, 2007 at 04:02:47 Pacific
Reply:

Do you just want to create a shortcut with a custom icon?


0

Response Number 2
Name: chris5726
Date: April 1, 2007 at 15:52:28 Pacific
Reply:

yes I want it to have a custom icon and also to be able to copy it using a .bat command.

thanks for the reply


0

Response Number 3
Name: Balkrah (by Vaughan Newton)
Date: April 1, 2007 at 22:53:22 Pacific
Reply:

That's a tricky one. I had a look in to it, you're right about shortcuts having to end in .lnk. I used type to view the contents of a shortcut file but its not in understandable english. I'll keep working on it though...


0

Response Number 4
Name: Balkrah (by Vaughan Newton)
Date: April 1, 2007 at 23:17:09 Pacific
Reply:

Well, you can set the icon manually by right-clicking on the shortcut and then go to it's properties. There's a 'Change Icon' button that sets the icon. Then you can copy it normally with the 'copy' command, just remember to include .lnk.

I don't know how to create a shortcut from scratch with a batch file.


0

Response Number 5
Name: Shr0Om
Date: April 2, 2007 at 06:35:52 Pacific
Reply:

I dont think there is any way to create a shortcut via batch directly. It might perhaps be possible by calling some regedit operations within a batch, but im not sure.

There are some tools availible that can be used with a batch tho..

Here is one:
http://www.xxcopy.com/xxcopy38.htm


0

Related Posts

See More



Response Number 6
Name: chris5726
Date: April 2, 2007 at 15:44:22 Pacific
Reply:

How about creating the shortcut and then copying it using a batch command?

thanks for all of the input.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: creating a shortcut thru a bat file

creating a file using a .bat file www.computing.net/answers/programming/creating-a-file-using-a-bat-file/11035.html

I need a .bat file! www.computing.net/answers/programming/i-need-a-bat-file/16333.html

Running a .bat file www.computing.net/answers/programming/running-a-bat-file/18164.html