Passing command line argument via Windows Shortcut

P

Peter Lu

Hi,

Does anyone know if there is an easy way to set up a Shortcut
(.lnk) to a program or batch script that will solicit the
user for command line arguments? With the old (16-bit?) PIF
mechanism, a "?" on the "Cmd line:" tells the PIF to open
a dialog to get user inputs. Unfortunately, that no longer
works for the (32-bit?) LNK mechanism.

Thanks for help.
 
P

Pegasus \(MVP\)

Peter Lu said:
Hi,

Does anyone know if there is an easy way to set up a Shortcut
(.lnk) to a program or batch script that will solicit the
user for command line arguments? With the old (16-bit?) PIF
mechanism, a "?" on the "Cmd line:" tells the PIF to open
a dialog to get user inputs. Unfortunately, that no longer
works for the (32-bit?) LNK mechanism.

Thanks for help.

This was a Win9x facility that did not make it to WinXP.
You can emulate it by writing a command into the batch
file you invoke, to prompt the user for his/her input.
 

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