Allows user input in shell scripts (batch files). #Shell script #User input #Command prompt #Shell #Input #Batch
The EditVar and Choose package provides two application that were designed to allow user input in shell scripts (batch files). The download also includes MS-DOS versions of both programs which may be useful on DOS bootable media.
EditVar works by obtaining the contents of an environment variable and presenting it for interactive editing. If you make any changes to the variable's contents and press Enter, EditVar writes the changed variable to the parent environment of the program that started it (usually Cmd.exe).
EditVar is similar to the Cmd.exe Set /p command in Windows 2000 and later, but it may be preferable for the following reasons: - It allows you to edit a variable, not just set one. - It can limit the length of the typed variable. - It can mask the typed input for simple password security. - It can limit typed input to numbers only. - It offers a timeout feature (useful when a script needs to run unattended). - It can automatically "escape" reserved shell characters in variables it creates. - It provides useful exit codes: For example, an exit code of 4 means that the user pressed Ctrl-C to abort. - It comes with an MS-DOS version that works in Windows 9x/Me as well as on MS-DOS boot media.
Choose is similar to the Microsoft Choice tool, but it has more features. Here are some reasons why it might be preferable to Choice: - It doesn't beep when the user makes an invalid choice. - It offers a "default key" feature, which lets a user press Enter to select a default choice. - It comes with a real-mode DOS version (useful for MS-DOS boot media). The Win32 version's timeout feature doesn't get confused when you run multiple instances in separate console windows (this was a problem with earlier Win32 console versions of Microsoft's Choice tool). - A 64-bit version is provided. - It can suppress the display of the user's choice. - It offers a "line input" mode where the user must press Enter after making a choice.
What's new in EditVar and Choose 3.0:
- Windows versions no longer hang when closing the console window.
- Running EditV32.exe from a 64-bit process will abort with error 216.
- Running EditV64.exe from a 32-bit process will abort with error 216.
- Fixed some bugs in command-line parser and environment variable access.
EditVar and Choose 3.0
add to watchlist add to download basket send us an update REPORT- runs on:
- Windows All
- file size:
- 143 KB
- filename:
- editv30.zip
- main category:
- System
- developer:
- visit homepage
Zoom Client
calibre
Windows Sandbox Launcher
IrfanView
Bitdefender Antivirus Free
7-Zip
Microsoft Teams
Context Menu Manager
ShareX
4k Video Downloader
- Context Menu Manager
- ShareX
- 4k Video Downloader
- Zoom Client
- calibre
- Windows Sandbox Launcher
- IrfanView
- Bitdefender Antivirus Free
- 7-Zip
- Microsoft Teams