Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.comp.os.windows-11 > #18061 > unrolled thread
| Started by | T <T@invalid.invalid> |
|---|---|
| First post | 2025-03-29 17:03 -0700 |
| Last post | 2025-04-01 02:01 -0700 |
| Articles | 20 on this page of 80 — 16 participants |
Back to article view | Back to alt.comp.os.windows-11
what is the fastest command line copy? T <T@invalid.invalid> - 2025-03-29 17:03 -0700
Re: what is the fastest command line copy? Paul <nospam@needed.invalid> - 2025-03-29 20:43 -0400
Re: what is the fastest command line copy? T <T@invalid.invalid> - 2025-03-29 17:49 -0700
Re: what is the fastest command line copy? Andy Burns <usenet@andyburns.uk> - 2025-03-30 06:55 +0000
Re: what is the fastest command line copy? Stan Brown <the_stan_brown@fastmail.fm> - 2025-03-31 12:08 -0700
Re: what is the fastest command line copy? Andy Burns <usenet@andyburns.uk> - 2025-03-31 20:35 +0100
Re: what is the fastest command line copy? Stan Brown <the_stan_brown@fastmail.fm> - 2025-03-31 13:35 -0700
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
Page 1 of 4 [1] 2 3 4 Next page →
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2025-03-29 17:03 -0700 |
| Subject | what is the fastest command line copy? |
| Message-ID | <vsa1o9$2hf7l$1@dont-email.me> |
Hi All, It use to be robo copy for a mass copy of a directory. Does that still exist? Or is there something better? Many thanks, -T
[toc] | [next] | [standalone]
| From | Paul <nospam@needed.invalid> |
|---|---|
| Date | 2025-03-29 20:43 -0400 |
| Message-ID | <vsa442$2msgk$1@dont-email.me> |
| In reply to | #18061 |
On Sat, 3/29/2025 8:03 PM, T wrote:
> Hi All,
>
> It use to be robo copy for a mass copy of a
> directory. Does that still exist? Or is
> there something better?
>
> Many thanks,
> -T
>
Robocopy is a standard part of the OS now, and is maintained.
It started out as a hobby project.
D:\ robocopy /? <=== start a Command Prompt, use this format, for *full* help
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
It's still there.
For a data directory in your own homedir, it would do
a good job. There can be other scenarios were I would
not recommend this approach. But a simple data directory,
there are going to be a ton of approaches that would
work. And robocopy has more than the normal number
of switches, on the command line.
I am not aware of a windows utility, that can tell you
how "close" two structures are to one another. Most of the
time, the differences after a copy, are in the security
dimension. For example, if the copied tree relies on
"inheritance" of a permission from a structure above
itself, you would need for the copy routine to "convert"
the security settings so they no longer relied on
inheritance.
And this is one way we tell "pros" at IT work, from
wannabies. It's their treatment and understanding
of permissions. When they quote you a recipe for a
piece of work, you will spot commands that expose
their knowledge of security. "I smash the permissions
then I put the permissions back." That's the part of
one of their scripts, that stands out from a script
someone in this group would write as a lark. Like
if I write you a script, it says "copy a b" and I
pretend that's the only work required :-) But that
might not always be sufficient for you to get
your "cert". The security settings could be
"quite wrong", depending on how careless you are.
On Linux, we do "cp -Rp a b", and at least that
command has a "preserve" option. Robocopy has that
too. It's a start. Note - the following command
used to be used on two FAT32 devices, to give some
idea how long ago I was using this, and the COPYALL
isn't really meant for FAT32 anyway.
robocopy Y:\ F:\ /mir /COPYALL /dcopy:t /XJ /r:3 /w:2 /zb /np /tee /v /log:robocopy_y_to_f.log
COPYALL equals /COPY:DATSOU and DATSOU is...
D=Data
A=Attributes
T=Timestamps
[ X=Skip alt data streams (X ignored if /B or /ZB) ]
S=Security=NTFS ACLs
O=Owner info
U=aUditing info
Paul
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2025-03-29 17:49 -0700 |
| Message-ID | <vsa4e3$2hf7m$1@dont-email.me> |
| In reply to | #18062 |
On 3/29/25 5:43 PM, Paul wrote: > On Sat, 3/29/2025 8:03 PM, T wrote: >> Hi All, >> >> It use to be robo copy for a mass copy of a >> directory. Does that still exist? Or is >> there something better? >> >> Many thanks, >> -T >> > > Robocopy is a standard part of the OS now, and is maintained. > > It started out as a hobby project. > > D:\ robocopy /? <=== start a Command Prompt, use this format, for *full* help > > ------------------------------------------------------------------------------- > ROBOCOPY :: Robust File Copy for Windows > ------------------------------------------------------------------------------- > > It's still there. > > For a data directory in your own homedir, it would do > a good job. There can be other scenarios were I would > not recommend this approach. But a simple data directory, > there are going to be a ton of approaches that would > work. And robocopy has more than the normal number > of switches, on the command line. > > I am not aware of a windows utility, that can tell you > how "close" two structures are to one another. Most of the > time, the differences after a copy, are in the security > dimension. For example, if the copied tree relies on > "inheritance" of a permission from a structure above > itself, you would need for the copy routine to "convert" > the security settings so they no longer relied on > inheritance. > > And this is one way we tell "pros" at IT work, from > wannabies. It's their treatment and understanding > of permissions. When they quote you a recipe for a > piece of work, you will spot commands that expose > their knowledge of security. "I smash the permissions > then I put the permissions back." That's the part of > one of their scripts, that stands out from a script > someone in this group would write as a lark. Like > if I write you a script, it says "copy a b" and I > pretend that's the only work required :-) But that > might not always be sufficient for you to get > your "cert". The security settings could be > "quite wrong", depending on how careless you are. > > On Linux, we do "cp -Rp a b", and at least that > command has a "preserve" option. Robocopy has that > too. It's a start. Note - the following command > used to be used on two FAT32 devices, to give some > idea how long ago I was using this, and the COPYALL > isn't really meant for FAT32 anyway. > > robocopy Y:\ F:\ /mir /COPYALL /dcopy:t /XJ /r:3 /w:2 /zb /np /tee /v /log:robocopy_y_to_f.log > > COPYALL equals /COPY:DATSOU and DATSOU is... > > D=Data > A=Attributes > T=Timestamps > [ X=Skip alt data streams (X ignored if /B or /ZB) ] > S=Security=NTFS ACLs > O=Owner info > U=aUditing info > > Paul Thank you!
[toc] | [prev] | [next] | [standalone]
| From | Andy Burns <usenet@andyburns.uk> |
|---|---|
| Date | 2025-03-30 06:55 +0000 |
| Message-ID | <m4s87oFgsf0U2@mid.individual.net> |
| In reply to | #18062 |
On 30/03/2025 00:43, Paul wrote: > Robocopy is a standard part of the OS now, and is maintained. > > It started out as a hobby project. > > It's still there. It's great, but they haven't removed the bear-traps ...
[toc] | [prev] | [next] | [standalone]
| From | Stan Brown <the_stan_brown@fastmail.fm> |
|---|---|
| Date | 2025-03-31 12:08 -0700 |
| Message-ID | <MPG.4254881637f34da99903d0@news.individual.net> |
| In reply to | #18069 |
On Sun, 30 Mar 2025 06:55:47 +0000, Andy Burns wrote: > > On 30/03/2025 00:43, Paul wrote: > > > Robocopy is a standard part of the OS now, and is maintained. > > > It's great, but they haven't removed the bear-traps ... By which you mean what, pray tell? -- Stan Brown, Tehachapi, California, USA https://BrownMath.com/ Shikata ga nai...
[toc] | [prev] | [next] | [standalone]
| From | Andy Burns <usenet@andyburns.uk> |
|---|---|
| Date | 2025-03-31 20:35 +0100 |
| Message-ID | <m5093iF5p39U1@mid.individual.net> |
| In reply to | #18125 |
Stan Brown wrote: > Andy Burns wrote: > >> Paul wrote: >> >>> Robocopy is a standard part of the OS now, and is maintained. >>> >> It's great, but they haven't removed the bear-traps ... > > By which you mean what, pray tell? you've seen Paul mention the main one /mir forgetting to set the retry count and retry timeout, can mean it wastes huge amounts of time doing nothing I probably forgot others,
[toc] | [prev] | [next] | [standalone]
| From | Stan Brown <the_stan_brown@fastmail.fm> |
|---|---|
| Date | 2025-03-31 13:35 -0700 |
| Message-ID | <MPG.42549c73472ac4b49903d3@news.individual.net> |
| In reply to | #18128 |
On Mon, 31 Mar 2025 20:35:10 +0100, Andy Burns wrote: > > Stan Brown wrote: > > > Andy Burns wrote: > > > >> Paul wrote: > >> > >>> Robocopy is a standard part of the OS now, and is maintained. > >>> > >> It's great, but they haven't removed the bear-traps ... > > > > By which you mean what, pray tell? > > you've seen Paul mention the main one /mir > > forgetting to set the retry count and retry timeout, can mean it wastes > huge amounts of time doing nothing > > I probably forgot others, Sure sounds like you're blaming the software for mistakes by the user. "Bear-traps" seems more than a little unfair. There are good reasons for the existence of /mir and setting retry, plus any others you might think of, and it's not the software's fault if the user screws up. Once again, somebody who uses an untested set of options with robocopy, without first running it with those options and /L and carefully examining the log to make sure it's doing what is desired, is just asking for trouble. -- Stan Brown, Tehachapi, California, USA https://BrownMath.com/ Shikata ga nai...
[toc] | [prev] | [next] | [standalone]
| From | Dual Boot Windows <invalid@invalid.invalid> |
|---|---|
| Date | 2025-03-31 02:12 +0100 |
| Message-ID | <vsctt2$1c3kf$1@paganini.bofh.team> |
| In reply to | #18061 |
On 30/03/2025 00:03, T wrote: > Hi All, > > It use to be robo copy for a mass copy of a > directory. Does that still exist? Or is > there something better? > > Many thanks, > -T > You can use FastCopy GUI program. It has a cmd line built in but Windows users prefer GUI version. <https://fastcopy.jp/> There is a 2 years' old video explaing how to use FastCopy. <https://youtu.be/jkfZoH7QHhs?si=b7_UwTX4RzOrrnbd> Good luck and keep posting comments on YouTube for more videos like this to be produced.
[toc] | [prev] | [next] | [standalone]
| From | Steve Hayes <hayesstw@telkomsa.net> |
|---|---|
| Date | 2025-03-31 04:43 +0200 |
| Message-ID | <050kujpf36f33i4hspur5jg286m5r7fvn3@4ax.com> |
| In reply to | #18085 |
On Mon, 31 Mar 2025 02:12:05 +0100, Dual Boot Windows <invalid@invalid.invalid> wrote: >On 30/03/2025 00:03, T wrote: >> Hi All, >> >> It use to be robo copy for a mass copy of a >> directory. Does that still exist? Or is >> there something better? >> >> Many thanks, >> -T >> > > >You can use FastCopy GUI program. It has a cmd line built in but Windows >users prefer GUI version. > ><https://fastcopy.jp/> > Does xcopy/xxcopy still work? I want something that works with batch files to automate transfer of data files from desktop to laptop & vice versa via USB flash drive -- Steve Hayes from Tshwane, South Africa Web: http://www.khanya.org.za/stevesig.htm Blog: http://khanya.wordpress.com E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
[toc] | [prev] | [next] | [standalone]
| From | Paul <nospam@needed.invalid> |
|---|---|
| Date | 2025-03-31 00:47 -0400 |
| Message-ID | <vsd6ok$3cut2$1@dont-email.me> |
| In reply to | #18086 |
On Sun, 3/30/2025 10:43 PM, Steve Hayes wrote:
> On Mon, 31 Mar 2025 02:12:05 +0100, Dual Boot Windows
> <invalid@invalid.invalid> wrote:
>
>> On 30/03/2025 00:03, T wrote:
>>> Hi All,
>>>
>>> It use to be robo copy for a mass copy of a
>>> directory. Does that still exist? Or is
>>> there something better?
>>>
>>> Many thanks,
>>> -T
>>>
>>
>>
>> You can use FastCopy GUI program. It has a cmd line built in but Windows
>> users prefer GUI version.
>>
>> <https://fastcopy.jp/>
>>
>
> Does xcopy/xxcopy still work?
>
> I want something that works with batch files to automate transfer of
> data files from desktop to laptop & vice versa via USB flash drive
>
Robocopy is built into the OS.
For WinXP, you have to download a copy, as at the time WinXP
was written, Robocopy was a hobby program. But on any later
OS (Vista+) , it is a built-in part of the Windows OS and
supported by Microsoft.
For help, start a cmd.exe window, then enter
robocopy /?
and that explains the options.
Robocopy is a directory copy program, that can at its smallest,
copy a single file. But it can also copy all the files from
one partition to another partition. It can notch out certain kinds
of files, that would stop other copy programs from finishing a run.
It's also a *dangerous* program. If you mirror (/mir) an empty folder to
a full folder, the full folder can be erased. It has been used, on purpose,
to erase entire partitions (that could not otherwise be erased).
robocopy Y:\ F:\ /mir /COPY:DATSOU /dcopy:t /XJ /r:3 /w:2 /zb /np /tee /v /log:robocopy_y_to_f.log
Via /XD dirs , it can avoid copying a section of a file tree (exclude function).
You can also define an explicit list of items to copy via /job:filename
filename
--------
/IF
file1.ext
file2.ext
file3.ext
where the /IF stands for Include File. I expect there are
details and limitations that are important, or at least,
a need to pretty carefully format the pathname with respect to
the root folder. Those look like relative pathnames with
respect to the original source directory name.
If you're skillful, I would think no fancy .bat looping constructs
would be needed to get Robocopy to do a job of work.
My needs for the thing, were always pretty simple. I don't use it
all that often any more.
If you need to do a "hot" copy, I don't think it creates a
VSS shadow for you, and you would use vssadmin to make a shadow
copy first, assign a drive letter, then robocopy that, then
drop the shadow copy when your copying attempt is finished.
Normally, that would arise if trying to copy the entire C:\
drive and I do not recommend it for performing that function.
Very few fluffy utilities, are suited to verbatim C: copy. To
copy the C: partition, use backup/restore or partition clone
software, which work at a different level, and don't care about
filesystem details because they work closer to the PHY level.
Working at the file system level is always perilous, in terms
of getting all the details right. "Data partitions" are not
normally too bad, except if you're dealing with a twit who
has prepared the partition and put booby-traps in it. Never
use an XCOPY against a forensic opponent. Regular copying
is only appropriate for file trees where no "tricks" have
been used.
Paul
[toc] | [prev] | [next] | [standalone]
| From | Steve Hayes <hayesstw@telkomsa.net> |
|---|---|
| Date | 2025-03-31 11:06 +0200 |
| Message-ID | <anmkuj5chhak0acvhl3a906mbnj0cjd775@4ax.com> |
| In reply to | #18087 |
On Mon, 31 Mar 2025 00:47:15 -0400, Paul <nospam@needed.invalid> wrote: >On Sun, 3/30/2025 10:43 PM, Steve Hayes wrote: >> Does xcopy/xxcopy still work? >> >> I want something that works with batch files to automate transfer of >> data files from desktop to laptop & vice versa via USB flash drive >> > >Robocopy is built into the OS. > >For WinXP, you have to download a copy, as at the time WinXP >was written, Robocopy was a hobby program. But on any later >OS (Vista+) , it is a built-in part of the Windows OS and >supported by Microsoft. Thanks very much. -- Steve Hayes from Tshwane, South Africa Web: http://www.khanya.org.za/stevesig.htm Blog: http://khanya.wordpress.com E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
[toc] | [prev] | [next] | [standalone]
| From | Stan Brown <the_stan_brown@fastmail.fm> |
|---|---|
| Date | 2025-03-31 12:10 -0700 |
| Message-ID | <MPG.4254888260f426149903d1@news.individual.net> |
| In reply to | #18087 |
On Mon, 31 Mar 2025 00:47:15 -0400, Paul wrote: > It's also a *dangerous* program. If you mirror (/mir) an empty folder to > a full folder, the full folder can be erased. > Hence the advice to run it once with the /L option when using any combination of options that you're not 100% confident about. -- Stan Brown, Tehachapi, California, USA https://BrownMath.com/ Shikata ga nai...
[toc] | [prev] | [next] | [standalone]
| From | "Jonathan N. Little" <lws4art@gmail.com> |
|---|---|
| Date | 2025-04-01 18:56 -0400 |
| Message-ID | <vshque$8k55$1@dont-email.me> |
| In reply to | #18087 |
Paul wrote: > It's also a *dangerous* program. If you mirror (/mir) an empty folder to > a full folder, the full folder can be erased. It has been used, on purpose, > to erase entire partitions (that could not otherwise be erased). Been there and *almost* done that. Since its command line args managed to be less intuitive than rsync, what a feat! -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
[toc] | [prev] | [next] | [standalone]
| From | Newyana2 <newyana@invalid.nospam> |
|---|---|
| Date | 2025-03-31 08:21 -0400 |
| Message-ID | <vse1av$8pa5$1@dont-email.me> |
| In reply to | #18086 |
On 3/30/2025 10:43 PM, Steve Hayes wrote: > > I want something that works with batch files to automate transfer of > data files from desktop to laptop & vice versa via USB flash drive > This may not be what you want, but I keep a VBScript on my desktop for copying. I use it for three reasons: * Normal Windows copy will stop if it hits a problem. * Windows 10 seems to be faulty, typically not copying a folder that already exists. I have to delete the old folder by hand or the copy/replace doesn't work. * Windows doesn't provide an option to only copy over newer files. So I wrote a script onto which I can drop any folder, then enter another folder path, and copy all files that don't exist on B from A. It will keep going if a copy fails. I use it especially for redundant backup. If you know a bit of scripting you could also do things like compare last-modified dates, copy over from A even if existing on B, etc. The script then writes a list of what was copied, which of course is optional. Speed? I'd guess that depends on the hardware. VBS and FileSystemObject are not fast, but there's very little calculation here. The actual script work is minimal. USB is generally quite slow writing TO the stick, especially with USB2, so that would likely be the bottleneck.
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@is.invalid> |
|---|---|
| Date | 2025-03-31 15:47 +0200 |
| Message-ID | <vse6e0$e3ib$1@dont-email.me> |
| In reply to | #18102 |
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.
> * Windows 10 seems to be faulty, typically not copying a folder that
> already exists. I have to delete the old folder by hand or the
> copy/replace doesn't work.
an ownership problem ?
Regards,
Rudy Wieser
[toc] | [prev] | [next] | [standalone]
| From | Newyana2 <newyana@invalid.nospam> |
|---|---|
| Date | 2025-03-31 10:54 -0400 |
| Message-ID | <vsea99$i2o2$1@dont-email.me> |
| In reply to | #18105 |
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.
>> * Windows 10 seems to be faulty, typically not copying a folder that
>> already exists. I have to delete the old folder by hand or the
>> copy/replace doesn't work.
>
> an ownership problem ?
>
No. I don't know what it is. I'm running as admin with UAC
and LUA disabled. These are files copied to data partitions.
In fact, my main data partitions are formatted FAT32 to avoid
such complications. But I've found repeatedly, when dropping
a folder into a data partition that already has that folder, I get
no popup asking whether I want to overwrite. Then I check the
existing folder and the new files are not there. So I now delete
the existing folder first, then drop the new folder onto the window.
[toc] | [prev] | [next] | [standalone]
| From | Andy Burns <usenet@andyburns.uk> |
|---|---|
| Date | 2025-03-31 15:59 +0100 |
| Message-ID | <m4vov7F40grU1@mid.individual.net> |
| In reply to | #18106 |
Newyana2 wrote: > R.Wieser wrote: > >> 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. That's why someone suggested robocopy, it can do that.
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@is.invalid> |
|---|---|
| Date | 2025-03-31 17:32 +0200 |
| Message-ID | <vsecjc$kfh4$2@dont-email.me> |
| In reply to | #18106 |
Newyana2, > That's not quite what I want. I usually want to just copy > files that don't already exist in the redundant backup. Ah yes, I misunderstood what you wanted. > So that I can send 18 missing photos to the redundant photo > folder without also copying over the other 1,200. That means that if you change a file (photo) on the source the target will keep holding the old one ... Not really what I expect from a backup. :-| But you could than still use xcopy. As long as the files on the source are same/older than on the target it won't try to copy them. > 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. I have no problem with repeatedly typing a command. But yes, when I have to do multiple things in the same order I use Batch. But when string manipulation or something complex is called for I use vbscript (OS=XP) myself (with a file-extension causings cscript to be used). >> an ownership problem ? > > No. I don't know what it is. ... > when dropping a folder into a data partition that already has that folder, > I get no popup asking whether I want to overwrite. Yeah, thats odd. Regards, Rudy Wieser
[toc] | [prev] | [next] | [standalone]
| From | Steve Hayes <hayesstw@telkomsa.net> |
|---|---|
| Date | 2025-04-01 07:00 +0200 |
| Message-ID | <ljsmujdighbuvcltfh5kihbmnqaqqohern@4ax.com> |
| In reply to | #18106 |
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? -- Steve Hayes from Tshwane, South Africa Web: http://www.khanya.org.za/stevesig.htm Blog: http://khanya.wordpress.com E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
[toc] | [prev] | [next] | [standalone]
| From | "R.Wieser" <address@is.invalid> |
|---|---|
| Date | 2025-04-01 09:11 +0200 |
| Message-ID | <vsg3j0$2gn58$1@dont-email.me> |
| In reply to | #18139 |
Steve, > I've hitherto uased batch files, which are a form of scripting. Batch files work well enough for most "stack a number of commands" stuff. It however is a pain in the behind when whating to do any kind of string (filename) handling (due to having several escape characters and its continuous re-parsing of arguments) > Is there a better tool to use for this? That fully depends on what your goal is. As said, using it to execute a (number of) program(s) with fixed or commandline arguments (%1 ... %9) it will mostly work. Not so much if you need to do something with those commandline arguments. IOW, in that case /almost anything/ (with a concept of variables) will work better. Perhaps PowerShell has string-handling too (never used it) ? Regards, Rudy Wieser
[toc] | [prev] | [next] | [standalone]
Page 1 of 4 [1] 2 3 4 Next page →
Back to top | Article view | alt.comp.os.windows-11
csiph-web