Windows 10: incorrect xcopy syntax can anyone tell me what i did

Discus and support incorrect xcopy syntax can anyone tell me what i did in Windows 10 Backup and Restore to solve the problem; instead of using this command xcopy source destination /s i used xcopy /s source destination the source is a folder which wasn't created on the... Discussion in 'Windows 10 Backup and Restore' started by hmazuji, Aug 29, 2019.

  1. hmazuji Win User

    incorrect xcopy syntax can anyone tell me what i did


    instead of using this command
    xcopy source destination /s
    i used
    xcopy /s source destination

    the source is a folder which wasn't created on the destination. however, the xcopy command ran. i finally stopped the process using cntr c. please tell me what i did


    incorrect xcopy syntax can anyone tell me what i did [​IMG]


    :)
     
    hmazuji, Aug 29, 2019
    #1
  2. tcebob Win User

    Xcopy syntax for multiple source directories


    Very good, I will use it.

    In cmd, xcopy help states "source Specifies the file(s) to copy." but does not detail how to list them.

    is the squiggle in %%~a intentional or a typo?
     
    tcebob, Aug 29, 2019
    #2
  3. Private Win User
    Xcopy syntax for multiple source directories


    the above syntax is to be used in a batch file.

    here's a single liner for cmd:

    Code:
    Code:
    for %a in ("C:\Directory1" "C:\Directory2") do (xcopy /s /d "%~a" "H:\DestinationDirectory")
    yes, the squiggle is intentional, it's for a short and long pathnames element.
     
    Private, Aug 29, 2019
    #3
  4. Private Win User

    incorrect xcopy syntax can anyone tell me what i did

    Xcopy syntax for multiple source directories


    the /d switch is for date. if not specify, only the newer files will be copied.

    You can try the single line syntax above, just double the percent sign (%a to %%a) if you wish to create a batch file.
     
    Private, Aug 29, 2019
    #4
Thema:

incorrect xcopy syntax can anyone tell me what i did

Loading...
  1. incorrect xcopy syntax can anyone tell me what i did - Similar Threads - incorrect xcopy syntax

  2. Can anyone tell me what this means?

    in Windows 10 Gaming
    Can anyone tell me what this means?: I just installed and also updated windows on this PC, and after the PC finishes booting this notification pops up a few minutes later, can anyone tell me what this means?...
  3. Can anyone tell me what this means?

    in Windows 10 BSOD Crashes and Debugging
    Can anyone tell me what this means?: I just installed and also updated windows on this PC, and after the PC finishes booting this notification pops up a few minutes later, can anyone tell me what this means?...
  4. Can anyone tell me what this means?

    in Windows 10 Software and Apps
    Can anyone tell me what this means?: I just installed and also updated windows on this PC, and after the PC finishes booting this notification pops up a few minutes later, can anyone tell me what this means?...
  5. Can anyone tell me what this is?...

    in Windows 10 Gaming
    Can anyone tell me what this is?...: I believe its making my games crash at random times. I've done everything i can think of to stop the black screens mid game. So I started going through the event viewer to look at what is showing up around the time it black screens out and me having to reboot the system....
  6. Can anyone tell me what this is?...

    in Windows 10 Software and Apps
    Can anyone tell me what this is?...: I believe its making my games crash at random times. I've done everything i can think of to stop the black screens mid game. So I started going through the event viewer to look at what is showing up around the time it black screens out and me having to reboot the system....
  7. Can anyone tell me what this key is?

    in Windows 10 Gaming
    Can anyone tell me what this key is?: weird reg key called HKEY_CLASSES_ROOT\GamesConfigServer.Cat1 https://answers.microsoft.com/en-us/windows/forum/all/can-anyone-tell-me-what-this-key-is/0367bf7f-4268-496b-af45-5a69b2c4c4c9
  8. Can anyone tell me what this key is?

    in Windows 10 Software and Apps
    Can anyone tell me what this key is?: weird reg key called HKEY_CLASSES_ROOT\GamesConfigServer.Cat1 https://answers.microsoft.com/en-us/windows/forum/all/can-anyone-tell-me-what-this-key-is/0367bf7f-4268-496b-af45-5a69b2c4c4c9
  9. Can anyone tell me what this is?

    in Windows 10 BSOD Crashes and Debugging
    Can anyone tell me what this is?: I saw this on the top left of my screen on the regular desktop part with no windows opened and I can move it around with my cursor but that’s it, don’t know what it is please help me...
  10. Can Anyone tell me what IndigoJunoIQV.exe is?

    in AntiVirus, Firewalls and System Security
    Can Anyone tell me what IndigoJunoIQV.exe is?: I just upgraded to windows 10. I was doing a scan with house call online and it found IndigoJunoIQV manufacture unknown in msconfig/system configuration but it could not remove it. I have searched the net and no search results come up for that. I ran windows defenders and it...