Dos has a number of utilities such as input.com and ask.com, that displays
a prompt on your screen, with words you choose, and then inserts your
keyboard input into a variable.
Is there anything like this utility for the windows desktop? I know
of run command replacements. But I need a little box that comes up
with a prompt, for instance ``enter a filename:'' ready for me to
type in some data.
I know I can use dos itself, with a utility like input.com for this.
But the dos box is to my eyes too big and ugly looking for this
purpose.
It is not apparent from your posting, what kind of input means you
need. (Always a file name or different things on different occasions.)
More advanced possibilities need scripting. If you don't like the
full blown (and security-wise risky) WSH, you should consider using
AutoIt:
www.autoitscript.com/autoit3
OTOH, Parameteriser by Darren Greaves may be sufficient:
http://krapplets.cream.org/parameteriser.shtml
Unfortunately, it needs Administrator rights to run okay. There are
other tools of the same kind out there, like ExecParam from Touchstone
(Marc Scherwinski):
www.touchstone.de/Default.aspx?tabid=36
Google with both names for similar programs.
If you just need Standard dialog boxes (YesNoCancel and the like),
have a look at WPrompt by Horst Schaeffer:
http://home.mnet-online.de/horst.muc/win/index.html
That one would do, if only one or two (fixed!) file names have to
be used. ("Shall I start with...?")
But there are some means much more simple than that, too. Back in
the days of Pif-files for DOS programs one could acquire parameters
on runtime quite easily. This works, still: Create a link to any DOS
program. (Simply drag the *.exe from Explorer to the desktop using
the *right* mouse button. Choose <Create Link> from the drop-down
menu, which opens.) Edit the Properties of that link and change
command line and working directory on the Program page to the
program (and working directory, of course), you actually want to
execute. Add a space and a question mark behind the program name.
If you execute this link now, a parameter window opens before
running the program. If you need to pass a file name with spaces
as a parameter, you have to enclose the string inside the input box
in quotation marks.
HTH.
BeAr