创建以计算机名为名的文件

@echo off
set CMD_LINE_ARGS=%COMPUTERNAME%
type nul>d:%CMD_LINE_ARGS%.txt
hostname >d:%CMD_LINE_ARGS%.txt & ping -n 1 baidu.com >>d:%CMD_LINE_ARGS%.txt

Last modification:March 9th, 2018 at 05:24 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment