Interface
Moderator: DosItHelp
Re: Interface
Windows has scripting languages like VBScript or JScript on board that can be run without a window and where you would use default dialog boxes instead. The fact that those are really only default dialogs makes it actually less flexible. However, cmd.exe (which is the interpreter for Batch scripts) is a console program and thus, runs in a text-based console window which is the user interface in that case. If you're not happy whith that console window I'd really recomment you to use another language. Sure, you could use hybrid scripts to display dialogs but that looks rather weird to users that expect to work with the console window in Batch.
Steffen
Steffen
Re: Interface
It's just one dialog box I'd like to use. I've been looking for examples but couldn't find any...
Thanks for the answer!
Thanks for the answer!
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Interface
There's always HTA as well.aGerman wrote: ↑24 Jul 2018 00:52Windows has scripting languages like VBScript or JScript on board that can be run without a window and where you would use default dialog boxes instead. The fact that those are really only default dialogs makes it actually less flexible. However, cmd.exe (which is the interpreter for Batch scripts) is a console program and thus, runs in a text-based console window which is the user interface in that case. If you're not happy whith that console window I'd really recomment you to use another language. Sure, you could use hybrid scripts to display dialogs but that looks rather weird to users that expect to work with the console window in Batch.
Steffen
Re: Interface
Can you give some more information?
There is a Messagebox dialog that just displays a message or a question and you have buttons lik Yes, No or Yes,No, Cancel. There is also an Inputbox where you can fill in freetext. Another possibility is a BrowseForFolder dialog where you can pick up a folder out of an Explorer-like window.
Of course. But in that case you may need an additional text file as interface between the two processes.
Steffen
Re: Interface
Frank Westlake made a bunch of utilities that had that functionality. Don't believe his website is up anymore but they are all hosted on SS64.
http://ss64.net/westlake/nt/
http://ss64.net/westlake/nt/
Re: Interface
I completely forgot about that you could write to stdout from within a HTA script
Re: Interface
Many thanks for the answers!
Sandritto
Sandritto