- Can I include a variable in the target field of the shortcut properties?
- Posted by rkc444 on October 10th, 2005
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?
--
rkc444
- Posted by S. Taylor on October 10th, 2005
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
"rkc444" <rkc444.1wpgtq@pcbanter.net> wrote in message
news:rkc444.1wpgtq@pcbanter.net...
>
> 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?
>
>
> --
> rkc444
- F.A.S.T. does not include Outlook PST (Microsoft Windows) by Gordon J. Rattray
- F.A.S.T. does not include Outlook PST (Basics) by Gordon J. Rattray
- Re: F.A.S.T. does not include Outlook PST (Microsoft Windows) by Sue Mosher [MVP-Outlook]
- Re: F.A.S.T. does not include Outlook PST (Basics) by Sue Mosher [MVP-Outlook]
- Shortcut target changed!? (Microsoft Windows) by Don Wiss

