<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>visual-basic-script &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/visual-basic-script/</link>
	<description>Feed of posts on WordPress.com tagged "visual-basic-script"</description>
	<pubDate>Sun, 29 Nov 2009 23:02:42 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Manejo de Objetos Parte 2]]></title>
<link>http://angercode.wordpress.com/2009/09/12/manejo-de-objetos-parte-2/</link>
<pubDate>Sat, 12 Sep 2009 01:21:40 +0000</pubDate>
<dc:creator>Andres Felipe Trujillo Madrigal</dc:creator>
<guid>http://angercode.wordpress.com/2009/09/12/manejo-de-objetos-parte-2/</guid>
<description><![CDATA[Continuando con la segunda parte de Manejo de Objetos seguire con el manejo de Carpetas y entrada y ]]></description>
<content:encoded><![CDATA[Continuando con la segunda parte de Manejo de Objetos seguire con el manejo de Carpetas y entrada y ]]></content:encoded>
</item>
<item>
<title><![CDATA[Executing Shell Commands From A Visual Studio Deployment Project]]></title>
<link>http://openlandscape.wordpress.com/2009/03/23/executing-shell-commands-from-a-visual-studio-deployment-project/</link>
<pubDate>Mon, 23 Mar 2009 15:03:41 +0000</pubDate>
<dc:creator>openlandscape</dc:creator>
<guid>http://openlandscape.wordpress.com/2009/03/23/executing-shell-commands-from-a-visual-studio-deployment-project/</guid>
<description><![CDATA[Visual Studio&#8217;s Deployment Projects are quite limited. To get them to do more complicated setu]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><em><strong>Visual Studio&#8217;s Deployment Projects</strong></em> are quite limited. To get them to do more complicated setup tasks require writing <strong>custom deployment actions</strong> in C#. The problem with writing code is that it places an additional maintenance and testing burden on the developer. Often all that&#8217;s needed is to perform a few small operating system tasks. In these scenarios it just feels unjustified to revert to writing a bunch of C# setup logic.</p>
<p>I recently ran into such a scenario. As part of the deployment application, SQL Server 2005 Express had to be automatically unpacked. When the <em>SQL Server Express</em> setup utility is runned with the <em>/x argument</em>, it unpacks its contents, instead of installing SQL Server. The trick is how to execute this shell command with the minimum effort? The answer is to write a little <strong>Visual Basic script file (.vbs)</strong> that uses the <strong>WScript.Shell </strong>object. The emphasis is on little. I wouldn&#8217;t recommend sticking huge complicated installation logic in a script file. When you have lots of setup logic, then it&#8217;s time to write those C# custom actions, together with unit tests, and mocks. But for all those 1 liner shell commands, a script file is just the thing you need.</p>
<h2>Visual Basic Scripts (.vbs) Are Your Friend</h2>
<p>The VB script:</p>
<pre class="brush: vb;">
Set WshShell = CreateObject(&quot;WScript.Shell&quot;)
WshShell.Exec(Property(&quot;CustomActionData&quot;) &amp; &quot;\SQLEXPR32.EXE /x:&quot;&quot;&quot; &amp; Property(&quot;CustomActionData&quot;) &amp; &quot;\SQLEXPR2005&quot;&quot;&quot;)
Set WshShell = Nothing
</pre>
<p>The <strong>Windows Script Host (WScript.Shell)</strong> object has two candidate methods to execute commands &#8211; <strong>Run </strong>and <strong><em>Exec</em></strong>. According to Microsoft, <em>if you need access to command-line output, you should use the <strong>Exec </strong>method instead</em>. In this case I did not specifically need access to shell output, but for whatever reason I was unable to get Run to work.</p>
<p><img class="size-full wp-image-178 aligncenter" style="border:1px solid black;" title="customactionproperties" src="http://openlandscape.wordpress.com/files/2009/03/customactionproperties.jpg" alt="customactionproperties" width="377" height="340" /></p>
<p style="text-align:left;">Each<strong> custom action</strong> has access to the <strong>CustomActionData </strong>argument. This handy little argument is set on the custom action&#8217;s properties. It allows you to pass through the directory where the application was installed, using the global variable <strong>[TARGETDIR]</strong>.</p>
<p><strong>WScript.Shell.Exec</strong> allows you to execute any standard command line argument in a manner similar to using the <strong>Run</strong>&#8230; dialog box from the Start menu.</p>
<p><img class="size-full wp-image-177 alignright" style="border:1px solid black;margin-left:10px;margin-right:10px;" title="visualstudiodeploymentproject" src="http://openlandscape.wordpress.com/files/2009/03/visualstudiodeploymentproject.jpg" alt="visualstudiodeploymentproject" width="278" height="143" />What&#8217;s nice about this solution is that it allows you to package SQL Server Express with your solution in one file, and then unpack it during the installation process. The other option is to unpack SQL Server beforehand and add the individual files to your deployment solution. If you&#8217;re using Visual SourceSafe, you will run into problems with some of SQL Server&#8217;s files that have very long names, and are not DOS compatible.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cegah Virus VBS berkembang Biak]]></title>
<link>http://adizonne.wordpress.com/2009/03/02/cegah-virus-vbs-berkembang-biak/</link>
<pubDate>Mon, 02 Mar 2009 05:07:01 +0000</pubDate>
<dc:creator>adixersoft</dc:creator>
<guid>http://adizonne.wordpress.com/2009/03/02/cegah-virus-vbs-berkembang-biak/</guid>
<description><![CDATA[Virus Vbs adalah virus yang dibuat menggunakan bahasa pemrograman Visual Basic Script&#8230;.editorn]]></description>
<content:encoded><![CDATA[Virus Vbs adalah virus yang dibuat menggunakan bahasa pemrograman Visual Basic Script&#8230;.editorn]]></content:encoded>
</item>
<item>
<title><![CDATA[[How-To] Missed Outlook Attachment,get warned before its too late]]></title>
<link>http://technofriends.wordpress.com/2008/10/16/how-to-missed-outlook-attachmentget-warned-before-its-too-late/</link>
<pubDate>Thu, 16 Oct 2008 17:51:04 +0000</pubDate>
<dc:creator>Vaibhav Pandey</dc:creator>
<guid>http://technofriends.wordpress.com/2008/10/16/how-to-missed-outlook-attachmentget-warned-before-its-too-late/</guid>
<description><![CDATA[Gmail labs has an interesting feature which warns you if you miss to attach an attachment when sendi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a title="Try Gmail Labs interesting features" href="http://technofriends.in/2008/10/14/have-you-tried-these-gmail-labs-features/" target="_blank">Gmail labs has an interesting feature</a> which warns you if you miss to attach an attachment when sending the mail. A similar feature can be achieved in Microsoft Outlook as well, using Visual Basic scripting. </p>
<p>For those of you who wish to achieve the same in Outlook, here is the step by step process.</p>
<blockquote><p><strong><span style="color:#000080;">1.) Ensure that Macros are enabled for your Microsoft Office Outlook. Macros don&#8217;t work with Microsoft Outlook Express, therefore this setup cannot be achieved with Microsoft Outlook Express.</span></strong></p>
<p><strong><span style="color:#000080;">2.) Ensure that your security level is set to Medium. You can set the security level by clicking on Tools &#8211;&#62; Macro &#8211;&#62; Security. Set the desired level to Medium.</span></strong></p>
<p><strong><span style="color:#000080;">3.) Traverse through Tools &#8211;&#62; Macro &#8211;&#62; Visual Basic Editor ( Or press ALT + F11)</span></strong></p>
<p><strong><span style="color:#000080;">4.) Expand Project 1 by clicking on the + sign.</span></strong></p>
<div id="attachment_1155" class="wp-caption aligncenter" style="width: 255px"><a href="http://technofriends.files.wordpress.com/2008/10/project1-outlook.png"><img class="size-full wp-image-1155" title="project1-outlook" src="http://technofriends.wordpress.com/files/2008/10/project1-outlook.png" alt="Project Edition in Outlook" width="245" height="308" /></a><p class="wp-caption-text">Project Edition in Outlook</p></div>
<p><strong><span style="color:#000080;">5.) Expand Microsoft Office Outlook Objects.</span></strong></p>
<p><strong><span style="color:#000080;">6.) Double click ThisOutlookSession.</span></strong></p>
<div id="attachment_1156" class="wp-caption aligncenter" style="width: 310px"><a href="http://technofriends.files.wordpress.com/2008/10/code-outlook-attachment.png"><img class="size-medium wp-image-1156" title="code-outlook-attachment" src="http://technofriends.wordpress.com/files/2008/10/code-outlook-attachment.png?w=300" alt="Code for Attachment Detection" width="300" height="178" /></a><p class="wp-caption-text">Code for Attachment Detection</p></div>
<p><strong><span style="color:#000080;">7.) Copy paste the following code. </span></strong></p>
<pre class="brush: vb;">

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

    Dim lngres As Long

    If InStr(1, Item.Body, &quot;attach&quot;) &lt;&gt; 0 Then

        If Item.Attachments.Count = 0 Then

            lngres = MsgBox(&quot; Found 'Attach' in message, but no attachment found - send anyway?&quot;, _

                            vbYesNo + vbDefaultButton2 + vbQuestion, &quot;You asked me to warn you...&quot;)

            If lngres = vbNo Then Cancel = True

        End If

    End If

End Sub
</pre>
<p><strong><span style="color:#000080;">8.) The above code looks for the term &#8220;attach&#8221; ( without quotes) in the message body. If you send mails in your local language which is other than English, replace the word &#8220;attach&#8221; to the word you would be interested in searching for. This will make the code look for that particular word.</span></strong></p>
<p><strong><span style="color:#000080;">9.) Once the code is pasted, click on Save and then Exit.</span></strong></p>
<div id="attachment_1158" class="wp-caption aligncenter" style="width: 359px"><a href="http://technofriends.files.wordpress.com/2008/10/attachment-detection-in-outlook.png"><img class="size-full wp-image-1158" title="attachment-detection-in-outlook" src="http://technofriends.wordpress.com/files/2008/10/attachment-detection-in-outlook.png" alt="Detecting attachments in Outlook" width="349" height="378" /></a><p class="wp-caption-text">Detecting attachments in Outlook</p></div>
<p><strong><span style="color:#000080;">10.) From now on, if you create any mail with Attach in the mail body and try sending it without attaching any file, you will get an alert.</span></strong></p></blockquote>
<p><strong>Enjoy no more missing attachments in your important mails. Hope this post helps.</strong></p>
<p><strong>Also read</strong>: <a title="[How-To] Recover lost Outlook PST Password" rel="bookmark" href="http://technofriends.in/2008/05/07/how-to-recover-lost-outlook-pst-password/">[How-To] Recover lost Outlook PST Password</a></p>
<p><a title="[How-To] Recover lost Outlook PST Password" rel="bookmark" href="http://technofriends.in/2008/05/07/how-to-recover-lost-outlook-pst-password/"></a><a title="Microsoft Office comes free" rel="bookmark" href="http://technofriends.in/2008/08/09/kingsoft-office-2007-microsoft-office-comes-free/">Kingsoft Office 2007: Microsoft Office comes free</a></p>
<p><a title="Display two time zones in Microsoft Outlook" rel="bookmark" href="http://technofriends.in/2007/11/06/how-to-display-two-time-zones-in-microsoft-outlook/">How-To: Display two time zones in Microsoft Outlook</a></p>
<p><a title="Recovering ‘permanently’ deleted email in Microsoft Outlook 2003" rel="bookmark" href="http://technofriends.in/2007/08/24/recovering-permanently-deleted-email-in-microsoft-outlook-2003/">Recovering ‘permanently’ deleted email in Microsoft Outlook 2003</a></p>
<p><a title="Creating an Appointment From a Mail" rel="bookmark" href="http://technofriends.in/2007/09/24/microsoft-outlook-creating-an-appointment-from-a-mail/">Microsoft Outlook: Creating an Appointment From a Mail</a></p>
<p><strong>You can also follow me on <a title="Twitter" href="http://twitter.com/" target="_blank">Twitter</a> at <a title="Twitter" href="http://twitter.com/vaibhav1981" target="_blank">http://twitter.com/vaibhav1981</a></strong></p>
<p><strong></strong><strong>Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. <a title="Feed" href="http://feeds.feedburner.com/technofriends" target="_blank">You can subscribe to Technofriends feed by clicking here.</a></strong></p>
<p><strong>Cheers</strong></p>
<p><strong>Vaibhav</strong></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<div>
<div><strong><br />
</strong></div>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Palavras mais buscadas quando o assunto é Visual:]]></title>
<link>http://visuais.wordpress.com/2008/07/14/palavras-mais-buscadas-quando-o-assunto-e-visual/</link>
<pubDate>Mon, 14 Jul 2008 20:41:30 +0000</pubDate>
<dc:creator>blogymodas</dc:creator>
<guid>http://visuais.wordpress.com/2008/07/14/palavras-mais-buscadas-quando-o-assunto-e-visual/</guid>
<description><![CDATA[visual, comunicação visual, visual basic, visual studio, visual studio 2005, visual c++, identidade ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>visual, comunicação visual, visual basic, visual studio, visual studio 2005, visual c++, identidade visual, poluição visual, visual basic 6, deficiencia visual, deficiente visual, visual boy advance, visual basic 6.0, visual basic 2005, deficiência visual, visual boy, visual studio net, visual basic net, acuidade visual, audio visual, manual de identidade visual, microsoft visual c++, linguagem visual, visual boy advanced, microsoft visual studio, visual styles, visual foxpro, visual c#, arte visual, programação visual, visual style, visual kit 5, comunicacao visual, visual web developer, poluiçao visual, visual studio express, visual paradigm, visual c, visual kit, comunicaçao visual, download visual basic, percepção visual, visual kei, microsoft visual basic, apostila visual basic, visual editor, visual studio 2003, visual fox pro, campo visual, download visual studio, visual praia, visual class, visual g, visual c++ 2005, microsoft visual c++ runtime library, visual merchandising, poesia visual, visual basic express, novo visual, visual studio 2008, microsoft visual c++ runtime, visual fox, visual pinball, visual source safe, visual basic 2005 express, tutorial visual basic, visual studio 6, sistema visual, visual basic 5, visual c++ express, visual vista, microsoft visual studio 2005, visual basic 2005 express edition, visual basic excel, visual c++ runtime library, visual web pack, curso visual basic, visual studio 6.0, visual c++ runtime, visual c++ 6.0, visual web developer 2005, cultura visual, visual arts, guia visual, visual c# 2005, visual age, visual studio net 2005, visual task tips, visual studio c#, visual studio c++, pink visual, visual basic 5.0, visual dataflex, curso de visual basic, visual c# express, visual studio net 2003, visual net, visual studio 2005 express, visual sourcesafe, visual estudio, visual system, visual studio orcas, microsoft visual foxpro, eclipse visual editor, microsoft visual c, visual c# 2005 express edition, visual fortran, tutorial visual studio, visual task, visual basic 6 download, visual studio team system, visual j#, visual game boy, microsoft visual c++ 2005, visual express, download visual studio 2005, programa visual basic, embedded visual basic, texto visual, netbeans visual web, visual design, download visual c++, visual key, art visual, eclipse visual, visual studio 2005 service pack, visual styler, visual basic 6.0 download, xp visual styles, visual c++ 6, microsoft visual basic 6.0, microsoft visual c#, visual basic runtime, visual certexam, visual effects, visual basic script, visual interdev, codigo visual, visual studio 2007, visual basic for applications, visual c++ 2005 express edition, visual windows, microsoft visual studio net, visual java, visual basic access, memoria visual, www visual, visual web developer 2005 express edition, visual studio 2005 professional, visual c++ 2005 express</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Mudah Menguasai Visual Basic Script]]></title>
<link>http://tentangit.wordpress.com/2008/05/08/mudah-menguasai-visual-basic-script/</link>
<pubDate>Thu, 08 May 2008 15:04:41 +0000</pubDate>
<dc:creator>Fadhly Permata</dc:creator>
<guid>http://tentangit.wordpress.com/2008/05/08/mudah-menguasai-visual-basic-script/</guid>
<description><![CDATA[Apa itu Visual Basic Script? Microsoft Visual Basic Script atau yang biasa disebut dengan VBScript, ]]></description>
<content:encoded><![CDATA[Apa itu Visual Basic Script? Microsoft Visual Basic Script atau yang biasa disebut dengan VBScript, ]]></content:encoded>
</item>
<item>
<title><![CDATA[Usando Visual Basic Script en DTS]]></title>
<link>http://juanda2.wordpress.com/2007/11/29/usando-visual-basic-script-en-dts/</link>
<pubDate>Thu, 29 Nov 2007 01:57:07 +0000</pubDate>
<dc:creator>juanda</dc:creator>
<guid>http://juanda2.wordpress.com/2007/11/29/usando-visual-basic-script-en-dts/</guid>
<description><![CDATA[Muchas veces al importar datos de un txt a través de DTS algunos campos no se pueden transformar dir]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Muchas veces al importar datos de un txt a través de DTS algunos campos no se pueden transformar directamente y por lo tanto no sirve una simple transformación  Copy Column. Ante esta situación solo queda definir las tranformaciones a mano utilizando las demas disponibles (ActiveX Script,  DateTime String, Lowercase String, Middle of String, etc).<br />
En este ejemplo voy a mostrar ActiveX Script.</p>
<p>1)  Asumiendo que ya tenes el paquete armado y solo falta definir las transformaciones te vas al tab correspondiente y elegis New.</p>
<p align="center"><img src="http://juanda2.wordpress.com/files/2007/11/dts1.jpg" alt="DTS 1" /></p>
<p>2)  De la lista elegis ActiveX Script.</p>
<p align="center"><img src="http://juanda2.wordpress.com/files/2007/11/dts2.jpg" alt="DTS 2" /></p>
<p>3)   Seteas la columna fuente y la de destino y haces clic en Properties</p>
<p align="center"><img src="http://juanda2.wordpress.com/files/2007/11/dts3.jpg" alt="DTS 3" /></p>
<p>4) Te va a aparecer esta ventanda donde podesr escribi codigo en Visual Basic Script o JScript para aplicar las transformaciones como quieras.</p>
<p align="center"><img src="http://juanda2.wordpress.com/files/2007/11/dts4.jpg" alt="DTS 4" /></p>
<p align="left"> En este caso quiero pasar de un archivo de texto a un tabla en la base una columna con el siguiente formato: &#8220;4.09&#8243;, osea un número decimal. El problema esta en que si hacemos un Copy Column (definiendo la columna en la tabla como un decimal(10,2) y no un varchar(4)) el paquete va a tirar error, ya que el simbolo para un decimal en SQL Server 2000 es &#8220;,&#8221; y no &#8220;.&#8221;.<br />
Asi que para eso utilizamos la función Replace() para cambiar puntos por comas:</p>
<p align="left"><font color="#0000ff">Function Main()</font><br />
<font color="#0000ff">    Dim</font> datos<br />
datos = DTSSource(&#8220;Col008&#8243;)<br />
datos = <font color="#0000ff">Replace</font>(datos, &#8220;,&#8221; , &#8220;.&#8221; , 1, 20 )<br />
DTSDestination(&#8220;Ali_Per&#8221;) = datos<br />
Main = DTSTransformStat_OK<br />
<font color="#0000ff">End Function</font></p>
<p><font color="#0000ff"><font color="#000000">Creo que no hacen falta muchos comentarios, simplemente tomos los datos fuentes en una variable, reemplazo con Replace los caracteres y luego asigno los datos a la columa de salida.<br />
Despues seguro escribire algo sobre las demas tipos de tranformaciones&#8230; por ahora.. esto es todo&#8230; </font></font></p>
<p><font color="#0000ff"> </font></p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
