Date/Time as parameters in buttonbar or startmenu

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Mummu
Junior Member
Junior Member
Posts: 12
Joined: 2009-06-25, 15:05 UTC

Date/Time as parameters in buttonbar or startmenu

Post by *Mummu »

Hi, is there a way to insert current date or time or a random number as parameters when starting a program via button bar?

Also can there be used some batch variables as parameters, like this "MyFile__%dd:~0,2%_%dd:~3,2%_%dd:~6,4%___%dd:~11,2%_%dd:~14,2%.zip". This will output "MyFile__21_01_2012__12_40.zip"

for example: to make a button to pack a folder when clicked but generate unique output name each time.

I think this will be a great feature to be able to generate unique target name and can be used in many ways and by many programs.

Example: 7za.exe a -r C:\work\*.* D:\backup\file_(%date%).7z
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

It is not possible, but would be great addition.
Until then, check at the packer program side, maybe there is some parameter that includes the current date/time as a filename.
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: Date/Time as parameters in buttonbar or startmenu

Post by *hi5 »

This is an old thread, but I've setup a poll viewtopic.php?t=75669
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Post Reply