本帖最后由 pcl_test 于 2016-9-6 15:31 编辑
- //&cls&mshta "%~f0"|find /v ""&pause&exit
-
- <script>
- var fso = new ActiveXObject('Scripting.Filesystemobject');
- var txtfile = '文本.txt';
- var n = 48;
- var s = '';
- try{
- var f = fso.OpenTextFile(txtfile, 1);
- for(i=0;i<n;i++)s+=f.ReadLine()+'\r\n';
- var text = f.ReadAll();
- f.Close();
- }catch(e){}
- clipboardData.setData('text', s);
- fso.OpenTextFile(txtfile, 2).Write(text);
- close();
- </script>
复制代码
|