Search found 2429 matches
- 08 Feb 2021 14:44
- Forum: DOS Batch Forum
- Topic: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
- Replies: 550
- Views: 1924508
Re: JREPL.BAT v8.6 - regex text processor with support for text highlighting and alternate character sets
Converting utf-8 to utf-16 could be done with JREPL, but you would get much better performance with aGerman's CONVERT.exe . Its sole purpose is to convert text files from one encoding to another. Both utilities process only one file, so you would have to process an entire folder using a FOR loop eit...
- 05 Feb 2021 14:24
- Forum: DOS Batch Forum
- Topic: Batch Move Problem
- Replies: 2
- Views: 3000
Re: Batch Move Problem
That code won't quite work - the "_Text Versions" folder needs to be excluded as a source. And you can use ~dp to shorten the code a bit. for /d %%D in ("%userprofile%\Calibre Library\Book Summaries\*") do ( if "%%~nxD" neq "_Text Versions" move /y "%%~D\*.txt" "%~dpD_Text Versions" ) or maybe even ...
- 04 Feb 2021 06:41
- Forum: DOS Batch Forum
- Topic: rename failure
- Replies: 3
- Views: 3338
Re: rename failure
Note - You can use MOVE to rename a single file or folder. But you cannot use RENAME or REN to move a file or folder. REN or RENAME capability Rename one or more files or folders without moving them MOVE capability Move one or more files or folders to a new location, without changing the file or fol...
- 27 Jan 2021 16:11
- Forum: DOS Batch Forum
- Topic: How to use chained redirections?
- Replies: 24
- Views: 20286
Re: How to use chained redirections?
I actually cannot remember who has found it (earlier/first) or where to find it; i'm not sure - i guess it was someone here on dostips (but i cannot find the post, so it might be somewhere else... for example hidden in the MS C++ documentation). I originally discovered and documented the Microsoft ...
- 27 Jan 2021 15:20
- Forum: DOS Batch Forum
- Topic: How to get rid of the extra character ahead of the title
- Replies: 11
- Views: 8389
Re: How to get rid of the extra character ahead of the title
The ( is included in the resulting title if you use title(blah
- 26 Jan 2021 21:51
- Forum: DOS Batch Forum
- Topic: How does cmd.exe handle (or not handle) I/O errors?
- Replies: 2
- Views: 3070
Re: How does cmd.exe handle (or not handle) I/O errors?
Wonderful. Thanks penpen. That is definitely one of them, but it is much earlier than I expected. I'm pretty sure I have some more posts in a later thread (years later?) that revisit the subject. But the parent thread may not have been about I/O errors. I think I was investigating some inner working...
- 26 Jan 2021 20:30
- Forum: DOS Batch Forum
- Topic: How does cmd.exe handle (or not handle) I/O errors?
- Replies: 2
- Views: 3070
How does cmd.exe handle (or not handle) I/O errors?
StackOverflow has an interesting question that involves failed output to stderr because of redirection to stdin. https://superuser.com/q/1620933/109090 In my answer I talk about how failed writes to stderr immediately terminate (crash) the cmd.exe process. Somewhere on DosTips I have some posts that...
- 25 Jan 2021 07:17
- Forum: DOS Batch Forum
- Topic: SORT /UNIQUE /UNI_OUTPUT...
- Replies: 4
- Views: 4216
Re: SORT /UNIQUE /UNI_OUTPUT...
So beyond uni_output and unique, the only other undocumented option would be /CASE_SENSITIVE. I tested it. It is accepted as switch, complete or abbreviated, but does not seem to have any effect: Sure it has an effect - you just need to understand the collation sequence, and have input that is able...
- 24 Jan 2021 06:49
- Forum: DOS Batch Forum
- Topic: Request for help to speed up batch program for 17,000 TXT files
- Replies: 6
- Views: 5517
Re: Request for help to speed up batch program for 17,000 TXT files
Doh! Of course, I see now. Thanks. That might provide some additional speed. But I don't think the difference is significant enough to worry about. With the simple J options that use the dynamic eval() it would be a huge difference. But the JQ options encapsulate the call in a well performant user d...
- 24 Jan 2021 00:25
- Forum: DOS Batch Forum
- Topic: Request for help to speed up batch program for 17,000 TXT files
- Replies: 6
- Views: 5517
Re: Request for help to speed up batch program for 17,000 TXT files
It might be more efficient to *not* convert the words to lowercase, as this SORT command is case-insensitive. Sure, SORT with /UNIQUE will still sort properly and give the correct values, except the output may have mixed case. That may or may not be a problem. BTW: Without knowing JREPL, doesn't th...
- 23 Jan 2021 14:42
- Forum: DOS Batch Forum
- Topic: SORT supports the /UNIQUE and /CASE_SENSITIVE options!
- Replies: 5
- Views: 4331
Re: SORT supports the /UNIQUE option!
And also on SS64, the /C (/CASE_SENSITIVE) option, again available since Win 7 - Now that is useful
- 23 Jan 2021 14:35
- Forum: DOS Batch Forum
- Topic: SORT supports the /UNIQUE and /CASE_SENSITIVE options!
- Replies: 5
- Views: 4331
Re: SORT supports the /UNIQUE option!
Ooh, good for SS64.
So /UNIQUE can be abbreviated as /UNIQ
Also on SS64 is the undocumented /UNI-OUTPUT (or /U) that outputs in unicode (UTF16), available since Win 7. I did not know about that one either, though it is not of much interest to me.
Dave Benham
So /UNIQUE can be abbreviated as /UNIQ
Also on SS64 is the undocumented /UNI-OUTPUT (or /U) that outputs in unicode (UTF16), available since Win 7. I did not know about that one either, though it is not of much interest to me.
Dave Benham
- 23 Jan 2021 14:01
- Forum: DOS Batch Forum
- Topic: SORT supports the /UNIQUE and /CASE_SENSITIVE options!
- Replies: 5
- Views: 4331
SORT supports the /UNIQUE and /CASE_SENSITIVE options!
As I just learned at https://www.dostips.com/forum/viewtopic.php?f=3&t=9923&p=63727#p63726, SORT supports the /UNIQUE option, at least on Windows 10 :!: :D The built in help makes no mention of it, so it is no wonder that I've never seen this behavior before. Has anyone ever run across this option b...
- 23 Jan 2021 13:54
- Forum: DOS Batch Forum
- Topic: Request for help to speed up batch program for 17,000 TXT files
- Replies: 6
- Views: 5517
Re: Request for help to speed up batch program for 17,000 TXT files
OMG :shock: :!: :!: :!: :!: The standard Windows SORT command supports the /UNIQUE option, at least on Win 10, even though it is not documented - I had no idea :!: D:\test>sort /? SORT [/R] [/+n] [/M kilobytes] [/L locale] [/REC recordbytes] [[drive1:][path1]filename1] [/T [drive2:][path2]] [/O [dri...
- 20 Jan 2021 06:08
- Forum: DOS Batch Forum
- Topic: HASHSUM.BAT v1.8 - emulate md5sum, shasum, and the like
- Replies: 61
- Views: 92035
Re: HASHSUM.BAT v1.8 - emulate md5sum, shasum, and the like
Easy to test - you tell me.
bye
bye