Tools to create new shortcut on command line

G

Guest

There was a great powertoys for win95 :
it allowed to create a new shortcut on the command line just by providing
him the name of the shortcut .LNK and the target file and pathname.
Unfortunately this tool works only under win95...
Now, I need exactly the same now but for all the existing Windows :
95/98/ME/NT/2000/XP/2003/Vista.
And I need the following properties of the tool :
- provide him the name of the new shortcut.
- tell him if we want to create a .LNK or a .PIF, and this tool should be
capable to create the appropriate shortcut accordingly in the specific file
format for each one.
- tell him the target file name and path.
- tell him the pathname where to create the shortcut (by default : the
current directory).
- tell him the working directory where the target file will operate.
- tell him weither I want to launch the target file in a normal window,
minimized window, or maximazed window.
- tell him the compatibility (for winxp only) : win95/98/NT/2000.
- tell him the appriate DOS mode, or none (for .PIF only).
Thanks for your help.
Where can I find such a tool at Microsoft now ?
Or when could I expect such a powertoys to be available for all windows
version, and not only winxp ?
Or where else on the web could I search for such a tool ?
Or help me with some indications to program this tool myself :
- what is the file format for a .LNK ?
- what is the file format for a .PIF ?
- what basic commands should I use in a script to make all the above
feasable ?
Thanks.
 
P

Pegasus \(MVP\)

bestofcomputer said:
There was a great powertoys for win95 :
it allowed to create a new shortcut on the command line just by providing
him the name of the shortcut .LNK and the target file and pathname.
Unfortunately this tool works only under win95...
Now, I need exactly the same now but for all the existing Windows :
95/98/ME/NT/2000/XP/2003/Vista.
And I need the following properties of the tool :
- provide him the name of the new shortcut.
- tell him if we want to create a .LNK or a .PIF, and this tool should be
capable to create the appropriate shortcut accordingly in the specific file
format for each one.
- tell him the target file name and path.
- tell him the pathname where to create the shortcut (by default : the
current directory).
- tell him the working directory where the target file will operate.
- tell him weither I want to launch the target file in a normal window,
minimized window, or maximazed window.
- tell him the compatibility (for winxp only) : win95/98/NT/2000.
- tell him the appriate DOS mode, or none (for .PIF only).
Thanks for your help.
Where can I find such a tool at Microsoft now ?
Or when could I expect such a powertoys to be available for all windows
version, and not only winxp ?
Or where else on the web could I search for such a tool ?
Or help me with some indications to program this tool myself :
- what is the file format for a .LNK ?
- what is the file format for a .PIF ?
- what basic commands should I use in a script to make all the above
feasable ?
Thanks.

Windows 2000/XP does not use .pif files, only .lnk files. You can
create them from the Command Prompt with shortcut.exe, which
comes with the Windows Resource Kit.

To find a tool that works under Win9x, post your question in a
Win9x newsgroup.
 
R

Ramesh, MS-MVP

http://www.optimumx.com/download/

Shortcut v1.11 (Shortcut.exe) Last Updated: 07/04/2005

Allows you to create, modify or query Windows shell links (shortcuts) from
the command-line. You can export the properties of an existing shortcut to
a text file in .INI format. Use 'Shortcut /?' to view the syntax.

--
Ramesh, Microsoft MVP
Windows XP Shell/User

Windows XP Troubleshooting
http://www.winhelponline.com


There was a great powertoys for win95 :
it allowed to create a new shortcut on the command line just by providing
him the name of the shortcut .LNK and the target file and pathname.
Unfortunately this tool works only under win95...
Now, I need exactly the same now but for all the existing Windows :
95/98/ME/NT/2000/XP/2003/Vista.
And I need the following properties of the tool :
- provide him the name of the new shortcut.
- tell him if we want to create a .LNK or a .PIF, and this tool should be
capable to create the appropriate shortcut accordingly in the specific file
format for each one.
- tell him the target file name and path.
- tell him the pathname where to create the shortcut (by default : the
current directory).
- tell him the working directory where the target file will operate.
- tell him weither I want to launch the target file in a normal window,
minimized window, or maximazed window.
- tell him the compatibility (for winxp only) : win95/98/NT/2000.
- tell him the appriate DOS mode, or none (for .PIF only).
Thanks for your help.
Where can I find such a tool at Microsoft now ?
Or when could I expect such a powertoys to be available for all windows
version, and not only winxp ?
Or where else on the web could I search for such a tool ?
Or help me with some indications to program this tool myself :
- what is the file format for a .LNK ?
- what is the file format for a .PIF ?
- what basic commands should I use in a script to make all the above
feasable ?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top