more dos switches not working (1 Viewer)

conception_native_0123

Well-known member
Local time
Today, 06:21
Joined
Mar 13, 2021
Messages
1,834
since my accent has been discovered, I will talk regularly....

I attached a txt that I am keeping notes on robocopy. what i'm looking to do is use the /XO switch and apply it to all files in all subdirs. but, when I run this code in a bat file...
Code:
robocopy c:\1 c:\2 /XO /E
....files with newer modified stamps in the following subdirs are not copied from their source subdirs to the target subdirs. can someone tell me why? thanks.

c:\1\a
c:\1\b
c:\1\c

here are some example files I have in the source dirs, the equivalent files in the target dirs, and all the stamps that they have in both subdirs that are skipped:

c:\1\a (5/14/2021 4:33am) => c:\2\a (5/4/2021 11:23am)
c:\1\b (5/13/2021 2:29pm) => c:\2\b (5/7/2021 4:00am)
c:\1\c (5/13/2021 2:29pm) => c:\2\c (2/14/2021 9:22am)

all the files in the "c:\1\..." subdirs should be copied, but they are not.
 

Attachments

  • robocopy.txt
    195 bytes · Views: 294

Jon

Access World Site Owner
Staff member
Local time
Today, 12:21
Joined
Sep 28, 1999
Messages
7,384
DOS was made my corporations which are inherently evil. Are you with the corporations or against them?
 

conception_native_0123

Well-known member
Local time
Today, 06:21
Joined
Mar 13, 2021
Messages
1,834
Are you with the corporations or against them?

i have agreement with doc man, jon. why is this question "productive"? ha ha ha. I am BOTH *with* and *against*. I am WITH them as a relevant source for the money society needs to survive. I am AGAINST them with regard to their greed, which always gets out of control whenever they garner any sort of growth spurt whatsoever. Especially if their customer base ends up being the ignorant masses.

does that answer you question jon?
 

Jon

Access World Site Owner
Staff member
Local time
Today, 12:21
Joined
Sep 28, 1999
Messages
7,384
Kind of like good and evil. Use both when it suits. Although does the good book not suggest to follow a righteous path?
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 06:21
Joined
Feb 28, 2001
Messages
27,140
Because /XO is an "exclude" rather than "include" option, try using reversed logic and apply the /XN option (as an experiment.)
 

conception_native_0123

Well-known member
Local time
Today, 06:21
Joined
Mar 13, 2021
Messages
1,834
i might have to do that doc. i can't seem to find explicit answer so experiments might be all that i can do. i'll let you all know what i get. thanks. the reason i ask is because XO DOES work in some cases. remember my last thread? it got solved!
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 06:21
Joined
Feb 28, 2001
Messages
27,140
The biggest problem is remembering that the /Xx options are EXCLUSIONS, not INCLUSIONS - so in some cases I would expect selection logic to be totally reversed.
 

isladogs

MVP / VIP
Local time
Today, 12:21
Joined
Jan 14, 2017
Messages
18,209
Just when it seemed to be safe to go back in the water....
I'm getting a serious case of deja vu...all over again.🤐
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 06:21
Joined
Feb 28, 2001
Messages
27,140
Were you hoping for some vu ja de? The feeling that something is totally unfamiliar?
 

isladogs

MVP / VIP
Local time
Today, 12:21
Joined
Jan 14, 2017
Messages
18,209
Ha! I hadn't read any threads by this member until now but immediately the old patterns were visible. A quick trumpet blast of recognition
 

NauticalGent

Ignore List Poster Boy
Local time
Today, 07:21
Joined
Apr 27, 2015
Messages
6,321
Just when it seemed to be safe to go back in the water....
I'm getting a serious case of deja vu...all over again.🤐
I miss the High Noon Moderator and the itchy finger he had on the hair-trigger-ban-button for situations just like these...
 

Users who are viewing this thread

Top Bottom