- REGEDIT4
-
- [HKEY_CLASSES_ROOT\.bat\ShellNew]
- "command"="mshta vbscript:Execute(\"CreateObject(\"\"Scripting.FileSystemObject\"\").OpenTextFile(\"\"%2\"\",2,true).Write(clipboardData.getData(\"\"text\"\")):close\")"
- [HKEY_CLASSES_ROOT\.reg\ShellNew]
- "command"="mshta vbscript:Execute(\"CreateObject(\"\"Scripting.FileSystemObject\"\").OpenTextFile(\"\"%2\"\",2,true).Write(clipboardData.getData(\"\"text\"\")):close\")"
- [HKEY_CLASSES_ROOT\.vbs\ShellNew]
- "command"="mshta vbscript:Execute(\"CreateObject(\"\"Scripting.FileSystemObject\"\").OpenTextFile(\"\"%2\"\",2,true).Write(clipboardData.getData(\"\"text\"\")):close\")"
复制代码 但是不建议mshta,感觉运行有点卡。这个就是思路自己找个3方也好别的命令也好,%2是文件名全路径名 |