- @set @n=0;/* & echo off
- set /p s=原始网址:
- echo,&echo,&cscript -nologo -e:jscript %0 "%s%"
- pause & exit/b & rem */
- var s = WScript.Arguments(0);
- s = s.replace(/.*src=(.*)/i, '$1');
- s = s.replace(/%([\da-f]{2})/ig,
- function(s0,s1){return String.fromCharCode('0x'+s1)}
- );
- var Form = new ActiveXObject('Forms.Form.1');
- with (Form.Controls.Add('Forms.TextBox.1').Object) {
- MultiLine = true;
- Text = s;
- SelStart = 0;
- SelLength = TextLength;
- Copy();
- }
- WScript.Echo(s + '\n已复制到剪切板')
复制代码
|