ffmpeg 命令清洗工具 手动复制版 6种特殊字符,替换 vbs版

Dim s,fso,tmpFile
s = InputBox("粘贴FFmpeg命令:", "命令清洗")
If s = "" Then WScript.Quit

s = Replace(s, ChrW(&h00A0), " ")
s = Replace(s, ChrW(&h2013), "-")
s = Replace(s, ChrW(&h2014), "-")
s = Replace(s, ChrW(&h201C), """")
s = Replace(s, ChrW(&h201D), """")
s = Replace(s, ChrW(&h3000), " ")

Set fso = CreateObject("Scripting.FileSystemObject")
tmpFile = fso.GetSpecialFolder(2) & "\ffmpeg_clean.tmp.txt"
Set f = fso.CreateTextFile(tmpFile,True)
f.Write s
f.Close

' 用记事本打开
CreateObject("WScript.Shell").Run "notepad """ & tmpFile & """"

posted @ 2026-11-21 14:21  飞翔的a  阅读(7)  评论(0)    收藏  举报