Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 这句话是怎么说的_Windows_Batch File - Fatal编程技术网

Windows 这句话是怎么说的

Windows 这句话是怎么说的,windows,batch-file,Windows,Batch File,我有一个包含一行代码的批处理文件 set /p bom=<%YUI_FOLDER%\bom set/p bom=set/p var=[prompt]是批处理文件中从用户检索输入的常用方法,显示提示(如果存在)并将用户响应存储在变量中 set/p从流(通常是控制台)读取数据,但管道或重定向也可以以相同的方式读取 在这种情况下,set/p将从重定向文件读取数据。set/p var=[prompt]是批处理文件中从用户检索输入的常用方法,显示提示(如果存在)并将用户响应存储在变量中 set/p

我有一个包含一行代码的批处理文件

set /p bom=<%YUI_FOLDER%\bom

set/p bom=
set/p var=[prompt]
是批处理文件中从用户检索输入的常用方法,显示提示(如果存在)并将用户响应存储在变量中

set/p
从流(通常是控制台)读取数据,但管道或重定向也可以以相同的方式读取


在这种情况下,
set/p
将从重定向文件读取数据。
set/p var=[prompt]
是批处理文件中从用户检索输入的常用方法,显示提示(如果存在)并将用户响应存储在变量中

set/p
从流(通常是控制台)读取数据,但管道或重定向也可以以相同的方式读取

在这种情况下,
set/p
将从重定向文件读取数据。在中的
中,我发现了一段带注释的代码,它几乎解释了这行应该做什么:

REM Unicode transformation.
REM Report files should be readable in Windows Notepad editor.
REM Example DOS characters: ”„á‚
REM Example WIN characters: öäüßé
REM Create Unicode files with BOM.
REM Having set the current codepage to 1252, ...
REM then the UTF-16LE BOM can be created by the command ...
REM SET /P BOM=ÿþ<NUL 2>NUL >"UnicodeFile.txt"
remunicode转换。
REM报告文件应在Windows记事本编辑器中可读。
REM示例DOS字符:“a”
REM示例WIN角色:öäü223;é
REM使用BOM表创建Unicode文件。
REM已将当前代码页设置为1252。。。
REM然后可以通过命令创建UTF-16LE BOM。。。
REM SET/P BOM=NUL>“unicodible.txt”
因此,在中,此行用于创建变量
bom
,检查它是
utf8
还是
cp1252
或其他什么…

在中,我发现了一段带注释的代码,它几乎解释了行应该做什么:

REM Unicode transformation.
REM Report files should be readable in Windows Notepad editor.
REM Example DOS characters: ”„á‚
REM Example WIN characters: öäüßé
REM Create Unicode files with BOM.
REM Having set the current codepage to 1252, ...
REM then the UTF-16LE BOM can be created by the command ...
REM SET /P BOM=ÿþ<NUL 2>NUL >"UnicodeFile.txt"
remunicode转换。
REM报告文件应在Windows记事本编辑器中可读。
REM示例DOS字符:“a”
REM示例WIN角色:öäü223;é
REM使用BOM表创建Unicode文件。
REM已将当前代码页设置为1252。。。
REM然后可以通过命令创建UTF-16LE BOM。。。
REM SET/P BOM=NUL>“unicodible.txt”
因此,在中,此行用于创建变量
bom
,该变量将检查它是
utf8
还是
cp1252
或其他什么