VBA打开控制面板的“Internet Date& amp; amp;时间"小程序 [英] VBA to open control panel's "Internet Date & Time" applet

查看:86
本文介绍了VBA打开控制面板的“Internet Date& amp; amp;时间"小程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想要运行控制面板

Internet Date&来自VBA的时间计划

- 模拟打开它,点击互联网

时间选项卡和立即更新按钮。


我不喜欢这真的非常关心用户看到所有这些。只想将系统同步系统

时间与内置于XP的设备和

自动无需要求用户去

通过手动步骤。


想法?

Would like to run the control panel''s
Internet Date & Time program from VBA
- emulating opening it, clicking the Internet
Time tab and the Update Now button.

I don''t really care for the user to see all
this. Would just like to sync the system
time with the facility built-in to XP and
automatically w/o asking the user to go
through the steps manually.

Ideas?

推荐答案



MLH写道:

MLH wrote:

想要运行控制面板

Internet Date&来自VBA的时间计划

- 模拟打开它,点击互联网

时间选项卡和立即更新按钮。


我不喜欢这真的非常关心用户看到所有这些。只想将系统同步系统

时间与内置于XP的设备和

自动无需要求用户去

通过手动步骤。


想法?
Would like to run the control panel''s
Internet Date & Time program from VBA
- emulating opening it, clicking the Internet
Time tab and the Update Now button.

I don''t really care for the user to see all
this. Would just like to sync the system
time with the facility built-in to XP and
automatically w/o asking the user to go
through the steps manually.

Ideas?



IMO,这是_bad_要做的事情。我想知道,如果应用程序中的代码对我这么做,那么有人对我的电脑做过什么样的事情。

。我喜欢它,就像我喜欢查找字段一样。 PITA和

你不能告诉他们他们是如何工作的。我会反对它建议

,除非它是一个绝对关键的功能,它是你的最后一招。


当你用户改变的任何文件有关于设置的信息

将无法找到日期范围内的文件。


那么你真的想要完成什么?从另一个时区获取时间戳

?您是否看过Randy Birch的网站以及

AccessWeb? (或者在这里...... MGFoster发布的东西看起来很有希望)。


你有它,我的2美分......


Pieter

IMO, this is a _bad_ thing to do. I would be wondering what kinds of
things someone had been doing to my computer if code in an app did this
to me. I''d like it about as much as I like lookup fields. PITA and
you can''t tell how they''re really working. I would advise against it
unless it''s an absolutely critical feature and it''s your last resort.

Any files the user changes while you have the settings monkeyed about
will not be found with a search for files within a date range.

So what are you _really_ trying to accomplish? Getting a timestamp
from another time zone? Did you look on Randy Birch''s site and on
AccessWeb? (Or here... MGFoster posted something that looked
promising).

there you have it, my 2 cents...

Pieter



> IMO,这是_bad_要做的事情。如果应用程序中的代码对我这么做,我会想知道有人对我的计算机做过什么样的事情。我喜欢它,就像我喜欢查找字段一样。 PITA和
你不能告诉他们他们是如何工作的。我建议反对它
除非它是一个绝对关键的功能,它是你的最后手段。

当你有关于
在日期范围内搜索文件时找不到。

那么你真的想要完成什么?从另一个时区获取时间戳?你看过Randy Birch的网站和AccessWeb吗? (或者在这里...... MGFoster张贴了看起来很有希望的东西)。

你有它,我的2美分......

Pieter
>IMO, this is a _bad_ thing to do. I would be wondering what kinds of
things someone had been doing to my computer if code in an app did this
to me. I''d like it about as much as I like lookup fields. PITA and
you can''t tell how they''re really working. I would advise against it
unless it''s an absolutely critical feature and it''s your last resort.

Any files the user changes while you have the settings monkeyed about
will not be found with a search for files within a date range.

So what are you _really_ trying to accomplish? Getting a timestamp
from another time zone? Did you look on Randy Birch''s site and on
AccessWeb? (Or here... MGFoster posted something that looked
promising).

there you have it, my 2 cents...

Pieter



彼得 - 我明白你的观点。该应用程序运行在专用的

Windows PC上用于其他一点点。提供了多用户访问

PC,因此需要该应用程序的所有用户都可以运行它。同步'

服务器的当前互联网的时钟不会打扰

特别是任何人。

Pieter - I see your point. The app is running on dedicated
windows PC used for little else. Multi-user access to the
PC is provided so all users needing the app can run it. Sync''ing
the server''s timeclock to current internet isn''t going to bother
anyone in particular.


你看到了吗?:

http://vbnet.mvps.org/code/network/netremotetodsync.htm


通常我无法找到答案对某事,我做了类似

这样的事情:

1.检查NG。

2.检查AccessWeb是否有特定于访问权限的东西

3.检查VBNet中的非Access VB内容或更多一般的VB内容,我可以在Access中调用



然后我不必等待人们回答......我只是

真的很不耐烦和顽固。

Did you look here?:

http://vbnet.mvps.org/code/network/netremotetodsync.htm

Usually when I can''t find an answer to something, I do something like
this:
1. check the NGs.
2. check AccessWeb for Access-specific stuff
3. check VBNet for non-Access VB stuff or more general VB stuff that I
can call in Access.

Then I don''t have to wait around for people to answer... I''m just
really impatient and stubborn.


这篇关于VBA打开控制面板的“Internet Date& amp; amp;时间"小程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆