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

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?
 
S

S. Taylor

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
 

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