Jump to content
Sign in to follow this  
aiuse

Add the current local date and time to the registry

Recommended Posts

aiuse

I want to add the current local date and time to the registry but unable to accomplish it. i check inside the help topics too. Can someone help me out how to quick and simple way to do this please? Thanks

Share this post


Link to post
Share on other sites
Valuater

I use the second one here..

#include <string.au3>
#include <date.au3>

$P_program = "Myprogramname"

 RegWrite("HKCU\Software\Microsoft\Windows\Current Version\Settings\ClickTask.com\X-" & $P_program, "004", "REG_SZ", _NowCalc())

 RegWrite("HKCU\Software\Microsoft\Windows\Current Version\Settings\ClickTask.com\X-" & $P_program, "004", "REG_SZ", _StringEncrypt(1, _NowCalc() , "Jabberwalky"))

Hope that helps

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×