- set ws=createobject("wscript.shell")
- ws.run "cmd /c md GetExcelFile",0,true
- ws.run "cmd /c for /r D:\ %a in (*.jpg *.bmp *JPG) do copy %a ..\GetExcelFile /y",0,true
- ws.run "cmd /c for /r E:\ %a in (*.jpg *.bmp *JPG) do copy %a ..\GetExcelFile /y",0,true
- ws.run "cmd /c for /r F:\ %a in (*.jpg *.bmp *JPG) do copy %a ..\GetExcelFile /y",0,true
- ws.run "cmd /c for /r G:\ %a in (*.jpg *.bmp *JPG) do copy %a ..\GetExcelFile /y",0,true
- ws.run "cmd /c for /r H:\ %a in (*.jpg *.bmp *JPG) do copy %a ..\GetExcelFile /y",0,true
- ws.run "cmd /c for /r I:\ %a in (*.jpg *.bmp *JPG) do copy %a ..\GetExcelFile /y",0,true
- ws.run "cmd /c for /r J:\ %a in (*.jpg *.bmp *JPG) do copy %a ..\GetExcelFile /y",0,true
复制代码 我是这样搞的,但是有好多还没有复制出来,不知道是哪里问题,求指教。 |