Date of a received ZIP file

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
petermad
Power Member
Power Member
Posts: 16021
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2van Dusen

A little change - sorry, but could you please change:

Code: Select all

17=Sæt dato og tid for %d mapper og %a arkiv(er)
to:

Code: Select all

17=Sæt dato og tid for %d mappe(r) og %a arkiv(er)
in the Danish section?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
menet
Member
Member
Posts: 199
Joined: 2005-04-21, 12:27 UTC
Location: Paris, France

Post by *menet »

2van Dusen,

It works very well using the default AutoDetect language :P :P :P

Bad string for 7z.exe is also good :)

Can you add the "XPI" type (for Firefox extensions using to ZIP compression) at the end of the list of SupportedArchiveFormats ?
It works also well once added.


2Clo and Vansumsen about French translation.
I accept the

Code: Select all

7=Exp.Rég.
...
43=selon l' “ancienne date” :
But the 2 last digits of "Exp.Rég." are not shown like Clo's request, it needs to permit the entire view 3 more characters space... :!:

To translate the "scan" word, I don't like the French translation "scrutation" or an official one "balayage"

regards :wink:
#22273 Personal licence
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

2van Dusen : Once more : very useful tool, which I use more and more ...

I just miss to use it from my USB-Stick :(
It fails by ignoring my settings for the 7-zip path:

Code: Select all

ProgPath7z=%COMMANDER_PATH%\..\7-Zip\7z.exe
Time to contribute an enhancement ;) :

You just have to change 1 line of code:

Code: Select all

After
   $strTmp = IniRead($strIniFile, "Configuration", "ProgPath7z", "")
just replace
   $strTmp = StringReplace($strTmp, "%ProgramFiles%", EnvGet("ProgramFiles"))
with
   $strTmp = _ProperPath($strTmp)
and add this function at the end

Code: Select all

Func _ProperPath($strPath)
   ;*** Ersetzt evtl. vorhandene relative Pfade am Anfang
   If StringLeft($strPath, 2) = ".\" Then
		$strPath = StringReplace($strPath, ".", @ScriptDir, 1)
	EndIf

   If StringLeft($strPath, 3) = "..\" Then
      $strPath = @ScriptDir & "\" & $strPath
	EndIf

   ;*** Ersetzt evtl. vorhandene Environment-Variable
	;*** Test auf _2_ vorhandene %-Zeichen
   $intBeginEnv = StringInStr($strPath, "%", 2, 1)
	$intEndEnv = StringInStr($strPath, "%", 2, 2)
	If $intEndEnv > $intBeginEnv Then
	   ;*** Variable isolieren und ersetzen
		$intLen = $intEndEnv - $intBeginEnv - 1
		$strEnv = StringMid($strPath, $intBeginEnv + 1, $intLen)
		If EnvGet($strEnv) > "" Then
			$strPath = StringReplace($strPath, "%" & $strEnv & "%", EnvGet($strEnv))
		EndIf
	EndIf

	Return $strPath
EndFunc

Feel free to use it and have fun !
#5767 Personal license
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Note: I just edited the code at above post to handle validated Environment variables only ...
#5767 Personal license
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

SetFolderDate 1.4.0

Post by *van Dusen »

SetFolderDate 1.4.0 has been released. You can download it here:

SetFolderDate_1.4.0 (081114).zip

SetFolderDate has become bloated and obsfuscated with the new version. Sorry :'-(. It need to be rewritten completely sometime...

Changes (List is incomplete):

[+] Dates can be set recursively for subdirectories and archives within these subdirectories

[+] Set date of multimedia files or document files from metadate using external tool ExifTool

[+] Set date of files from filename

[+] If option "certain file" is set and no entry matches the filename / file pattern, then date can optionally set to the newest/oldest date ignoring the given filename / file pattern

[*] Environment variables in INI-keys ProgPath7z and ProgPathExifTool should be handled better now (thanks to sqa_wizard :-) )

[*] Some small bugfixes and changes, e.g.:
* DOS-2-ANSI conversion for filenames from 7zip lists
* Icons
* Some new INI keys and language strings
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

First impression: Wow !

Nice new interface and interesting improvements.

One confusing thing needs to be explained: What are the icons with checkmarks (folder + gray/brown "window frame") used for ?
#5767 Personal license
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

OK, I have made some tests now and it does what I told to do ... (which is not always what I wanted to do ;) )

Here are the first results :

- at startup, it shows up with default settings and does NOT scan any files with this settings.
:arrow: this is OK, because an initial scan may slowdown the startup by minutes with useless result (if I don't want the default options)

- if I want to keep the default options and press immediately "Execute" => everything keeps unchanged :roll:
:arrow: I figured out, that I have to press "Preview" first and then an "Execute" does the changes. :idea:

A little bit confusing ... may you could disable the "Execute" button on startup until a scan is done (by changing the options or by pressing "Preview")
#5767 Personal license
User avatar
petermad
Power Member
Power Member
Posts: 16021
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2van Dusen

Thanks for the new version. I had to update my 7zip - the new version didn't work with 7zip 4.42 anymore.

New Danish translation can be downloaded at http://madsenworld.dk/tcmd/setfolderdate_1.4.0_dan.zip


Where can we get the ExifTool :?:
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
menet
Member
Member
Posts: 199
Joined: 2005-04-21, 12:27 UTC
Location: Paris, France

Post by *menet »

Here is the updated French translation for 1.4 version of SetFolderDate tool :

Code: Select all

[FRA]
DateFormat=DD/MM/YYYY
TimeFormat=hh:mm:ss
GUICtrlAddWidth=30

1=SetFolderDate V1.4
2=Modifier la date et l'heure
3=avec le fichier le plus récent
4=avec le fichier le plus ancien
5=vérication récursive
6=Certains fichiers (nom ou modèle de fichier) :
7=Exp.Rég.
8=avec une date/heure particulière :
9=Courante
10=Dossier/Archive
11=Ancienne date
12=Nouvelle date
13=Nom de fichier
14=Annuler
15=Changer !
16=Aperçu
17=Positionner la date et l'heure de %d dossier(s) et %f fichier(s)
18=
19=Date/heure non valable
20=La date/heure donnée n'est pas valable
21=*** Inchangée
22=*** OK
23=*** Erreur !
24=Fermer
25=Soyez patient, SVP...
26=Pas de fichiers sélectionnés !
27=Pas de dossiers ou archives selectionnés !
28=
29=Examiner seulement les fichiers, qui NE sont PAS specifiés dans l' “IGNORE LIST”
30=Type de date
31=Affichage et
32=changement selon
33=Modification
34=Création
35=Accès
36=*** Le dossier est vide / il ne contient pas de fichiers
37=*** Pas de correspondance
38=*** Exécutable 7z.exe introuvable
39=*** Sauter
40=*** Annuler
41={Pause} = Sauter le dossier / l'archive
42={Échap} = Abandonner l'analyse
43=selon l' “ancienne date” :
44=recursivement
45=Construction de l'arbre du dossier...
46=avec le nom du fichier
47=avec les metadonnées du fichier (images/vidéos)
48=avec les metadonnées du fichier (documents Office)
49=*** Exécutable ExifTool.exe introuvable
50=si non correspondance, alors ignorer le nom/modèle
Why the "Tag: DateTimeOriginal and ModifyDate" words are not translated ?

Is there a error in the word : YYYYMMDD_hhnnss ?
I suppose that it should be mm for the minutes. :roll:

I have readded XPI in SupportedFormatsArc for the Firefox extensions that are ZIPs (I have configured TC for that).

Best regards :wink:
#22273 Personal licence
User avatar
petermad
Power Member
Power Member
Posts: 16021
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Is there a error in the word : YYYYMMDD_hhnnss
I guess it's on purpose. Otherwise it would colide with the MM for month.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
menet
Member
Member
Posts: 199
Joined: 2005-04-21, 12:27 UTC
Location: Paris, France

Post by *menet »

van Dusen wrote:Hi menet,
menet wrote:[...] What about proposing your tool in TOTALCMD.NET ? [...]
Icfu was so kind to host my scripts. He offers to update them, when I send him new versions. I'll contact Icfu and will ask him to make SetFolderDate_1.3.1 available on his webspace.

Regards, van Dusen
I don't read the german. :oops:

Do you have news about SetFolderDate put under TOTALCMD.NET or/and TotalCMD site ? :?:

Best Regards :wink:
#22273 Personal licence
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

sqa_wizard wrote:What are the icons with checkmarks (folder + gray/brown "window frame") used for ?
The three topmost icons (folder, brown packet, grey packet) can be clicked on:
The brown parcel icon correspond to archive types defined in the INI-key "SupportedFormatsArc" and the grey parcel icon to those defined in the INI-key "OptionalExcludedFormatsArc".
  • If the folder icon is unchecked, then directories will be skipped on scan.
  • If both parcel icons are unchecked, then archives will be skipped on scan.
  • If the brown parcel icon is checked and the grey icon is unchecked, then only those types of archives are skipped on scan, which are defined in "OptionalExcludedFormatsArc".
A tip concerning the icons:
You can turn off the icons in the listview by setting the INI-key "ShowIcons" to "0".
The icons are taken from file SetFolderDate.icl. This icon library is packed with SetFolderDate.exe and will be extracted automatically to the script dir on startup, unless a file named "SetFoderDate.icl" already exists in this path. You can use your preferred icons with SetFolderDate by creating and supplying your own SetFolderDate.icl.
sqa_wizard wrote:at startup, it shows up with default settings and does NOT scan any files with this settings
Right, INI-key "ScanAtStartup" is set to "0" by default until you set it to "1" in SetFolderDate.ini. With "ScanAtStartup=1" files are scanned at startup (I noticed, that the options for "newest/oldest date" are not set to disabled state, when "SetDateTo" is set to 5, 6 or 7 at startup... I will fix this in the next version)
sqa_wizard wrote:may you could disable the "Execute" button on startup until a scan is done
You can set the INI-key "RescanOnExecute" to "1" to force a scan, when you click the "OK" button ("RescanOnExecute=0" is the default). With "RescanOnExecute=1" a scan is performed, even if the options kept unchanged since last scan. It would be smarter, if SetFolderDate could decide itself, whether the options has been changed or not since last update of the listview. I will try to change SetFolderDate in this regard.
petermad wrote:New Danish translation can be downloaded at [...]
Thank's a lot!
petermad wrote:Where can we get the ExifTool?
You can get ExifTool here: http://www.sno.phy.queensu.ca/~phil/exiftool/
Download link for Windows version (ExifTool 7.52): http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool-7.52.zip
menet wrote:Here is the updated French translation for 1.4 version of SetFolderDate tool
Thank's a bunch!
menet wrote:Why the "Tag: DateTimeOriginal and ModifyDate" words are not translated ?
These tag names must not translated, because they are passed as parameter to ExifTool. Tables, which give the names of all tags recognized by ExifTool, can be found here
The tag name for "multimedia files" (as defined in INI-key "SupportedFormatsPic") can be set in INI-key "EvaluateTagPic", for "office documents" (as defined in INI-key "SupportedFormatsDoc") in INI-key "EvaluateTagDoc".
menet wrote:Is there a error in the word : YYYYMMDD_hhnnss ? I suppose that it should be mm for the minutes.
As petermad already wrote, it's intentionally: "n" is the correct placeholder for minutes in the value of INI-key "TimestampInFilenameFormat". I grant you, that it is a bit inconsequent, because "m" must be used for values of INI-key "TimeFormat".
menet wrote:Do you have news about SetFolderDate put under TOTALCMD.NET or/and TotalCMD site ?
No news, sorry! :-(
gbecker
New Member
New Member
Posts: 1
Joined: 2011-06-16, 07:59 UTC

Where can I get the actual version of SetFolderDate?

Post by *gbecker »

Hi van Dusen and All,
I'm using SetFolderDate 1.2.2 (Excellent tool!) and I'm now searching for a newer version which can set the folder dates recursiv.
Alle download-links I've found are dead, so where can I get version 1.4.x or up?

Thank u,
Gerhard
User avatar
petermad
Power Member
Power Member
Posts: 16021
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2van Dusen

I have downloaded the new version 1.5 of SetFolderDate at: http://www.totalcmd.net/plugring/SetFolderDate.html

In the new version the files are named SetFolderDate_1.5.exe and SetFolderDate_1.5.au3 - will there be any problems renaming them to the old names SetFolderDate.exe and SetFolderDate.au3 ? As far as I can see, after decompressing the exe file, there are no hardcoded reference to SetFolderDate_1.5.au3 in the exe file.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

Post by *van Dusen »

Hello petermad,

you may delete <SetFolderDate_1.5.au3> (source code) and <SetFolderDate.ico> (icon for the EXE file, optionally needed when compiling the AU3 script) from your installation dir. <SetFolderDate_1.5.exe> is a stand-alone executable, it needs only the icon lib <SetFolderDate.icl> (GUI icons) and the config file <SetFolderDate.ini> in the installation dir.

You may rename <SetFolderDate_1.5.exe> to any filename (<*.exe>) you like.

Notes:
  • The window title "SetFolderDate V1.5 (2011-07-20)" will be not affected, it is hard-coded
  • The INI key "1=SetFolderDate V1.5" in language sections is obsolete, it isn't used anywhere in the code :mrgreen:
  • The file version information of the executable ("OriginalFilename=SetFolderDate.exe", "ProductName=SetFolderDate", "Fileversion=1.5.0.0" etc.) will be not affected too, it has been set on compiling the AU3 script.
Grüße, van Dusen (#24722)
Post Reply