Login | |
|
 |
RE: change time script - 9/10/2005 6:30:25 AM
|
|
 |
|
| |
Snipah
Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
Hiya, Please post you current script, so we can build upon it...
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: change time script - 9/11/2005 11:28:06 PM
|
|
 |
|
| |
mbouchard
Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
|
Using the above script, the time is changed from 8:26 AM to 25:26. I changed Now to Time, removed the RIGHT and it worked for me. strNow = Time x = DateAdd("h", 3, strNow) newTime = x'right(x, 8) WScript.Echo "Original Time = " & strNow & vbcr & "New Time = " & newTime All you would need to do is use the TIME cmd to set it i.e. WshShell.Run "cmd /C Time " & NewTime,1,TRUE
_____________________________
Mike For useful Scripting links see the Read Me First stickey! Always remember Search is your friend.
|
|
| |
|
|
|
|
|