Skip to content

Instantly share code, notes, and snippets.

@nocelab
Last active May 20, 2026 14:02
Show Gist options
  • Select an option

  • Save nocelab/74e8478daa4ffb975a1caacf7934c2b8 to your computer and use it in GitHub Desktop.

Select an option

Save nocelab/74e8478daa4ffb975a1caacf7934c2b8 to your computer and use it in GitHub Desktop.
Total Commander WDX of file creation date in Hexadecimal
[Script]
ActiveScripts=MinutesAgo|CheckEncoding|Signature|DateCreatedHEX
; ...
[EpochHEX]
Script=EpochHEX.vbs
content=EpochHEX
extensions=*
FoldersPaths=0
' WinScript Advanced 1.7 (Total Commander)
' https://totalcmd.net/plugring/WinScriptAdv.html
Dim fs, f, lngUnixTime
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filename)
' lngUnixTime = DateDiff("s", "01/01/1970 00:00:00", Now)
lngUnixTime = DateDiff("s", "01/01/1970 00:00:00", f.DateCreated)
content = LCase(Hex(lngUnixTime))
' content = Hex(lngUnixTime)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment