background preloader

Scripting Windows

Facebook Twitter

Script - How to get UTC time with windows batch file. COM in plain C. Download source files - 17.6 Kb Contents Introduction There are numerous examples that demonstrate how to use/create COM/OLE/ActiveX components. But these examples typically use Microsoft Foundation Classes (MFC), .NET, C#, WTL, or at least ATL, because those frameworks have pre-fabricated "wrappers" to give you some boilerplate code. Unfortunately, these frameworks tend to hide all of the low level details from a programmer, so you never really do learn how to use COM components per se.

Rather, you learn how to use a particular framework riding on top of COM. If you're trying to use plain C, without MFC, WTL, .NET, ATL, C#, or even any C++ code at all, then there is a dearth of examples and information on how to deal with COM objects. With standard Win32 controls such as a Static, Edit, Listbox, Combobox, etc., you obtain a handle to the control (i.e., an HWND) and pass messages (via SendMessage) to it in order to manipulate it.

Not so with an OLE/COM object. A COM object and its VTable. ADO Programming Code Examples. Microsoft Access: ADOX Programming Code Examples Provided by Allen Browne, March 2007. Updated July 2009. This page is a reference for developers, demonstrating how to use the ADOX library to programmatically create, delete, modify, and list the objects in Access - the tables, fields, indexes, and relations, queries, and databases - and read or set their properties. ADOX is an extension to the ADO library, exposing the catalog of database objects. To use this library, open the code window, choose References on the Tools menu, and check the box beside: Microsoft ADO Ext x.x for DDL and Security In general, the DAO library is better than ADOX. DAO is purpose-designed for Access, and exposes properties the other libraries don't.

See the field type reference for a comparison of the field types in ADOX compared to the Access interface and other libraries. There is no explanation of the code beyond in-line comments, and no error handling in most examples. Jim Warrington's wshLWForm.ocx , wshLtWtForm.ocx , & wshLWF_FormDesigner.ocx files ! Windows Script Components (WSC) Windows Script Components (WSC) Windows Script Components (WSC), formerly known as Scriplets, is a technology for developing powerful COM components in an easy fashion.

WSC's can be authored in any scripting language that has implemented the ActiveX Scripting Interfaces, which means that units of PerlScript code can be encapsulated as Windows Script Components. Be warned, reader, a lengthy introduction to the Component Object Model (COM) stretches until the topic of Windows Script Components. Please move directly to the topic of Windows Script Components if you feel that you understand the COM; the COM is essential to WSC, thus it is necessary to cover the fundamentals of the COM. The Component Object Model The Component Object Model (COM) is a language-independent and object-oriented programming model.

It is not, however, a programming language, and it does not demand that a new style of programming be learned. As many see it, the Component Object Model is elegant and powerful. COM Class. WSH FAQ. Credits This was literally lifted from the newsgroups postings almost verbatim in most places. If you wonder why you don't see many attributions, it got difficult to keep track - especially since I would have had to attach Michael Harris' and Torgeir Bakken's names to virtually every entry here. Most Useful Links If you use WSH or even just VBScript/Jscript, the most important download to have is the WSH 5.6 documentation. Voici la documentation en français. Clarence Washington's Win32 Scripting site is the best general place to find all things related to scripting. The Microsoft public newsgroups are the best place to ask questions and find answers: microsoft.public.scripting.jscript microsoft.public.scripting.vbscript microsoft.public.scripting.wsh Table Of Contents Where's the Jscript FAQ?

Where's the Jscript FAQ? Why imitate? Where can I find a list of all scriptable objects? There is no such thing. This was generated by having TLViewer export to IE. What version of WSH do I have? In a WSF file: Office XP Tool: Web Components. NOTICE: This download will no longer be available after July 31, 2012. Important: This download contains several important security fixes. For more information, please refer to the Microsoft Security Bulletin MS02-044: Web Components. If you have already downloaded and installed the previous version of the Microsoft Office XP Web Components prior to August 14, 2001, refer to the instructions in the Before you install section.

Microsoft Office Web Components are a collection of Component Object Model (COM) controls for publishing spreadsheets, charts, and databases to the Web. If you have Microsoft FrontPage 2002, Microsoft Access 2002, and Microsoft Excel 2002 installed, Office Web Components allow you to publish interactive data as part of a Web page. By installing the Office Web Components tool, you can view published components and data access pages on the Web without having to install Office XP.

Before you install. Office 2003 Add-in: Office Web Components. Office Web Components are a collection of Component Object Model (COM) controls for publishing spreadsheets, charts, and databases to the Web. Microsoft Office Web Components are a collection of Component Object Model (COM) controls for publishing spreadsheets, charts, and databases to the Web. They are also used to view these items when published and to view data access pages.

If you have Microsoft Office FrontPage 2003, Microsoft Office Access 2003, and Microsoft Office Excel 2003 installed, Office Web Components allow you to publish interactive data as part of a Web page. Used with Microsoft Internet Explorer version 5.01 or later, Office Web Components allow you to view a published control (spreadsheet, chart, or database) on a Web page and to view data access pages. By installing the Office Web Components tool, users can view published components and data access pages on the Web without having to install Office 2003. Loading your results. Please wait... How To Use the Spreadsheet Web Component with Visual Basic. If you want to use a spreadsheet or calculation engine in your custom Visual Basic solution, you can use the Spreadsheet control included with the Microsoft Office Web Components.

This article discusses how to insert a spreadsheet as a control on a Visual Basic form and populate the spreadsheet with data. You can add the Office Web Components to a form in Visual Basic in the same way that you add any other ActiveX control. The Spreadsheet control included with the Office Web Components is a more robust option than the DataGrid control that ships with Visual Basic.

Use the spreadsheet data to display formatted data, calculate formulas and allow user interactivity. IMPORTANT: To view and work with any of the Office Web Components, you must have them installed on your computer. The components are installed with Microsoft Office 2000, or, if your company has an Office 2000 site license, the components can be downloaded from your Intranet.

Steps to Create a Sample Project Getting Help. How To Use the Spreadsheet Web Component with Visual Basic. If you want to use a spreadsheet or calculation engine in your custom Visual Basic solution, you can use the Spreadsheet control included with the Microsoft Office Web Components. This article discusses how to insert a spreadsheet as a control on a Visual Basic form and populate the spreadsheet with data. You can add the Office Web Components to a form in Visual Basic in the same way that you add any other ActiveX control. The Spreadsheet control included with the Office Web Components is a more robust option than the DataGrid control that ships with Visual Basic. Use the spreadsheet data to display formatted data, calculate formulas and allow user interactivity. IMPORTANT: To view and work with any of the Office Web Components, you must have them installed on your computer. The components are installed with Microsoft Office 2000, or, if your company has an Office 2000 site license, the components can be downloaded from your Intranet.

Steps to Create a Sample Project Getting Help. Windows XP - Using batch parameters.

CMD.EXE

VBScript. Javascript/JScript/JScript.NET. Windows Script 5.6 Documentation. IWebBrowser2: Navigate2 ignored. InternetExplorer Object. ADSI Samples. Monitor servers, workstations, devices and applications in your network ActiveXperts Network Monitor is an advanced and easy tool for monitoring LAN and WAN networks, network servers, workstations and TCP/IP devices. It has a large set of built-in checks, and you can add new checks by writing scripts. You can use VBScript (Windows) or RSH (UNIX) for it. VBScript checks can use WMI and ADSI. WMI is an interface to a broad range of properties of a computer/OS/application. Use the samples below to get used to various ADSI classes, and use these classes in your own, custom ActiveXperts Network Monitor check. Active Directory Service Interfaces (ADSI) enable system administrators and developers of scripts or applications to easily query for and manipulate directory service objects.

ADSI present a single set of directory service interfaces for managing network resources from different directory services. Scripts written to ADSI will work with any directory service that offers an ADSI provider.