RunAsDate v1.37 - Run a program with the specified date/time

Copyright (c) 2007 - 2019 Nir Sofer

See Also

Description

How does it work ?

System Requirements

Important Notice !!

I get many email messages that say something like "I tried to extend the trial period of xyz software with RunAsDate and it didn't work". Running a software with different date/time can be used for many legitimate purposes and for these purposes RunAsDate was created. I have never said implicitly or explicitly that RunAsDate can be used for extending the trial period of a software. For some shareware programs, RunAsDate might really work, but many shareware creators are smart enough to detect that the date/time was modified and when they detect the time change, they end the trial period immediately.

Please don't bother yourself to send me a question about extending the trial period of a software, because these kind of messages are simply deleted without answering.

Versions History

Version 1.37: Fixed bug: RunAsDate failed to work properly when using the 32-bit and the 64-bit versions in the same time. Also, the DLL file of RunAsDate is now deleted automatically when you close the main window of RunAsDate (If it's not locked).

Version 1.36: Added 'Run As Administrator' button to easily run RunAsDate as Administrator. You have to run RunAsDate as Administrator when the program you want to run with RunAsDate requires elevation.

Version 1.35: RunAsDate now displays an error message if you try to run 32-bit program with 64-bit version of RunAsDate or 64-bit program with 32-bit version of RunAsDate. RunAsDate now displays an error message if it fails to run the specified .exe file. RunAsDate now also intercepts the NtQuerySystemTime and GetSystemTimePreciseAsFileTime API functions. RunAsDate now also intercepts the date/time functions on kernelbase.dll (in addition to kernel32.dll). This change solves the issue with cmd.exe on Windows 10 (it uses the APIs on kernelbase.dll )

Version 1.31: Fixed bug: When a program executed with RunAsDate requested to get the current time in GMT (GetSystemTime and GetSystemTimeAsFileTime API), RunAsDate provided the wrong time with a difference of one hour if the computer date was in summer (With daylight saving time) but the selected RunAsDate date was in winter (Without daylight saving time) and vice versa...

Version 1.30: Added option to set the date/time relative to the current time. You can add (positive number) or subtract (negative number) the following time units: seconds, minutes, hours, days, months, and years. Added 'Start in folder' option. RunAsDate now saves the last settings to config file (RunAsDate.cfg)

Version 1.21: Fixed bug with 'Move the time forward according to the real time' option: After around 7 minutes from the time that the application was started, RunAsDate failed to calculate the time properly.

Version 1.20: Added 'Return to the current date/time after xx seconds' option.

Version 1.16: Fixed bug: RunAsDate removed a quote character when using it in the {Program parameters} section of the command-line string.

Version 1.15: Fixed RunAsDate to work properly on Windows 8 64-bit.

Version 1.11: Added Drag & Drop support: You can now choose the .exe file to run by dragging it from Explorer into the main window of RunAsDate.

Version 1.10: Added auto complete support in the filename field. Added x64 version.

Version 1.05: Fixed bug: When using 'Create Desktop Shortcut', the /immediate and /movetime options were not added to the shortcut's command-line

Version 1.04: The main dialog-box is now resizable.

Version 1.03: Added 'Immediate Mode' - Change the date immediately when the program starts.

Version 1.02: New option: Move the time forward according to the real time.

Version 1.01: New option: Create a shortcut on your desktop that will run a program with the date/time that you specify. When you don't specify the time in the command-line, the current time will be used, instead of 00:00:00.

Version 1.00 - First release.

Using RunAsDate

Immediate Mode

If executing an application from RunAsDate cause it to crash, you should turn off the 'Immediate Mode'.

Using RunAsDate from Command-Line

Examples:

RunAsDate.exe 22\10\2002 12:35:22 "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"

RunAsDate.exe 14\02\2005 "c:\temp\myprogram.exe" param1 param2

RunAsDate.exe /movetime 11\08\2004 16:21:42 "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"

RunAsDate.exe /movetime /returntime 15 10\12\2001 11:41:26 "c:\temp\myprogram.exe"

RunAsDate.exe Hours:-10 "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"

RunAsDate Limitations

RunAsDate will not affect applications that take the current date/time from another source. For example: application that loads the current date from remote server.

Translating RunAsDate To Another Language

Run RunAsDate with /savelangfile parameter:

RunAsDate.exe /savelangfile

A file named RunAsDate_lng.ini will be created in the folder of RunAsDate utility. Open the created language file in Notepad or in any other text editor. Translate the dialog-boxes and string entries to the desired language. After you finish the translation, Run RunAsDate, and all translated strings will be loaded from the language file.

If you want to run RunAsDate without the translation, simply rename the language file, or move it to another folder.

License

Disclaimer

Feedback

Don't send me any question or request about extending the trial period of a software, this kind of message is simply deleted without answering.

RunAsDate is also available in other languages. In order to change the language of RunAsDate, download the appropriate language zip file, extract the 'runasdate_lng.ini', and put it in the same folder that you Installed RunAsDate utility.