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
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.
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..
Summary: hi, im new to .bat file but have already learned quite a bit about them but have hit a snag. i need to know if a .bat file can create a file e.g. "New Text Document.txt" and if so how thanx in advance...
Summary: i have written a .bat file which creates another batch file in various drives. how can i run a batch file using a batch file in different drives ...