Thanks everyone....This batch script is done...Automatically cleans the desktop at startup.
It's attached, compressed twice. Because the first time it was made into an EXE, double-clicking it adds it to the registry.
Everyone can modify the paths inside, user names, etc. You can also set the user name with SET.
Main code:
Put commonly used shortcuts on the ALL USER's desktop, and they won't be deleted.
Thanks to everyone for the help these past few days...Ha
Desktop Cleanup
[ Last edited by andison625 on 2008-5-26 at 05:01 PM ]
It's attached, compressed twice. Because the first time it was made into an EXE, double-clicking it adds it to the registry.
Everyone can modify the paths inside, user names, etc. You can also set the user name with SET.
Main code:
Set BakDesktop=%DATE:~0,4%-%DATE:~5,2%-%DATE:~8,2%
mkdir d:\Desktop Backup Documents\%BakDesktop%
xcopy /s /q /h /r /y /v C:\Docume~1\admin\Desktop\*.* d:\Desktop Backup Documents\%BakDesktop%\
del /q /f C:\Docume~1\admin\Desktop\*.*
for /f "delims=" %%i in ('dir /ad /b C:\Docume~1\admin\Desktop'do (
rd /s /q C:\Docume~1\admin\Desktop\%%i
)
Put commonly used shortcuts on the ALL USER's desktop, and they won't be deleted.
Thanks to everyone for the help these past few days...Ha

Desktop Cleanup
[ Last edited by andison625 on 2008-5-26 at 05:01 PM ]

do (