我想创建一个批处理文件,按名称搜索特定的一系列文件,并创建一个列表来选择要运行/打开的文件。我的问题是我不知道如何将每个结果设置为一个变量。 下面的代码是我目前: @echo off
::The code below requests for the user to enter part of the file name
::that he/she is interested in openi
下面的脚本命令检查相匹配的命令行参数%1对固定字ALA <code>
@echo off
set one=%1
set two=%2
If NOT "%one%"=="%one:ala=%" (echo the first argument contains the word "ala")
else (echo no matching !)
我是这批整批脚本编程的新手,但我真的很喜欢它。我一直在使用批处理脚本,并将恒定的ping结果以及时间戳输出到.txt文件,但希望输出到.xlsx。这是我一直在使用的脚本。 @echo off
title Google Ping
mode 12,1
:start
set DT=%date:/=-%
timeout /t 30
echo %time% %date% >> C:\