<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Code Library &#187; Script</title>
	<atom:link href="http://www.ucosoft.com/category/script/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ucosoft.com</link>
	<description>Free Source Code and Program Tips</description>
	<lastBuildDate>Thu, 22 Jul 2010 05:17:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Retrieving a class and WMI class</title>
		<link>http://www.ucosoft.com/retrieving-a-class-and-wmi-class.html</link>
		<comments>http://www.ucosoft.com/retrieving-a-class-and-wmi-class.html#comments</comments>
		<pubDate>Mon, 18 Dec 2006 02:48:32 +0000</pubDate>
		<dc:creator>hamo</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[WMI]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/archives/60.html</guid>
		<description><![CDATA[Note: This a part from MSDN, just for self refference. The copyright is handled by Microsoft. The first type of object you can retrieve is a WMI class. When retrieving a WMI class, you actually retrieve a class definition: that is, a listing of the properties, qualifiers, and methods that fully describe the class. However, [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>Note: This a part from <a href="http://msdn.microsoft.com" rel="nofollow">MSDN</a>, just for self refference. The copyright is handled by Microsoft.</em></strong> </p>
<p>The first type of object you can retrieve is a WMI class. When retrieving a WMI class, you actually retrieve a class definition: that is, a listing of the properties, qualifiers, and methods that fully describe the class. However, a class definition is for all purposes the class itself.</p>
<p><strong>To retrieve a class definition in VBScript</strong> </p>
<p>You can retrieve the class definition with the VBScript call <b>GetObject</b>, but do not specify a specific instance in the object path for the class.  </p>
<p>The following code example retrieves the class definition for the class that describes logical drives on your computer. For information on the defaults that are being used, see <strong>Using Defaults for More Concise Code</strong>. </p>
<p>Visual Basic and VBScript support the following syntax:<br />
<coolcode lang="vbs" linenum="no"><br />
Set objinst = GetObject(&#8220;WinMgmts:Win32_LogicalDisk&#8221;)<br />
</coolcode></p>
<p>Windows Script Host also supports:<br />
<coolcode lang="xml" linenum="no"><br />
<OBJECT id="myLocator" progid="WbemScripting.SWbemLocator"></OBJECT><br />
</coolcode><br />
<span id="more-60"></span></p>
<p>A class or instance can also be specified, in which case the returned object is a WMI object rather than a services object. </p>
<p>The <b>GetObject</b> function provided by VBScript and JScript cannot be used when running scripts embedded within an HTML page, as MicrosoftÂ® Internet Explorer disallows the use of this call for security reasons. This function also cannot be used to create an instance of the &#8220;generic&#8221; object <b>SWbemObject</b>.<P></P><br />
<strong>To retrieve a class definition in C++</strong></p>
<p>Call the <b>IWbemServices::GetObject</b> or <b>IWbemServices::GetObjectAsync</b> methods to retrieve the definition of a class. </p>
<p>A single class can have multiple class definitions, usually when you have more than one class provider loaded into a single namespace. When a class has multiple class definitions, WMI returns the first definition discovered and the WBEM_S_DUPLICATE_OBJECTS status code.</p>

	Tags: <strong><a href="http://www.ucosoft.com/tag/script" title="Script" rel="tag">Script</a>, <a href="http://www.ucosoft.com/tag/wmi" title="WMI" rel="tag">WMI</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/retrieving-a-class-and-wmi-class.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nullsoft Scriptable Install System v2.22</title>
		<link>http://www.ucosoft.com/nullsoft-scriptable-install-system-v222.html</link>
		<comments>http://www.ucosoft.com/nullsoft-scriptable-install-system-v222.html#comments</comments>
		<pubDate>Tue, 28 Nov 2006 02:39:38 +0000</pubDate>
		<dc:creator>hamo</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[Install]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/archives/41.html</guid>
		<description><![CDATA[NSIS (Nullsoft Scriptable Install System) is a professional open source system to create Windows installers. It is designed to be as small and flexible as possible and is therefore very suitable for internet distribution. Being a user&#8217;s first experience with your product, a stable and reliable installer is an important component of succesful software. With [...]]]></description>
			<content:encoded><![CDATA[<p>NSIS (Nullsoft Scriptable Install System) is a professional open source system to create Windows installers. It is designed to be as small and flexible as possible and is therefore very suitable for internet distribution. </p>
<p>Being a user&#8217;s first experience with your product, a stable and reliable installer is an important component of succesful software. With NSIS you can create such installers that are capable of doing everything that is needed to setup your software. </p>
<p><!--adsense--></p>
<p>NSIS is script-based and allows you to create the logic to handle even the most complex installation tasks. Many plug-ins and scripts are already available: you can create web installers, communicate with Windows and other software components, install or update shared components and more.</p>
<p><a href="http://nsis.sourceforge.net">http://nsis.sourceforge.net</a><br /><a href="http://nsis.sourceforge.net/Developer_Center">http://nsis.sourceforge.net/Developer_Center</a></p>
<p><span id="more-41"></span><br />
<!--adsense#468l--> <br />NSIS 2.22 is released. This release features build support for the free<br />Microsoft Visual C++ 2005 Express and includes the usual collection of new<br />features, bug fixes, improvements and translation updates.</p>
<p>Release Notes:</p>
<p>&nbsp;&nbsp;&nbsp; * Some changes have been made to the credit and license files in order to<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; avoid copyrights and license related confusions. This does not change in<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; any way how NSIS should or could be used. NSIS itself is still licensed<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; with the permissive BSD-like zlib license.<br />&nbsp;&nbsp;&nbsp; * Upgrade is recommended for early adopters of WinVer.nsh, due to a bug in<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Windows 98 and ME detection.</p>
<p>Changes:<br />Minor Changes</p>
<p>&nbsp;&nbsp;&nbsp; * Fixed context menu not disappearing when moving from instfiles page (bug<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #1115825)<br />&nbsp;&nbsp;&nbsp; * Fixed WinVer.nsh&#8217;s detection of Windows 98 and ME (reported on the forum)<br />&nbsp;&nbsp;&nbsp; * Fixed WriteUninstaller failure to overwrite read-only uninstallers (bug<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #1542530)<br />&nbsp;&nbsp;&nbsp; * Licensed lzma under CPL with a special exception, instead of LGPL<br />&nbsp;&nbsp;&nbsp; * Minor documentation updates and fixes (including bug #1584618, bug<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #1589877)<br />&nbsp;&nbsp;&nbsp; * Updated comments in MUI examples (bug #1595500)</p>
<p>New/Changed Commands</p>
<p>&nbsp;&nbsp;&nbsp; * Added `highest` option for RequestExecutionLevel</p>
<p>Translations</p>
<p>&nbsp;&nbsp;&nbsp; * Added Uzbek translation<br />&nbsp;&nbsp;&nbsp; * Fixed corruption in Lithuanian (bug #1602673)<br />&nbsp;&nbsp;&nbsp; * Minor Breton fixes<br />&nbsp;&nbsp;&nbsp; * Slovenian corrections (patch #1590108)</p>
<p>Build System</p>
<p>&nbsp;&nbsp;&nbsp; * Added Microsoft Visual C++ 2005 Express support<br />&nbsp;&nbsp;&nbsp; * SCons requirement upgraded to 0.96.93</p>

	Tags: <strong><a href="http://www.ucosoft.com/tag/install" title="Install" rel="tag">Install</a>, <a href="http://www.ucosoft.com/tag/script" title="Script" rel="tag">Script</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/nullsoft-scriptable-install-system-v222.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A great script language -Lua</title>
		<link>http://www.ucosoft.com/a-great-script-language-lua.html</link>
		<comments>http://www.ucosoft.com/a-great-script-language-lua.html#comments</comments>
		<pubDate>Tue, 21 Nov 2006 09:22:16 +0000</pubDate>
		<dc:creator>hamo</dc:creator>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[lua]]></category>

		<guid isPermaLink="false">http://www.ucosoft.com/archives/17.html</guid>
		<description><![CDATA[Lua (http://www.lua.org), is a greate script language, which is simple and powerful. Compared with JavaScript or VBScript provided by Microsoft ScriptEngine, Lua is more simple. Ther is no need of COM or Automation knowledge to support Lua. It fits me well. Below is the description of Lua from lua.org. Lua is a powerful light-weight programming [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Lua </strong>(http://www.lua.org), is a greate script language, which is simple and powerful. Compared with JavaScript or VBScript provided by Microsoft ScriptEngine, Lua is more simple. Ther is no need of COM or Automation knowledge to support Lua. It fits me well.  <!--adsense#468l--> Below is the description of Lua from lua.org.  Lua is a powerful light-weight programming language designed for extending applications. Lua is also frequently used as a general-purpose, stand-alone language. Lua is <a href="http://www.lua.org/license.html">free software</a>.   Lua combines simple procedural syntax with powerful data description constructs based on <a href="http://en.wikipedia.org/wiki/Associative_array">associative arrays</a> and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.  A fundamental concept in the design of Lua is to provide <em>meta-mechanisms</em> for implementing features, instead of providing a host of features directly in the language. For example, although Lua is not a pure object-oriented language, it does provide meta-mechanisms for implementing classes and inheritance. Lua&#39;s meta-mechanisms bring an economy of concepts and keep the language small, while allowing the semantics to be extended in unconventional ways. Extensible semantics is a distinguishing feature of Lua.  <!--adsense#300x250--> Lua is a language engine that you can embed into your application. This means that, besides syntax and semantics, Lua has an API that allows the application to exchange data with Lua programs and also to extend Lua with C functions. In this sense, Lua can be regarded as a language framework for building domain-specific languages.  Lua is implemented as a small library of C functions, written in ANSI C, and compiles unmodified in all known platforms. The implementation goals are simplicity, efficiency, portability, and low embedding cost. The result is a fast language engine with small footprint, making it ideal in embedded systems too.  Lua is designed and implemented by a <a href="http://www.lua.org/authors.html">team</a> at <a href="http://www.puc-rio.br/">PUC-Rio</a>, the Pontifical Catholic University of Rio de Janeiro in <a href="http://en.wikipedia.org/wiki/Brazil">Brazil</a>. Lua was born and raised at <a href="http://www.tecgraf.puc-rio.br/">Tecgraf</a>, the Computer Graphics Technology Group of PUC-Rio, and is now housed at Lua.org. Both Tecgraf and Lua.org are laboratories of the <a href="http://www.inf.puc-rio.br/">Department of Computer Science</a>.  <!--adsense#468l-->&#39;Lua&#39; means &#39;moon&#39; in Portuguese and is pronounced <strong>LOO-ah</strong>.</p>

	Tags: <strong><a href="http://www.ucosoft.com/tag/lua" title="lua" rel="tag">lua</a>, <a href="http://www.ucosoft.com/tag/script" title="Script" rel="tag">Script</a></strong><br />
]]></content:encoded>
			<wfw:commentRss>http://www.ucosoft.com/a-great-script-language-lua.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

