Search found 11 matches

by raywood
01 Jun 2022 18:59
Forum: DOS Batch Forum
Topic: File Info Output: Can I Restate Modification Date & Time?
Replies: 8
Views: 7302

Re: File Info Output: Can I Restate Modification Date & Time?

Thanks for your feedback. Early dabbling suggests you have to learn all of PowerShell to be sure you're using it correctly for anything. I've had several experiences of using scripts people recommended, only to find there's an exception requiring the additional WhoZit cmdlet if you wear a size 12 sh...
by raywood
16 May 2022 09:01
Forum: DOS Batch Forum
Topic: File Info Output: Can I Restate Modification Date & Time?
Replies: 8
Views: 7302

Re: File Info Output: Can I Restate Modification Date & Time?

Thanks. I suspected that would be the solution. I asked because, well, I had a friend who knew APL. In APL, you could launch a rocket to the Moon with a command that looked like ΦP→W?. Every now and then I see a bit of batch code that reminds me of that, where they do things I didn't know were possi...
by raywood
09 Apr 2022 10:13
Forum: DOS Batch Forum
Topic: Play One Song at a Time
Replies: 5
Views: 6030

Re: Play One Song at a Time

Sadly, that produces this:

Code: Select all

'"Song 1.mp3"' is not recognized as an internal or external command, operable program or batch file.
by raywood
05 Apr 2022 19:24
Forum: DOS Batch Forum
Topic: File Info Output: Can I Restate Modification Date & Time?
Replies: 8
Views: 7302

Re: File Info Output: Can I Restate Modification Date & Time?

Yes. Thanks for asking. My post provides a writeup, with links to the sources that explained it to me. That post is at https://raywoodcockslatest.wordpress.com/2022/04/03/dir-filename-hash-oneline/. (Sorry for the long URL. Unfortunately, the FAQs provide no guidance in using the link button in this...
by raywood
03 Apr 2022 14:48
Forum: DOS Batch Forum
Topic: File Info Output: Can I Restate Modification Date & Time?
Replies: 8
Views: 7302

File Info Output: Can I Restate Modification Date & Time?

I am working on a batch script that gives me a recursive list of all files in a folder. Each line presents multiple bits of information about one file, including (in this order) last modified date and time, file size in bytes, file name. Example of output: 04/03/2022 03:00 PM 265 Filename . I would ...
by raywood
28 Jan 2022 13:16
Forum: DOS Batch Forum
Topic: Play One Song at a Time
Replies: 5
Views: 6030

Play One Song at a Time

I have a playlist. I use IrfanView as my default audio player. It plays one song at a time. My prototype batch file goes like this: start "" "Song 1.mp3" pause start "" "Song 2.mp3" pause start "" "Song 3.mp3" pause When I run the batch file, Windows ignores the pause commands. It starts one song, i...
by raywood
06 Dec 2021 15:56
Forum: DOS Batch Forum
Topic: HASHSUM.BAT v1.8 - emulate md5sum, shasum, and the like
Replies: 61
Views: 92177

HASHSUM.BAT Bug?

As reported in https://www.computerhope.com/forum/index.php/topic,182917.msg1012596.html#msg1012596: I ran similar hash commands in Linux and Windows, using rhash and hashsum respectively on the same test folder. While rhash produced results for all files, I found that hashsum seemed to ignore about...
by raywood
19 Jul 2021 10:16
Forum: DOS Batch Forum
Topic: Filter DIR by Date and Time?
Replies: 3
Views: 3321

Re: Filter DIR by Date and Time?

Thanks for the quick reply, Saso. I guess I could use nested conditions to test for the cutoff date and, within that date, to test for the cutoff time. But then I'm not sure if batch will do date or time comparisons for those newer than the specified date and time. Until the day when I figure out en...
by raywood
19 Jul 2021 00:12
Forum: DOS Batch Forum
Topic: Filter DIR by Date and Time?
Replies: 3
Views: 3321

Filter DIR by Date and Time?

I am getting the desired type of information with this: for /r %F in (*) do @echo %~tF %~zF %F The only problem is, it lists all files, whereas I want only those files that have been modified since a certain date and time. I will need to figure out how to prompt for date and time, and then how to ex...
by raywood
15 Jun 2021 17:22
Forum: DOS Batch Forum
Topic: A Batch File to Process Multiple FFmpeg Commands
Replies: 1
Views: 2776

A Batch File to Process Multiple FFmpeg Commands

I have a batch file that contains multiple FFmpeg commands, like these: ffmpeg -i input.mpg -ss 00:00:00 -to 00:01:29 -c:v copy -c:a copy output1.mp4 ffmpeg -i input.mpg -ss 00:01:29 -to 00:02:43 -c:v copy -c:a copy output2.mp4 I would like to run these commands one at a time, not proceeding with th...