我有一个批处理文件,是一个非常简单的程序,可以启动网站,类似迷你的Web浏览器体验,具有打开程序等命令。如何为此制作界面或GUI?而不必完全手动更改我的代码。这是我代码的示例:
:start
@echo off
COLOR 1E
cls
echo Welcome to Wannow Dashboard. This is the main page.
echo Type in the number to be redirected to your desired location.
echo 1. Useful Websites
echo 2. Programs
echo Wannow Dashboard created by Brad Wannow
set/p var1=
if %var1% == 1 goto Websites
if %var1% == 2 goto program
pause
exit
:websites
COLOR 1E
cls
echo Welcome to Wannow Dashboard: Websites. Select a command, type in number to be redirected.
echo 1. www.Pandora.com
echo 2. www.Google.com
echo 3. Aventa Blackboard
echo 4. Other
@echo OFF
@echo %time%
ping -n 1 -w 1 127.0.0.1 1>nul
echo Wannow Dashboard
当然,还有很多代码,但这就是我的程序编写方式,还有一些启动命令和用户输入等等。
Echo Hello World
将变成msgbox("Hello World")
,而输入将看起来像inputbox("What is your name?")
(在非常基本的水平上)。 - SeanC