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
Changing the system date...
Moderators: JRL, Dorian (MJT support)
Sounds like bypassing a shareware restriction 
Let's assume you wanna use a demo which date has already passed.
cmd = NT/XP/W2K
command = W9x/Me

Let's assume you wanna use a demo which date has already passed.

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
command = W9x/Me
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
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:
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!
Enjoy your vacation Arvind,
Bob
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

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!

Enjoy your vacation Arvind,
Bob
Thanks guys and Sherlock Holmes ...
Thanks guys and Sherlock Holmes 
Arvind

Arvind