Can I include a variable in the target field of the shortcut properties?

  • Thread starter Thread starter rkc444
  • Start date Start date
R

rkc444

Can I include a variable in the Target field in Shortcut tab in its
Properties? I am using a Windows XP shortcut to launch a windows
application. In the Target field in Properties, I would like to include
a variable. Is it possible to do this, and then be asked for the value
of the variable each time the shortcut is executed?

This worked fine in the old MS-DOS batch files, where in the command
line I could just give the name of the batch file to be run, followed
by any number of parameters, which would then be plugged into variables
in the batch file when it was executed. Since a windows shortcut is
clearly not executed from a command line, is there a way to have a
similarly interactive process?
 
The program has to be designed to do that.
You could have the shortcut point to a script file (*.js or *.vb for the
windows scripting host)
or to a dos batch file, like you're used too, and have the script/batch file
load the program
 
Back
Top