本帖最后由 luosiping360180 于 2011-10-8 22:03 编辑
用fsutil fsinfo drives 和 drivetype参数,识别出真正的可移动盘符,然后再运行修改的代码
查找了下,找到这个http://bathome.net/viewthread.php?tid=3569
修改成这样试用着- @echo off
- <%~fs0 more +10>%temp%\GetU.vbs
- for /f %%a in ('cscript /nologo "%temp%\GetU.vbs"') do (
- set "DriveU=%%a"
- )
- sren -v "s/\[320×240\]\.3gp$/.mp4/i" /s /a:-d-h-s "%DriveU%\*[320×240].3gp"
-
-
- goto :eof
-
- ''''''''''''''''''''''''''''''''''''''''''''''''''''
- Set Fso = CreateObject("Scripting.FileSystemObject")
- Set B = Fso.Drives
-
- For Each A in B
- If A.DriveType = 1 Then
- aDisk = aDisk & A.DriveLetter & ": "
- End If
- Next
- aDisk = Replace(aDisk, "A: ","")
- WScript.Echo aDisk
复制代码
|