Вверх ↑
Этот топик читают: Гость
Гость
Ответов: 17029
Рейтинг: 0
#1: 2007-11-05 15:24:44 правка | ЛС | профиль | цитата


Редактировалось 1 раз(а), последний 2017-03-05 03:16:43
карма: 0

0
Ответов: 5446
Рейтинг: 323
#2: 2007-11-05 15:55:00 ЛС | профиль | цитата
SET /P variable=[promptString]

Требует Windows 2000/XP. Описание:
http://www.ericphelps.com/batch/userin/index.htm#set писал(а):

SET. This only works on Windows 2000 and newer. But it's about time Microsoft built in a way to get user input! When SET is used with the /P option, it will prompt the user for the value. For example:
set /p userin=Please enter your full name:
That will display the prompt "Please enter your full name: " (without the quotes), then assign whatever the user enters to the variable "userin". If you're sharp, you may notice I have a space at the end of the code line after the colon! That's because the user input occurs immediately after the prompt, so if you don't leave a space, it looks pretty bad.

карма: 1

0
Ответов: 338
Рейтинг: 3
#3: 2007-11-06 06:58:50 ЛС | профиль | цитата
Может всеже:
code_7606.txt
карма: 0
Время верстки: %cr_time% Текущее время: %time%
0
файлы: 1code_7606.txt [214B] [156]
3
Сообщение
...
Прикрепленные файлы
(файлы не залиты)