var fs = require("fs") var path = require("path") var listRealPath = path.resolve(__dirname); var newPath = path.resolve(__dirname+'/newFile'); // 整合到 新文件夹的名称 需要手动创建 或者更改为已存在的名称 var formatList = ['avi', 'mp4', 'mov', 'rmvb', 'mkv']; re
批量注册当前文件夹中的dll和ocx 新建文件:RegisterDllAndOcx.bat @echo off echo hello,girl~~ for %%i in (*.dll *.ocx) do ( echo %% register is starting... C:\Windows\System32\regsvr32.exe %%i /s echo %%i register is finished... ) pause 备注:可根据显示需要,酌情修改~