Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-10 > #183135
| From | Paul <nospam@needed.invalid> |
|---|---|
| Newsgroups | alt.comp.os.windows-11, alt.comp.os.windows-10 |
| Subject | Re: what is the fastest command line copy? |
| Date | 2025-04-01 03:44 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <vsg5ht$2ir3e$1@dont-email.me> (permalink) |
| References | (2 earlier) <050kujpf36f33i4hspur5jg286m5r7fvn3@4ax.com> <vse1av$8pa5$1@dont-email.me> <vse6e0$e3ib$1@dont-email.me> <vsea99$i2o2$1@dont-email.me> <ljsmujdighbuvcltfh5kihbmnqaqqohern@4ax.com> |
Cross-posted to 2 groups.
On Tue, 4/1/2025 1:00 AM, Steve Hayes wrote:
> On Mon, 31 Mar 2025 10:54:31 -0400, Newyana2 <newyana@invalid.nospam>
> wrote:
>
>> On 3/31/2025 9:47 AM, R.Wieser wrote:
>>> Newyana2,
>>>
>>>> * Windows doesn't provide an option to only copy
>>>> over newer files.
>>>
>>> I don't know if Win10 still has XCopy, but it seems that it can do that :
>>>
>>> /D:m-d-y Copies files changed on or after the specified date.
>>> If no date is given, copies only those files whose
>>> source time is newer than the destination time.
>>>
>> That's not quite what I want. I usually want to just copy
>> files that don't already exist in the redundant backup. That
>> was part of the reason for the script: So that I can send 18
>> missing photos to the redundant photo folder without also
>> copying over the other 1,200.
>>
>> For me, personally, life is too short for command line. I write
>> scripts so that next time I do the same thing it will be effortless.
>> But I know that some people prefer commandline. I was just putting
>> it out there. Script is vastly more flexible and easier once the
>> script is written. But not everyone wants to learn scripting.
>
> I've hitherto uased batch files, which are a form of scripting.
>
> Is there a better tool to use for this?
At first I considered writing an answer, but a list is a good
place to start a discussion. This list isn't even complete, unfortunately.
That means, for the people who wrote this answer, they had exactly
the same problem -- not enough collective expertise to write a good
answer.
https://en.wikipedia.org/wiki/Scripting_language
At work, any time you collaborate, the first problem is
finding a common language that everyone understands. For example,
as a joke, two of us selected Fortran, even though we knew it sucked
for the job, but like good engineers, you use whatever you've got
to make stuff. We couldn't just go on a lark and take a language
course for a week, and do the project.
They don't distinguish between things that are available
as an interactive shell, or run from a file as a "script".
Some of the items in that list, are scripting languages,
others are interactive shells that also script.
cmd.exe < hereis.bat # Feeding a script of sorts, to a shell instance, referred
# to in some environments, as a "hereis" approach.
Some shells for example, fork subshells when running individual
operating system commands.
Some of the items in a shell are "built-in" functions.
There is no "dir.exe" for example, which means "dir"
must be a built-in. Some shells will actually tell
you an item is a built-in. The first item here is a built-in,
the second item is an executable at OS level.
C:\> where dir
INFO: Could not find files for the given pattern(s).
C:\> where cmd
C:\Windows\System32\cmd.exe
C:\> where copy
INFO: Could not find files for the given pattern(s).
C:\> where move
INFO: Could not find files for the given pattern(s).
C:\> where net
C:\Windows\System32\net.exe
There are enough scripting languages, that if we in the newsgroup
sat down at a table, we might have nothing in common. One
person may be a Perl expert. Another does nothing but batchscript.
I own two Perl books... and have written three lines of Perl code :-)
At my work, *all* the hardware engineers wrote Perl scripts.
I was the exception (because my design was pretty simple and
didn't need it, all I did was a processor board). I've done
complex designs (300 ICs) without crutches :-) I did it all
the "hard way".
I happen to like AWK. It can make system calls, as well as
do text processing. But that's an acquired taste, like a
lot of scripting languages. It has some severe weaknesses.
It can take two hours to figure out how to sort something.
and the only way to stat() a file, is via an add-on, which
is why I'm not allowed to post any AWK scripts that need
stat(). Because then I would have to explain arcane recipes
for how you run the damn thing.
Bot others here will be adamant batchscript people, and
I don't intend on getting into any language wars.
If you're wondering why "someone just doesn't tell you what to use",
it's because some of have been through language wars, and
we know better, about how to behave. But that also makes it
harder for you to get started.
My folks at work, were very professional about it, even though
it wasn't their specialty. My first question, they answered it.
When I came back, they said "go down to the Computer Book Store
and buy a book, after you've read it, ask us your question again".
Which was the perfect advice. The idea is, after that,
you will only be asking "interesting" questions, and not
fundamental questions. I wouldn't answer the same way here,
but that's how you do it at work.
To get really good at scripting, you need a book. While
people here could write you a script, that isn't the best
educational material. But as an example, when I wanted to
learn Bourne Shell, we got some commercial software from
some company. It had a Bourne Shell installer file. Must
have been three thousand lines of code. It had just about
every Bourne trick known to man in it :-) I hugged that puppy,
because if I needed inspiration writing a Bourne shell
script, I would open that file and scroll through it,
looking for a "programming pattern" that explains the
best way to do it. That thing was better than a book,
because it had real patterns in it. But you're not
gifted a thing like that, too often.
Paul
Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: what is the fastest command line copy? Dual Boot Windows <invalid@invalid.invalid> - 2025-03-31 02:12 +0100
Re: what is the fastest command line copy? Steve Hayes <hayesstw@telkomsa.net> - 2025-03-31 04:43 +0200
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-03-31 00:47 -0400
Re: what is the fastest command line copy? Steve Hayes <hayesstw@telkomsa.net> - 2025-03-31 11:06 +0200
Re: what is the fastest command line copy? Stan Brown <the_stan_brown@fastmail.fm> - 2025-03-31 12:10 -0700
Re: what is the fastest command line copy? "Jonathan N. Little" <lws4art@gmail.com> - 2025-04-01 18:56 -0400
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-03-31 08:21 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-03-31 15:47 +0200
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-03-31 10:54 -0400
Re: what is the fastest command line copy? Andy Burns <usenet@andyburns.uk> - 2025-03-31 15:59 +0100
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-03-31 17:32 +0200
Re: what is the fastest command line copy? Steve Hayes <hayesstw@telkomsa.net> - 2025-04-01 07:00 +0200
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-01 09:11 +0200
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-01 03:44 -0400
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-04-01 09:26 -0400
Re: what is the fastest command line copy? Steve Hayes <hayesstw@telkomsa.net> - 2025-04-02 08:50 +0200
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-02 04:15 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-02 10:35 +0200
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-02 05:54 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-02 16:15 +0200
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-02 11:40 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-02 18:13 +0200
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-02 12:41 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-02 20:27 +0200
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-03 03:22 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-03 13:10 +0200
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-04-02 07:57 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-02 16:19 +0200
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-04-02 11:04 -0400
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-02 12:04 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-02 18:06 +0200
Re: what is the fastest command line copy? Frank Slootweg <this@ddress.is.invalid> - 2025-04-02 12:41 +0000
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-02 12:15 -0400
Re: what is the fastest command line copy? Frank Slootweg <this@ddress.is.invalid> - 2025-04-02 17:36 +0000
Re: what is the fastest command line copy? Stan Brown <the_stan_brown@fastmail.fm> - 2025-04-02 10:50 -0700
Re: what is the fastest command line copy? Steve Hayes <hayesstw@telkomsa.net> - 2025-04-03 05:24 +0200
Re: what is the fastest command line copy? Democrat <Democrat@invalid.invalid> - 2025-04-03 06:00 +0000
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-03 08:39 +0200
Re: what is the fastest command line copy? Steve Hayes <hayesstw@telkomsa.net> - 2025-04-03 15:55 +0200
Re: what is the fastest command line copy? Frank Slootweg <this@ddress.is.invalid> - 2025-04-03 15:06 +0000
Re: what is the fastest command line copy? Steve Hayes <hayesstw@telkomsa.net> - 2025-04-04 13:55 +0200
Re: what is the fastest command line copy? Frank Slootweg <this@ddress.is.invalid> - 2025-04-04 12:11 +0000
Re: what is the fastest command line copy? Don_from_AZ <djatechNOSPAM@comcast.net.invalid> - 2025-04-04 10:32 -0700
Re: what is the fastest command line copy? Steve Hayes <hayesstw@telkomsa.net> - 2025-04-05 05:20 +0200
Re: what is the fastest command line copy? T <T@invalid.invalid> - 2025-04-05 00:44 -0700
Re: what is the fastest command line copy? Daniel70 <daniel47@eternal-september.org> - 2025-04-06 20:20 +1000
Re: what is the fastest command line copy? "Kerr-Mudd, John" <admin@127.0.0.1> - 2025-04-06 21:15 +0100
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-04-04 08:49 -0400
Re: what is the fastest command line copy? Steve Hayes <hayesstw@telkomsa.net> - 2025-04-05 05:29 +0200
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-04-05 08:26 -0400
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-05 00:37 -0400
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-04-05 08:18 -0400
Re: what is the fastest command line copy? Char Jackson <none@none.invalid> - 2025-04-03 11:00 -0500
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-04-02 07:53 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-02 16:26 +0200
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-04-02 11:03 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-04-02 18:04 +0200
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-02 12:36 -0400
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-04-02 13:07 -0400
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-04-03 04:14 -0400
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-04-03 08:40 -0400
Re: what is the fastest command line copy? Stan Brown <the_stan_brown@fastmail.fm> - 2025-04-02 10:43 -0700
Re: what is the fastest command line copy? Char Jackson <none@none.invalid> - 2025-04-02 18:59 -0500
Re: what is the fastest command line copy? Stan Brown <the_stan_brown@fastmail.fm> - 2025-04-02 11:11 -0700
Re: what is the fastest command line copy? knuttle <keith_nuttle@yahoo.com> - 2025-03-31 10:59 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-03-31 17:26 +0200
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-03-31 13:05 -0400
Re: what is the fastest command line copy? "R.Wieser" <address@is.invalid> - 2025-03-31 20:18 +0200
Re: what is the fastest command line copy? Newyana2 <newyana@invalid.nospam> - 2025-03-31 14:43 -0400
Re: what is the fastest command line copy? Stan Brown <the_stan_brown@fastmail.fm> - 2025-03-31 13:40 -0700
Re: what is the fastest command line copy? T <T@invalid.invalid> - 2025-03-30 23:03 -0700
Re: what is the fastest command line copy? T <T@invalid.invalid> - 2025-03-30 23:43 -0700
Re: what is the fastest command line copy? T <T@invalid.invalid> - 2025-04-01 02:01 -0700
csiph-web