PDA

View Full Version : Creating a shortcut with BATCH programing


JD
December 6th 03, 01:47 PM
Is it possible to creat a shortcut to a file on a users
desktop and/or start-menu with a batch file(.bat)?
If so, what command lines should I put.
Thanks...

Chris Lanier
December 6th 03, 01:47 PM
sure, you would do it the same way you make any other shortcut. right click
on the batch file and choose send to>>desktop (create shortcut). then just
place the shortcut where ever you wish.

"JD" > wrote in message
...
> Is it possible to creat a shortcut to a file on a users
> desktop and/or start-menu with a batch file(.bat)?
> If so, what command lines should I put.
> Thanks...

JD
December 6th 03, 01:47 PM
I already knew that, sorry for not being clear.
But, I meant to have the ".bat" file automaticly creat a
shortcut to a different file on the desktop using Batch
programing.
Basicly when the ".bat" is open it will creat a shortcut
to a file/folder on the desktop.
So, I want to know what command lines should I add to
the ".bat" file in order to acomplish this task.
Thanks anyway,

>-----Original Message-----
>sure, you would do it the same way you make any other
shortcut. right click
>on the batch file and choose send to>>desktop (create
shortcut). then just
>place the shortcut where ever you wish.
>
>"JD" > wrote in message
...
>> Is it possible to creat a shortcut to a file on a users
>> desktop and/or start-menu with a batch file(.bat)?
>> If so, what command lines should I put.
>> Thanks...
>
>
>.
>

David Candy
December 6th 03, 01:48 PM
You use shortcut.exe, last distributed in NT4 or Win95 resource kits. =
I've spent an hour going around in circles on MS site trying to find =
where they hid them. Send me a mail and I'll send you the NT4 version.=20

PS I believe it is on 95 CDs as well, but not floppy version, and is not =
available in the download for floppy customers to get the extra CD =
files.

"JD" > wrote in message =
...
> I already knew that, sorry for not being clear.
> But, I meant to have the ".bat" file automaticly creat a=20
> shortcut to a different file on the desktop using Batch=20
> programing.
> Basicly when the ".bat" is open it will creat a shortcut=20
> to a file/folder on the desktop.
> So, I want to know what command lines should I add to=20
> the ".bat" file in order to acomplish this task.
> Thanks anyway,
>=20
> >-----Original Message-----
> >sure, you would do it the same way you make any other=20
> shortcut. right click
> >on the batch file and choose send to>>desktop (create=20
> shortcut). then just
> >place the shortcut where ever you wish.
> >
> >"JD" > wrote in message
> ...
> >> Is it possible to creat a shortcut to a file on a users
> >> desktop and/or start-menu with a batch file(.bat)?
> >> If so, what command lines should I put.
> >> Thanks...
> >
> >
> >.
> >

Mike Kolitz
December 6th 03, 01:48 PM
Hi JD,

I'm not aware of any command that creates a shortcut. You may want to
investigate using VBScript (or JScript) instead of batch files to do what
you want. They both have the ability to create a shortcut.

This page contains an example of how to create a shortcut with VBScript.

http://visualbasic.about.com/library/blvbscriptintro.htm

--
Mike Kolitz MCSE 2000
MS-MVP - Windows Setup and Deployment

PATCH YOUR WINDOWS NT/2000/XP/2003 COMPUTERS!
http://www.microsoft.com/technet/security/bulletin/MS03-026.asp

"JD" > wrote in message
...
> Is it possible to creat a shortcut to a file on a users
> desktop and/or start-menu with a batch file(.bat)?
> If so, what command lines should I put.
> Thanks...

Google