Skip to content

Instantly share code, notes, and snippets.

@hmasato
Created October 17, 2013 07:15
Show Gist options
  • Select an option

  • Save hmasato/7020431 to your computer and use it in GitHub Desktop.

Select an option

Save hmasato/7020431 to your computer and use it in GitHub Desktop.
[Win, reg] _createFolderTS_install.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\.NewFolderBasedOnTimestamp]
@="NewFolderBasedOnTimestamp"
[HKEY_CURRENT_USER\Software\Classes\.NewFolderBasedOnTimestamp\ShellNew]
"Command"="cmd /d /e:on /c for /f \"tokens=1-7 delims=.,\\:/\" %%A in (\"%%date%%.%%time%%\") do for /f \"tokens=*\" %%a in (\"%1\") do if not exist \"%%~dpa\\%%A%%B%%C_%%D%%E_%%F%%G\" mkdir \"%%~dpa\\%%A%%B%%C_%%D%%E_%%F.%%G\""
"nullfile"=hex:
[HKEY_CURRENT_USER\Software\Classes\NewFolderBasedOnTimestamp]
"FriendlyTypeName"="Folder (Timestamp)"
[HKEY_CURRENT_USER\Software\Classes\NewFolderBasedOnTimestamp\DefaultIcon]
@="shell32.dll,3"
[HKEY_CURRENT_USER\Software\Classes\NewFolderBasedOnTimestamp\Shell]
[HKEY_CURRENT_USER\Software\Classes\NewFolderBasedOnTimestamp\Shell\open]
"LegacyDisable"=hex:
[HKEY_CURRENT_USER\Software\Classes\NewFolderBasedOnTimestamp\Shell\open\command]
@="."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment