Move all items on Desktop that are NOT in a Fence

Desktop Cleanup Automation

OK. I have this crazy idea. The ultimate thing to me would be to have my entire Desktop in "Details" view. But those days are gone when you could replace the whole Desktop shell in Windows (a-la Win98).

So my compromise is to create a DESKTOP_FILES folder and put it in a Folder Portal.

I then run a script (shortcut on my Desktop) to Move all files on the Desktop to the DESKTOP_FILES folder.

The script moves everything and then copies back just the Shortcut (.lnk) files.

Now, of course, I want to have everything, so I need your help to modify my script so as to leave anything inside a fence behind. I know this is a tall order, but I think there has got to be a way. Or a workaround, somehow.

Here is the basic script I currently use. Obviously it could be done a lot better, but it's just the start of an idea.

 

robocopy "D:\OneDrive\Desktop" "D:\OneDrive\DESKTOP_FILES" /E /MOVE
robocopy "C:\Users\Techfixes\OneDrive\Desktop" "D:\OneDrive\DESKTOP_FILES" /E /MOVE
xcopy "D:\OneDrive\DESKTOP_FILES\*.lnk" "C:\Users\Techfixes\OneDrive\Desktop" /s /i /m
pause

 

In case you haven't guessed, I save a lot of junk on my Desktop. I suffer from that object permanence thing, if it's not right in front of me, it's forgotten forever. So things I'm currently working on have to hang around for a while :)

3,132 views 2 replies
Reply #1 Top

Hello,

Not sure what you trying to get to, but you do know that Fences has the desktop page feature. You can put all you fences in your main desktop page and move all other icons in other Fences Desktop page. Have you try it?


Basj,
Stardock Community Assistant.

Reply #2 Top

What version of Fences are you running?

Do you save everything to the Desktop?

I am also not sure of your objective, but look in the "Rules" section of the Fences config. There is a rule to send all new icons to a specified Fence.