CMD 获取返回值第一个结果
65 字
1 分钟
CMD 获取返回值第一个结果
CMD 获取返回值第一个结果
方法一
标签循环有效,无标签会终止代码注意
call :1
:1for /f "tokens=1" %%f in ('dir /b') do set m=%%f && goto:eofgoto:eof方法二
set "m="for /f "tokens=1" %%f in ('dir /b') do if not defined m set m=%%f文章分享
如果这篇文章对你有帮助,欢迎分享给更多人!
CMD 获取返回值第一个结果
https://www.satxm.top/posts/cmd-for-first/ 相关文章 智能推荐
1
VMware 创建虚拟 USB 磁盘
VMware 创建一个 .vmdk 文件,虚拟机将其识别为真实的 USB 存储设备,支持热插拔模拟和完整的USB协议交互。
2
命令行颜色代码
Windows 命令行颜色代码
3
恢复经典资源管理器和右键菜单
Windows 恢复 Windows 11 经典资源管理器和右键菜单
4
Office 将编号转换为文本
Word Office 将编号转换为文本
5
在 Powershell 中创建符号链接
Powershell 在 Powershell 中创建符号链接
随机文章 随机推荐