目前,我在loginWindows桌面时使用这个vbs脚本:
Set oIE = CreateObject("InternetExplorer.Application") ' This creates a Internet Explorer window oIE.Left = -5000 ' This allows the page to initilize off-screen oIE.Top = -5000 ' This allows the page to initilize off-screen oIE.navigate "http://myurl/?popup=1" ' This is URI oIE.ToolBar = 0 ' This removes the toolbar oIE.StatusBar = 1 ' This removes the status bar oIE.Resizable = 1 ' This allows the maximise button oIE.Visible = 1
这是从用户loginbatch file运行。
我被要求增加一个,我不喜欢这种方法,但不知道如何实现它?
谢谢
更多细节
情况是,它只需要运行在Active Directory中的某些用户 – 希望他们将在特定的OU,如果他们不是,那么我会把他们放在那里! 所以我的方法是从login脚本应用到组angular度 – 我不想使用启动文件夹或registry,以便popup屏幕的用户可以很容易地通过Active Directory进行pipe理。 希望更有意义!
ShellExecute URL。
如果只是为了您自己,或者您不担心用户将其移除,您可以像创build其他任何快捷方式一样在桌面上创build一个网站快捷方式,然后将快捷方式移至“ All Program > Startup的开始菜单。 对于所有用户,只需将其放在\Documents and Settings\All Users\Start Menu\Programs\Startup ,或者将其放置在\Documents and Settings\DESIRED USER\Start Menu\Programs\Startup ,注意replaceDESIRED USER ,以及所需的用户。
或者,您可以将该快捷方式放在“秘密”(如\WINDOWS并在registryHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run为当前logging的用户或在HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run下创build一个条目HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run为所有用户HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run 。 名称应该是快捷方式的简短描述,值应该是快捷方式驻留在系统上的位置,附加.url(例如,如果我在Windows文件夹中保存了Google的快捷方式,并将快捷方式命名为google ,则值将是"C:\WINDOWS\google.url"
运行命令“启动http://你的url ”,也许?
(这与Richard Gadsden的解决scheme有很多相同的效果,对我而言似乎很好)
不过,这将有助于了解您目前的解决scheme。