Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript to change system date!! (Urgent)

Status
Not open for further replies.

UncleT

Programmer
Sep 26, 2001
133
US
Hello,

Can anyone give me the vbscript code to change the system date on a computer programatically. I need a script to change the year on the system date back 1 year. Any help would be appreciated.

Thanks,

UncleT
 
In VB...

Date = #7/29/2004#

Not sure about vbscript.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Thanks for your reply,

I just wrote a VB .exe file to do what I need.

I do have one problem. Is there a way to pass administrative credentials in VB6 to allow me to change the system date as an everyday user without administrative rights?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top