我想創建一個批處理文件,按名稱搜索特定的一系列文件,並創建一個列表來選擇要運行/打開的文件。我的問題是我不知道如何將每個結果設置爲一個變量。 下面的代碼是我目前: @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:\