<?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>Otak Atik [dot] Com &#187; Visual basic script</title>
	<atom:link href="http://www.otakatik.com/tag/visual-basic-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.otakatik.com</link>
	<description>Empowering Computer</description>
	<lastBuildDate>Wed, 25 Jan 2012 09:06:12 +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>Hide Run Menu With Visual Basic Script</title>
		<link>http://www.otakatik.com/hide-run-menu-with-visual-basic-script/</link>
		<comments>http://www.otakatik.com/hide-run-menu-with-visual-basic-script/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 06:26:03 +0000</pubDate>
		<dc:creator>Edi Kwie</dc:creator>
				<category><![CDATA[Windows Registry]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[Run menu]]></category>
		<category><![CDATA[Visual basic script]]></category>

		<guid isPermaLink="false">http://www.otakatik.com/?p=265</guid>
		<description><![CDATA[I&#8217;ve written an article about Manage Registry with Visual Basic Script and this time I want to modified the script to make it to manage Run menu. As you know Run menu is a great menu, with Run you may can go everywhere easier. So, I call it gateway. Yup it&#8217;s a gate to go [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0093/logo.png" alt="" align="left" /> I&#8217;ve written an article about <a href="http://www.otakatik.com/disable-registry-editor-using-vb-script/">Manage Registry with Visual Basic Script</a> and this time I want to modified the script to make it to manage Run menu. As you know Run menu is a great menu, with Run you may can go everywhere easier. So, I call it gateway. Yup it&#8217;s a gate to go every corner your computer.<span id="more-265"></span></p>
<p>So, if you want make your computer be more secure you can hide it when you leave your computer and show it again if you use the computer.</p>
<p>And if you edit it through Registry Editor, I think that&#8217;s not a efficient way. But if you want do to that just look here to get the trick. But if you want make it easier just write several script line but after write it you&#8217;ll get a shorter way to hide/show it.</p>
<ol>
<li>Open Notepad with click <strong>Start</strong> -&gt; <strong>Run</strong> and then type <code>notepad</code> in box.<br />
<img title="open notepad" src="http://www.otakatik.com/wp-content/uploads/general/start-run-notepad.jpg" alt="Open notepad" /></li>
<li> And type this script in notepad:<br />
<img title="write in notepad" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0093/notepad_1.jpg" alt="write in notepad" /></li>
<pre name="code" class="vb">
Dim otakatik
ShowHideRun()
Sub ShowHideRun()
Set otakatik=WScript.CreateObject("WScript.Shell")
describe="Type 0 or 1 : " &amp; VbCrLf &amp;_
"[0] -&gt; Show Run Menu." &amp; VbCrLf &amp;_
"[1] -&gt; Hide Run Menu."

question=InputBox(describe, "Manage Run Menu",0)

otakatik.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion" &amp;_
"\Policies\Explorer\NoRun",question,"REG_DWORD"

If question=1 Then
MsgBox "Run menu has hidden.",VbInformation, "Hide"
Else
If question=0 Then
Msgbox "Run menu has shown",VbInformation, "Show"
otakatik.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion" &amp;_
"\Policies\Explorer\NoRun"
Else
Msgbox "Input 0 or 1 only !",VbInformation, "Wrong Input"
ShowHideRun()
End If
End If
End Sub</pre>
<li>Save it with click <strong>File</strong> -&gt; <strong>Save As</strong> menu and then give it file name: <code>managerun.vbs</code> (you may change it with your favorite name and don&#8217;t forget to change Save as type combo to All Files), choose your favorite folder then click <strong>OK</strong> button.<br />
<img title="save as" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0093/save_as_2.jpg" alt="save as" /></li>
<li>Open the folder where the managerun.vbs was put.<br />
<img title="open managerun.vbs" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0093/file_3.jpg" alt="open managerun.vbs" /></li>
<li>Double click the file, and Manage Run Menu window will opened.<br />
<img title="open managerun.vbs" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0093/file_3.jpg" alt="open managerun.vbs" /></li>
<li>Give it value 0 to show your Run menu.<br />
<img title="0 to show" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0093/manage_4.jpg" alt="0 to show" /><br />
<img title="0 to show" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0093/has_shown_5.jpg" alt="0 to show" /></li>
<li>Or give it value 1 to hide it.<br />
<img title="1 to show" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0093/has_hide_6.jpg" alt="1 to show" /></li>
<li>Restart your computer and try to click Start menu, if you was hid it so, Run menu will hid.<br />
<img title="Run has gone" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0093/run_has_gone_7.jpg" alt="Run has gone" /></li>
<li>And if you try to press Windows key + R to force open Run menu, you&#8217;ll get a noticed message box.<br />
<img title="error message" src="http://www.otakatik.com/wp-content/uploads/tiptricks/0093/message_8.jpg" alt="error message" /></li>
<li>To show it again, just open your script and give it value 0.</li>
</ol>
<p><em>(article no:0093)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.otakatik.com/hide-run-menu-with-visual-basic-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Disable Registry Editor Using VB Script</title>
		<link>http://www.otakatik.com/disable-registry-editor-using-vb-script/</link>
		<comments>http://www.otakatik.com/disable-registry-editor-using-vb-script/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 09:50:28 +0000</pubDate>
		<dc:creator>Edi Kwie</dc:creator>
				<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[registry]]></category>
		<category><![CDATA[Visual basic script]]></category>

		<guid isPermaLink="false">http://www.otakatik.com/disable-registry-editor-using-vb-script/</guid>
		<description><![CDATA[As you know that Registry Editor is a gate that can change the all your Windows registry value. It means if somebody want to destroy your Windows XP just open Registry Editor and change the important. So I want to share the trick to disable or enable Registry Editor with one click&#8230; There are so [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/logo.png" alt="Logo" title="Logo" /><br />
As you know that Registry Editor is a gate that can change the all your Windows registry value. It means if somebody want to destroy your Windows XP just open Registry Editor and change the important. So I want to share the trick to disable or enable Registry Editor with one click&#8230;<br />
<span id="more-29"></span><br />
There are so many tricks to enable / disable Registry Editor but I think this trick is easy enough to do that although we need to writing a script to first time but after your script has done then it&#8217;s be easier, we will use the Visual Basic Script language here.</p>
<p>OK, follow this trick:<br />
1. Open Notepad (or your favorite text editor) to type the script via <strong>Start &#8211; Run</strong> menu and type <code>notepad</code> in textbox then click OK button or press Enter<br />
key.<br />
<img src="http://www.otakatik.com/wp-content/uploads/general/start-run-notepad.jpg" alt="Open notepad" title="Open notepad" /></p>
<p>2. And type the script like this:</p>
<pre name="code" class="vb">
Dim otakatik
ManageRegedit()
Sub ManageRegedit()
Set otakatik=WScript.CreateObject("wscript.shell")
describe="Type 0 or 1 : " &amp; VbCrLf &amp;_
             "[0] -&gt; Enable Regedit." &amp; VbCrLf &amp;_
             "[1] -&gt; Disable Regedit."

question=InputBox(describe, "Edit Regedit",0)
otakatik.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion" &amp;_
                        "\Policies\System\DisableRegistryTools",question,"REG_DWORD"

If question=1 Then
   MsgBox "Registry is disabled.",VbInformation, "Disabled"
Else
   If question=0 Then
      Msgbox "Registry is enabled.",VbInformation, "Enabled"
      otakatik.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion" &amp;_
                                "\Policies\System\DisableRegistryTools"
   Else
      Msgbox "Input 0 or 1 only !",VbInformation, "Wrong Input"
      ManageRegedit()
   End If
End If
End Sub</pre>
<p>You can copy and paste to your notepad.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/type_script_1.jpg" alt="Type script" title="Typing the script" /></p>
<p>3. Save it, click <strong>File &#8211; Save As</strong>.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/save_as_2.jpg" alt="Save As" title="Save As" /></p>
<p>4. Change <strong>Save As Type</strong> to <strong>All Files</strong> and give it the name <code>regedit.vbs</code> (or whatever you want but the extension has to <code>vbs</code>).<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/give_file_name_3.jpg" alt="Save As Type" title="Change type of file" /></p>
<p>5. Then make sure that you have the right file name format, you can see it on Notepad title bar.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/saved_4.jpg" alt="Make sure" title="Ensuring that you have the right file name" /></p>
<p>6. Open your folder that containing <code>regedit.vbs</code> file.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/open_folder_vbs_5.jpg" alt="Open vbs folder" title="Open folder which contains vbs file" /></p>
<p>7. Double click that file and <strong>Edit Regedit</strong> window will opened.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/edit_regedit_6.jpg" alt="Edit Regedit window" title="Edit regedit" /></p>
<p>8. If you fill the textbox with value 0, Registry Editor will enable to open.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/registry_enable_7.jpg" alt="Message box" title="Registry is enabled" /></p>
<p>9. But if you fill it with value 1,<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/type_value_1_8.jpg" alt="Typing value to 1" title="Typing value to 1" /></p>
<p>Registry Editor will disable to open.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/reg_disable_9.jpg" alt="Message box" title="Registry is disabled" /></p>
<p>10. Now, try to open your Registry Editor and you will get a notification that Registry Editor is disabled.<br />
<img src="http://www.otakatik.com/wp-content/uploads/tiptricks/0085/msgbox_10.jpg" alt="Message box" title="Registry is disabled" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.otakatik.com/disable-registry-editor-using-vb-script/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

