高手们:
大家好,我已经上传了我多日来的继续,家底都漏光了,就这么点能力,而且都是在这个论坛上学的,至于更高的,在我写的应用这方面,我实在觉得到了死胡同,希望高手拨个豁,我期待这我的武术能更高一层
好!苦于寻找TF卡上藏的歌曲,不想用系统自带的
经常用- for /d /r h: %%i in (*游戏*) do ren "%%i" 娱乐
- for /r "h:\歌曲" %%i in (*第一场雪*) do del /q "%%i"
复制代码 后来用排除部分目录
如:- dir /ad-s-h /b h:|findstr /v "雪山飞狐"|findstr /v "轩辕"|findstr /v "修真">>d:mulu.txt
- for /f "delims=" %%i in (d:mulu.txt) do (
- for /d /r "h:\%%i" %%j in (*妹妹*) do (
- ren "%%j" 哥哥
- )
复制代码 (这个p 不知道为什么行不通)
我就这2下子,常常看P,也没找到,希望高手给我点你们宝贵的p经验
这样操作非常耗内存,有简单有效的其他, 搜寻命令吗?
特别是我喜欢看小说,下了很多小说,目录乱,经常删除,更改,移动,- @echo off
- title 自动检测
- mode con: cols=40 lines=15
- setlocal enabledelayedexpansion
- set dr1=%cd%
- set dr2=%cd%\批处理临时文件夹
- if not exist 批处理临时文件夹 md 批处理临时文件夹
- cd /d %dr2%
- :again
- set num1=%num%
- for %%i in (I,J,K,L,M,N,O,P,Q,R ) do (
- set m%%i= %%i:不存在或者没插好
- )
- del /q lieb.txt 2>nul
- call :xiezc
- set /a num=0
- wmic logicaldisk where "drivetype=2" get caption|find ":">>lieb.txt
- for /f "skip=1 delims=:" %%a in (lieb.txt) do (
- set /a num+=1
- if exist "%%axie.txt" (
- for %%i in (I,J,K,L,M,N,O,P,Q,R ) do (
- if "%%a" == "%%i" set m%%a=!num! :%%a:复制完毕卸载中!
- )
- )
- call :jiestix %%a
- if exist %%a:k.txt (
- for %%i in (I,J,K,L,M,N,O,P,Q,R) do (
- if "%%a" == "%%i" set m%%a=!num! :%%a:还在检查中!
- )
- )
- if exist "%%a:t.txt" (
- for %%i in (I,J,K,L,M,N,O,P,Q,R) do (
- if "%%a" == "%%i" set m%%a=!num! :%%a:复制数据中,请留意!
- )
- )
- if exist "%%a:o.txt" (
- for %%i in (I,J,K,L,M,N,O,P,Q,R) do (
- if "%%a" == "%%i" set m%%a=!num! :%%a:复制已经结束,请注意!
- )
- )
- if not exist "%%a:o.txt" (
- if not exist "%%a:t.txt" (
- if not exist "%%axie.txt" (
- if not exist "%%a:k.txt" (set m%%a=!num! :%%a:符合盘,即将复制 & cd /d "%dr1%\批处理包" & start /b %%a.bat & cd /d %dr2% )
- )
- )
- )
- )
- mode con: cols=40 lines=15
- color 0f
- echo 本次扫描共:!num!张卡
- echo 上次扫描共:%num1%张卡
-
- for %%i in (I,J,K,L,M,N,O,P,Q,R) do (echo !m%%i!)
- echo 稍后重新扫描,请留意盘情况变化
- set /p=10秒<nul
- for /l %%i in (3 -1 0) do (
- for /l %%j in (1 1 4) do (set /p=<nul)
- if %%i lss 10 (set /p= 0%%i秒<nul) else (set /p= %%i秒<nul)
- title %%i 秒后重新扫描~
- ping 127.0.0.1 -n 2 >nul 2>nul
- )
- goto again
- goto :eof
- :xiez
- if exist "%1xie.txt" (
- for %%i in ( I,J,K,L,M,N,O,P,Q,R ) do (
- if "%1" == "%%i" set m%1=%1:复制完毕卸载中!
- )
- )
- goto :eof
- :xiezc
- for %%i in (I,J,K,L,M,N,O,P,Q,R) do (
- if exist "%%ixiecg.txt" del /q %%ixiecg.txt
- )
- goto :eof
- :jiestix
- if exist "%1:o.txt" (
- cls
- mode con: cols=30 lines=3
- echo %1复制完成!
- set /p=5秒<nul
- for /l %%i in (1 -1 0) do (
- for /l %%j in (1 1 3) do (set /p=<nul)
- set /p=%%i秒<nul
- color %%if
- title %%i 秒后提醒结束
- ping 127.0.0.1 -n 2 >nul 2>nul
- )
- )
- goto :eof
复制代码
|