本帖最后由 pcl_test 于 2015-7-11 12:18 编辑
- 1>1/* :
- @echo off
- ::实际改为读取注册表
- (for /f "delims=" %%a in (测试.txt) do @echo;%%a)|cscript -nologo -e:jscript "%~f0"
- pause&exit /b
- */
- var txt = "";
- while(!WScript.StdIn.AtEndOfStream){
- var str = WScript.StdIn.ReadLine().replace(/\s+(REG_SZ|REG_MULTI_SZ|REG_BINARY|REG_DWORD|REG_QWORD|REG_EXPAND_SZ).*?$/,'');
- txt+=str+"\r\n";
- }
- WSH.Echo(txt);
复制代码
|