Avatar of mce-man-it
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?
Windows XP

Avatar of undefined
Last Comment
RubenvdLinden

8/22/2022 - Mon
Saoi

The easiest way would be to use a logoff script, something to the effect of:

@ECHO OFF
ECHO Moving files to My Documents
MOVE %USERPROFILE%\Desktop\*.* "%USERPROFILE%\My Documents\" /y

The /y will overwrite existing files.
ASKER CERTIFIED SOLUTION
RubenvdLinden

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
RubenvdLinden

Correction, it should be:

move %userprofile%\desktop\*.ppt "%userprofile%\my documents\"
move %userprofile%\desktop\*.doc "%userprofile%\my documents\"


I do not recommend to move *.*, as it will also move all normal shortcuts on the desktops.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy