本帖最后由 pcl_test 于 2016-7-21 23:11 编辑
- //&cls&mshta "%~f0"&pause&exit
-
- <script>
- var fso = new ActiveXObject('Scripting.Filesystemobject')
- var today = new Date();
- var file = today.getFullYear()+('0'+(today.getMonth()+1)).slice(-2)+('0'+today.getDate()).slice(-2)+'.txt';
- fso.CreateTextFile(file, 2).Write(clipboardData.getData('text').replace(/[ \t]/g, ''));
- close();
- </script>
复制代码
|