Solved Robocopy Questions


ArthurDent

Well-known member
Member
VIP
Local time
12:28 AM
Posts
59
OS
Windows 11 Pro 23H2 Build 22631
Okay …

So on both my desktop and my wife's laptop, I use Robocopy to copy various files and folders to backup media - in the case of my desktop to a separate HDD and in my wife's case from a SSD to a SD Card.

Both of these machines are running Windows 10.

I have a new laptop (specs as System 1) running Windows 10 Pro (Version 23H2 Build 22631.3672)

I have tried to follow the same command structure - but it doesn't seem to be working correctly. Also the 'Pause' command doesn't halt the output at the end so that the actions of Robocopy can be checked. With the two Windows 10 machines, Pause works as described above.

So, any ideas what I am doing wrong?

Is the Windows 11 implementation of Robocopy different to that of Windows 10 and this is why the 'Pause' command isn't working as it does on the other machines?

Sample command line below. Laptop's SSD is Drive C:, the SD Card is Drive D:

1717508718410.png

A command window opens VERY briefly and disappear and no files are copied across to the SD card.

Art

Can't figure out how to stop the DCOPY portion being turned into a smiley face [how do you use code flags in a post?]
 
Windows Build/Version
Version 23H2 Build 22631.3672
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro 23H2 Build 22631
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad T495s
    CPU
    AMD Ryzen 7Pro 3700U
    Memory
    16Gb
    Graphics Card(s)
    Radion Vega 10 Mobile 2Gb
    Screen Resolution
    1920 x 1080
    Hard Drives
    SK Hynix 2280 m.2 SSD, 512Gb or Crucial T500 m.2 SSD, 1Tb
    Internet Speed
    380 Mbps Fibre
Is this command running elevated as admin?
 

My Computer

System One

  • OS
    Windows 11 PRO / Windows Server 2016 Essentials
Not sure.

Don't think it is an elevated command on either of the two W10 machines (which runs Robocopy as a batch file without any problems)

Tried right-clicking the .bat file and 'Run as Administrator' but didn't make any difference.

A very brief 'flash' of the command window (as before) and nothing copied to the SD card.

Art
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro 23H2 Build 22631
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad T495s
    CPU
    AMD Ryzen 7Pro 3700U
    Memory
    16Gb
    Graphics Card(s)
    Radion Vega 10 Mobile 2Gb
    Screen Resolution
    1920 x 1080
    Hard Drives
    SK Hynix 2280 m.2 SSD, 512Gb or Crucial T500 m.2 SSD, 1Tb
    Internet Speed
    380 Mbps Fibre
Okay, so I tried that link but didn't do the final step of deleting the

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.bat registry key
(in case something else broke).

I then tried the following .bat file (omitting the quotes around the destination):
1717521439668.png
Which worked, including the pause at the end!

So I then tried (including the quotes around the destination):
1717521521810.png
Which also worked *shrugs*. As far as I can see, this is the SAME as the commands I originally tried!

So now to try the other folders I want backing up!

Art
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 Build 22631
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad T495s
    CPU
    AMD Ryzen 7Pro 3700U
    Memory
    16Gb
    Graphics Card(s)
    Radion Vega 10 Mobile 2Gb
    Screen Resolution
    1920 x 1080
    Hard Drives
    SK Hynix 2280 m.2 SSD, 512Gb or Crucial T500 m.2 SSD, 1Tb
    Internet Speed
    380 Mbps Fibre
Art,

Your latest post uses the switch
/XJ
whilst your first post used
/XJ/
[which I think would cause a RoboCopy crash, hence the pause line having no effect, but have not yet tested].
[which causes a RoboCopy crash, hence the pause line having no effect].

There need be no difference between your Windows 10 & Windows 11 RoboCopy commands other than adjusting for any changes you might have made to the relevant folder paths.

I don't see you around in TenForums anymore and don't know if you saw this -
RoboCopy -DST -FFT -NDL - my post #17 - TenForums
I found the additional switches, /DST /FFT /NDL, to be very helpful.


All the best,
Denis
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
Art,

Your latest post uses the switch
/XJ
whilst your first post used
/XJ/
[which I think would cause a RoboCopy crash, hence the pause line having no effect, but have not yet tested].
[which causes a RoboCopy crash, hence the pause line having no effect].

There need be no difference between your Windows 10 & Windows 11 RoboCopy commands other than adjusting for any changes you might have made to the relevant folder paths.

I don't see you around in TenForums anymore and don't know if you saw this -
RoboCopy -DST -FFT -NDL - my post #17 - TenForums
I found the additional switches, /DST /FFT /NDL, to be very helpful.


All the best,
Denis
Ahh, good spot Denis! Kudos!

Didn't notice that!

Art
 

My Computer

System One

  • OS
    Windows 11 Pro 23H2 Build 22631
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad T495s
    CPU
    AMD Ryzen 7Pro 3700U
    Memory
    16Gb
    Graphics Card(s)
    Radion Vega 10 Mobile 2Gb
    Screen Resolution
    1920 x 1080
    Hard Drives
    SK Hynix 2280 m.2 SSD, 512Gb or Crucial T500 m.2 SSD, 1Tb
    Internet Speed
    380 Mbps Fibre
Back
Top Bottom