标题: 望高手解决input.com命令使用方法(在线等)
[打印本页]
作者: 341086
时间: 2009-3-15 05:53
标题: 望高手解决input.com命令使用方法(在线等)
input.com命令是怎么使用的?
为什么调用不了它的变量呢?
INPUT ver 1.2 (c) 2000, Horst Schaeffer
Syntax: INPUT [line,column] [prompt] varname [options]
Options:
/E edit current variable
/S edit: cursor at end, clear if 1st key is ASCII
/Ln limit input length=n
/U uppercase, /I insert, /P password, /N numeric only, /F flush buffer
goto was unexpected at this time.
以上是参数说明:
我的事例是这样的:
input "Please enter number:" aa /l4
echo %aa%
为什么显示不了输入的内容呢?
显示的确是:ECHO is off
望高手解决,在线等!
作者: Sufone
时间: 2009-3-15 10:59
手头上没 input.com,无法试,或许你在 input.com 的前面加上 set aa="" 试试
作者: jh1688
时间: 2009-11-7 23:14
input "屏幕显示的说明" 变量
例:我自己在用的
if exist .\i386\WINNT.SIF del .\i386\WINNT.SIF
echo.
echo 正在个性化安装你的计算机:
echo.
input "请输入系统名称:"full
echo.
input "请输入公司名称:"org
echo.
input "请输入计算机名称:"computer
echo.
echo [UserData] >>.\i386\winnt.sif
echo ProductKey=MRX3F-47B9T-2487J-KWKMF-RPWBY >>.\i386\winnt.sif
echo FullName="%Full%" >>.\i386\winnt.sif
echo OrgName="%Org%" >>.\i386\winnt.sif
echo ComputerName="%Computer%" >>.\i386\winnt.sif
echo. >>.\i386\winnt.sif
……