This touch is not a port of the Unix version. Same functionality, but a custom project. So, no "--"
+ Reply to Thread
Results 31 to 35 of 35
-
-
Maybe I'm using a different version? Touch 1.21 Windows x86 binary. It says "--" in the usage documentation and examples.
https://sourceforge.net/projects/touch-win32/files/v1.21/
When I don't use "--" , I get Error 2: No file(s) specified! , and the dates aren't processed
Usage
touch.exe [-hxamcDsvq] [-r ref_file|-t time|-d date_time] -- <file_1> [file_N]
-h : Show this help
-x : Modify creation time
-a : Modify access time
-m : Modify modification time
-c : Do not create file if not found
-r : Use a file or directory as a reference time source
-D : If target doesn't exist, create a directory
-s : Browse sub-directories
-v : Output the result of every file processed
-q : Silent mode, no error is displayed (disable '-v')
-t : Use time [[CC]YY]MMDDhhmm[.SS] instead of today
-d : Use date_time [[YYYY-]MM-DD][Thh:mm[s]] instead of today
-- : Finish options, followed by the file list
The options '-r', '-d' and '-t' can not be used simultaneously.
By default, all times will be modified (creation, access and modification).
Examples
touch.exe -sv -d 2011-04-23 -- ".\folder\*.txt"
touch.exe -cv -d T10:55:00 -- *.dat
touch.exe -xv -d 2011-04-23T10:55 -- test2.txt test3.txt -
This one's different
Usage: touch [-h] [-a] [-C] [-m] [-c] [-r file] [-d] [-t [[CC]YY]MMDDhhmm[.SS]] <file> [file 2] [file 3] ... [file N]
-a: Modify access time
-C: Modify creation time
-m: Modify modification time
-c: Do not create file if not found
-r: Use file or directory as time source
-d: If target doesn't exist, create a directory
-t: Use specified time instead of current time
-h: This help text
Options -r and -t are mutually exclusive.
By default, all times will be modified (access, creation and modification). -
sfuller73,
If it helps in the future, xplorer2_lite (a Windows Explorer replacement) has a function for syncing the modified dates of files. As your output file names are the same as the source it'd be easy. Open the folder containing the source files in one pane and the folder containing the output files in the other. The "Actions/Sync-touch" menu will copy the modified dates from the files in the active pane to any files with the same name in the other pane. Just make sure you have the pane containing the source files selected so you don't copy in the wrong direction. I didn't suggested that method earlier as it only copies "date modified" and not "date created" and I assumed you wanted both.
Of course if you don't care what the modified or creation dates are, only that they're the same, the "Actions/Change Attributes" menu will let you change both to anything you like for as many files as you have selected.
I recently linked to xplorer2_lite in this post and there's a screenshot of what it looks like running on my PC.
You also might care to try AnotherGUI. You have to create the command line yourself (although it has a preset system for saving them) but that also means you're not as restricted as you are with TEncoder. After loading a bunch of files it'll also create a bat file for you. The only thing I don't think it'll do is change the output file dates. Well, not on it's own, but you could probably create a preset that'll do it with Touch.Last edited by hello_hello; 11th Mar 2016 at 11:47.
-
Heh, that is actually exactly what I was looking for. I had the means to accurately batch trim via several methods but not the ability to modify dates. Hard to beat the speed and simplicity of ffmpeg once you have a good script running, though.
Nice to know I have a backup plan if necessary.
(At the very least, I'm going to use this as a windows explorer replacement. Really like the idea of having dual or triple panes open.)
Thanks! This thread has been an embarrassment of riches.
Similar Threads
-
Mpeg-4 (h264 - MPEG-4 AVC) batch time-based splitting tool for Windows
By jokob in forum EditingReplies: 3Last Post: 4th May 2015, 19:26 -
Editing AVC files without re-encoding
By galapogos in forum EditingReplies: 2Last Post: 18th Oct 2014, 12:33 -
problem viewing avc files
By maximov in forum Software PlayingReplies: 10Last Post: 11th Oct 2012, 09:36 -
avidemux 2.5.6 will support h264\avc video files or not?
By Ganesh Ujwal in forum EditingReplies: 6Last Post: 14th Aug 2012, 05:11 -
Best way to batch convert xvid/avi files to mkv/x264 files?
By gaikokujinkyofusho in forum Video ConversionReplies: 1Last Post: 13th Jan 2012, 06:31