vbscript 通过什么命令修改windows系统时间?只有通过cmd吗?
解决方案 »
- WebBrowser用代理访问
- 如何控制WebBrowser控件的滚动条向下翻向左右翻?
- 50求一个函数的详细说明(NetMessageBufferSend)!
- 用ADO连成的数据库,myConn,已经知道,咋显示出现在数据库的所有表?
- 请教,怎样控制 Toolbar 控件下拉式按钮的下拉菜单?谢谢!!
- 请问哪位大哥有物业管理系统的源代码?小弟正在研究,如果给我发一份,不胜感激
- 请教一个界面问题,高手帮忙答一下吧
- printer对象中如何设置打印纸张为横向打印?
- 如何将远程ftp站点下的某一目录下的文件列在本地的列表中(如file控件,list控件),在线等!
- VB制作“语法加亮”来请高手指条明路!!谢谢
- 请问用VB怎样才能做出像TT浏览器一样的效果,打开一个窗口增加多一页(即效果就好像Tabstrip一样)?用MDI怎么实现不了?谢谢
- 用vb导入导出excel问题
Private Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End TypePrivate Declare Function SetLocalTime Lib "kernel32" (lpSystemTime As SYSTEMTIME) As Long
你觉得这样符合你的要求么 ?
date=#2/12/2008#
time=#2:00:00 am#
VB声明
Declare Function SetSystemTime Lib "kernel32" Alias "SetSystemTime" (lpSystemTime As SYSTEMTIME) As Long
说明
设置当前系统时间
返回值
Long,非零表示成功,零表示失败。会设置GetLastError
参数表
参数 类型及说明
lpSystemTime SYSTEMTIME,这个结构指定了新的地方时间。其中的wDayOfWeek条目会被忽略
====================================================================
SYSTEMTIME
类型定义
Type SYSTEMTIME ' 16 Bytes
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type
说明
This structure contains date and time information.
字段表
字段 类型与说明
wYear Integer,The current year.
wMonth Integer,The current month. January is 1.
wDayOfWeek Integer,The current day of the week. Sunday is 0.
wDay Integer,The current day of the month.
wHour Integer,The current hour.
wMinute Integer,The current minute.
wSecond Integer,The current second.
wMilliseconds Integer,The current millisecond.