---
title: "dos批处理命令，执行时读取键盘输入参数"
author: "hzhlu"
date: "2012-03-01T17:31:04Z"
tags: ["DOS", "批处理", "读键盘输入"]
categories: ["操作系统"]
slug: "dos"
draft: false
lastmod: "2012-03-01T17:31:04Z"
id: 1434562
url: "https://hzhlu.iteye.com/blog/1434562"
---

@set /p input=请输入日志编号：
set sn=%input%


简单判断，读入的Y/N
CHOICE [/C choices] [/N] [/CS] [/T timeout /D choice] [/M text] 
