Changing the system date...

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
iinself
Newbie
Posts: 2
Joined: Sat Jul 12, 2003 6:44 am

Changing the system date...

Post by iinself » Sat Jul 12, 2003 6:48 am

Hi,
can someone help me with changing the system date to run a program and then putting back the original date once the program as started.

Thanks
Arvind

Lumumba

Post by Lumumba » Sat Jul 12, 2003 6:05 pm

Sounds like bypassing a shareware restriction :roll:
Let's assume you wanna use a demo which date has already passed. :wink:

Code: Select all

//mm/dd/yyyy
Let>ThePast=07/20/2003
GetDate>CurrentDate

Run Program>cmd date
WaitWindowOpen>C:\WINNT\System32\cmd.exe - date
Send>%ThePast%
Press Enter
Wait>1
CloseWindow>C:\WINNT\System32\cmd.exe

Run Program>TheApp.exe

Run Program>cmd date
WaitWindowOpen>C:\WINNT\System32\cmd.exe - date
Send>%CurrentDate%
Press Enter
Wait>1
CloseWindow>C:\WINNT\System32\cmd.exe
cmd = NT/XP/W2K
command = W9x/Me

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sat Jul 12, 2003 6:46 pm

Hi Lumumba.....Nice solution.

A few notes note re W9x vs. NT:
1. Use command.com /c vs. command
2. Use WaitWindowOpen>MS-Dos Prompt*
=======================

You also wrote:
Sounds like bypassing a shareware restriction
:idea: Let's give Arvind the benefit of the doubt.

Obviously he is going to be on vacation next Friday when he would normally work on Thursday's scheduled reports. So he will run Thursday's reports on Wednesday so he can do Friday's work on Thursday before going on vacation. :!:

What a great work ethic Arvind has! Good for you! :D

Enjoy your vacation Arvind,

Bob

iinself
Newbie
Posts: 2
Joined: Sat Jul 12, 2003 6:44 am

Thanks guys and Sherlock Holmes ...

Post by iinself » Sun Jul 13, 2003 5:48 am

Thanks guys and Sherlock Holmes :cry:

Arvind

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts