mce-man-it
asked on
Clearing desktop of local profile on logoff or restart?
We have several meeting rooms machines which login with the same account. Users drag copies of presentations onto the desktop and dont delete them. We ideally want a way to copy all documents saved on the desktop into a folder on the desktop or to the My Documents folder every time the user logs out or the machine is restarted. Any suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Correction, it should be:
move %userprofile%\desktop\*.pp t "%userprofile%\my documents\"
move %userprofile%\desktop\*.do c "%userprofile%\my documents\"
I do not recommend to move *.*, as it will also move all normal shortcuts on the desktops.
move %userprofile%\desktop\*.pp
move %userprofile%\desktop\*.do
I do not recommend to move *.*, as it will also move all normal shortcuts on the desktops.
@ECHO OFF
ECHO Moving files to My Documents
MOVE %USERPROFILE%\Desktop\*.* "%USERPROFILE%\My Documents\" /y
The /y will overwrite existing files.