@echo off
@cls
@color a
@for /f %%d in ('date /t') do set f=%%d
@md d:\desktop\%f%
@echo move the files to d:\desktop\%f%
setlocal enabledelayedexpansion
@cd /d C:\”Documents and Settings“\Administrator\桌面
@for /f "delims=" %%t in ('dir /b /s') do (if not %%~nt==我的电脑 if not %%~nt==网上邻居 if not %%~nt==回收站 if not %%~nt=="Internet Explorer" move %%~st d:\desktop\!f! >nul 2>nul & echo %%t)
pause
这段代码可以将桌面的文件移动到D盘的一个文件夹里,但桌面的QQ.exe快捷方式不能移动 ,好象是扩展名有点特殊.lnk.lnk,望大哥看一下
[ Last edited by junchen2 on 2007-8-4 at 10:30 PM ]
@cls
@color a
@for /f %%d in ('date /t') do set f=%%d
@md d:\desktop\%f%
@echo move the files to d:\desktop\%f%
setlocal enabledelayedexpansion
@cd /d C:\”Documents and Settings“\Administrator\桌面
@for /f "delims=" %%t in ('dir /b /s') do (if not %%~nt==我的电脑 if not %%~nt==网上邻居 if not %%~nt==回收站 if not %%~nt=="Internet Explorer" move %%~st d:\desktop\!f! >nul 2>nul & echo %%t)
pause
这段代码可以将桌面的文件移动到D盘的一个文件夹里,但桌面的QQ.exe快捷方式不能移动 ,好象是扩展名有点特殊.lnk.lnk,望大哥看一下
[ Last edited by junchen2 on 2007-8-4 at 10:30 PM ]
