Originally posted by: JJADAMS
Is there a way to create shortcuts with batch files? Thanks
Not sure what you are asking. Are you wanting to create a shortcut associated with a particular batch file? Or do you want a batch file that creates shortcuts for other applications?
In your second post, you mention that the shortcut is on a server, and that when you cut and paste it to the local machine, it has the name of the server in it. Well, it would. Again, it would help to know more about what you want to do. But generally, batch files are only going to run locally; for instance, you cannot create a batch file, copy or paste it to a remote machine, and then execute it on that machine remotely.
Assuming you have a batch file on a local machine that you want to associate with a shortcut, just right-click on the desktop, and use the wizard to browse to the batch file you want the shortcut to run.
But that is so easy that I suspect you are trying to do something else. Probably something remotely that is not so easy to do. The one thing you may want to do, which is not possible with batch files per se, is to have a shortcut on a local machine that executes something on a remote machine (like a server). Don't get me wrong: there
are ways of doing this, but it is not something you would want an OS to allow ordinary users to do, or they could do some real damage to your server.
If that is what you want to do, let me know and I'll give you some pointers.