本帖最后由 pcl_test 于 2016-10-18 15:14 编辑
保存为bat文件运行- @echo off
- for /f "tokens=1-3*" %%a in ('dir /a-d/tc^|find ":"') do echo;%~dp0%%d ^| %%a %%b ^| %%d
- pause
复制代码
- @echo off
- set "fd=%~p0"
- wmic datafile where "drive='%~d0' and path='%fd:\=\\%'" get Name,InstallDate,FileName,Extension /value
- pause
复制代码
- //&cls&dir /a-d/b|cscript -nologo -e:jscript "%~f0"&pause&exit
-
- var fso=new ActiveXObject('Scripting.FileSystemObject'), s='';
- while(!WSH.StdIn.AtEndOfStream){
- var f=fso.GetFile(WSH.StdIn.ReadLine());
- s+=f.Path+' | '+(new Date(f.DateCreated)).toLocaleString()+' | '+f.Name+'\r\n';
- }
- WSH.Echo(s);
复制代码
- rem win7及以上系统运行
- powershell -c "dir|?{!$_.PSIsContainer}|select FullName,CreationTime,Name"
- pause
复制代码
|