Batch 批处理搜索文件
来源:互联网 发布:激战2人女捏脸数据 编辑:程序博客网 时间:2024/06/05 08:27
试试搜索文件
粗糙的写了个
感觉写bat爱写成c的格式。。不知道这样写会不会降低效率(囧,Orz
先判断是否存在硬盘,然后在搜索文件
@echo offsetlocal EnableDelayedExpansion:beginset "disk=a b c d e f g h i j k l m n o p q r s t u v w x y z"set FilePath=set /p FileName=请输入文件名:for %%i in (%disk%) do (set DiskName=%%i:if exist !DiskName! echo 正在%%i盘查找:& call :find !DiskName! FilePathif defined FilePath echo 找到文件:!FilePath! & goto :end):endif not defined FilePath goto :notfound404set /p "=按任意键退出" < nul pause > nulgoto :eof:findfor /f %%i in ('dir /b/s %1"\%FileName%"') do (set %2=%%i & goto :eof)goto :eof :notfound404echo 没有找到set /p "=按任意键退出" < nulpause > nul
- Batch 批处理搜索文件
- batch 批处理
- 批处理搜索文件
- 批处理全盘高速搜索文件!
- 批处理全盘高速搜索文件
- spring batch批处理框架把csv文件读入数据库
- 批处理(batch)教程
- Batch 批处理求素数
- Batch 批处理循环
- Batch 批处理小弹珠
- Batch批处理轻松编写
- jdbc批处理batch性能
- 批处理(Batch Scheduling)
- Spring Batch 批处理框架
- Spring Batch 批处理框架
- batch批处理基础
- jdbc batch批处理
- Spring batch批处理框架
- getAnchorPoint cocos2d-x 中关于描点的
- Oracle 全库备份脚本
- Cryptograhpy and Networks notes
- 利用NFS远程备份报 ORA-27054 错误解决办法
- 稳固执行计划
- Batch 批处理搜索文件
- 深入理解Oracle索引(4):optimizer_index_cost_adj详解
- 基于约束的电源管理在多媒体移动平台中的应用
- 程序员对内存的理解
- TP-LINK WR703N 刷OpenWrt并设置pppoe联网、安装LUCI、添加新用户、挂载USB设备、配置ftp服务、借由transmission实现脱机下载
- Android--实现自制录音/播放录音程序
- 无备份恢复各种场景的处理
- hive java.net.ConnectException: Connection refused
- 在 Solaris 10 上安装 Oracle 10g 完全详解