Jump to content

Passing command line argument via Windows Shortcut


Recommended Posts

Guest Peter Lu
Posted

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.

--

Keep it brief: http://www2.paypc.com/mailrules/

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: Passing command line argument via Windows Shortcut

 

 

"Peter Lu" <swift@TheWorld.com> wrote in message

news:fcjljg$qp5$1@pcls6.std.com...

> 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.

> --

> Keep it brief: http://www2.paypc.com/mailrules/

 

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.


×
×
  • Create New...