Robocopy'ing the Desktop


  1. Posts : 52
    Windows 22H2
       #1

    Robocopy'ing the Desktop


    Hi

    I just installed a new SSD (c: drive). I plugged my old HDD (d: drive) into a USB port.

    I used this command below...
    Code:
    robocopy d:\users\mas\Desktop c:\users\mas\Desktop /e
    I noticed a hidden file (desktop.ini) was copied over. Will this mess anything up?
    Are there other hidden or system files that might get messed up by this robocopy?
    Like the Trash Can.

    Thanks!
      My Computer


  2. Posts : 3,020
    Windows 10 Pro for the Bro
       #2

    Regarding the hidden desktop.ini file: Don't worry about that at all. Honestly, I know exactly what you're talking about. I always delete that file from my Desktop after big Windows Updates install. It tends to get created, and I always delete it because I keep my Desktop nice and clean. It should not affect your computer negatively in any way at all.

    It is your choice though. If you feel like it might mess things up if deleted, then you can keep it. It doesn't affect anything on your Desktop at all. So you can keep it if you don't mind having it on your Desktop. (I highly recommend that you make your computer always show hidden files, such as the desktop.ini file, so you are aware of every single file in any folder on your computer.)
      My Computer


  3. Posts : 43,455
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #3

    desktop.ini is normal in any folder. And as you say, normally it's hidden.

    It holds data which characterises \ can characterise folders.

    I don't agree with Pepanee about making everything visible. You don't want to accidentally delete system or hidden files that are hidden- so users don't mess things up.

    Consider e.g. the effect of CTRL A (select all) and delete.
    If normally hidden files are not hidden they too will be deleted.

    Note how you've been concerned enough about a valid file which is normally hidden to spend time posting about it.

    Try doing some research on what desktop.ini is used for. Not just the desktop!
      My Computers


  4. Posts : 4,167
    Windows 11 Pro, 22H2
       #4

    A couple of robocopy tips:

    1) Use /xf to exclude one of more files like this:

    /xf desktop.ini

    You can list multiple files, just put a space between file names. If a file has spaces in the name, enclose that name in double quote marks".

    2) If you want to see what your robocopy command will do without actually doing it (basically a preview), just add a /L to the command. This let's you test the command with no commitment. If it looks good, run the command without the /L to carry out that operation.
      My Computers


  5. Posts : 52
    Windows 22H2
    Thread Starter
       #5

    hsehestedt said:
    A couple of robocopy tips:

    1) Use /xf to exclude one of more files like this:

    /xf desktop.ini
    Should I exclude all hidden/system files like this?

    Code:
    /xa:sh
      My Computer


  6. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    Yes, you can do that as well.
    I routinely exclude system & hidden items unless there is some particular reason not to for some particular purpose on some particular occasion.

    Since you will be repeating your RoboCopying with many files already in place including some [HS] ones that you don't want, you could also add the /MIR switch so that things you've omitted in in your changed RoboCopy command using /XF, /XD & /XA get removed from the new disk destination during the RoboCopy instead of your having to hunt around for them manually afterwards.
    - You can see its built-in Help by entering this in a command window RoboCopy /?
    - Robocopy - SS64
    - RoboCopy - MSLearn


    Best of luck,
    Denis
      My Computer


  7. Posts : 8,227
    windows 10
       #7

    If you set MS to sync it will do all this for you
      My Computer


  8. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    How is your RoboCopying going?


    Thanks for the rep,
    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:35.
Find Us




Windows 10 Forums