Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Change system date using VBScript

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,48154
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Change system date using VBScript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Change system date using VBScript - 6/11/2007 3:46:13 PM   
  indranilguharoy

 

Posts: 14
Score: 0
Joined: 1/9/2007
Status: offline
Hi,

I need to change system date through VBScript to yesterday's date. Is it possible to do that? If yes, how can i do that? Please help.

Thanks,

Indranil
 
 
Post #: 1
 
 RE: Change system date using VBScript - 6/11/2007 10:58:30 PM   
  SAPIENScripter


Posts: 276
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
VBScript doesn't have any built in functions for this. Open a command prompt and use the DATE or TIME commands. If you need to use a VBScript, use the RUN or EXEC methods to execute these commands.

_____________________________

Jeffery Hicks
Windows PowerShell MVP
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com

Follow Me: http://www.twitter.com/JeffHicks

(in reply to indranilguharoy)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Change system date using VBScript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts