<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Thejana Rathnayake</title>
    <description>The latest articles on DEV Community by Thejana Rathnayake (@tabbysl).</description>
    <link>https://dev.to/tabbysl</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F999481%2F4643207b-4bbc-4b3d-9f90-f3ba1e931aeb.jpg</url>
      <title>DEV Community: Thejana Rathnayake</title>
      <link>https://dev.to/tabbysl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tabbysl"/>
    <language>en</language>
    <item>
      <title>Make (.bat) files always open with Administrator permissions</title>
      <dc:creator>Thejana Rathnayake</dc:creator>
      <pubDate>Sat, 31 Dec 2022 10:30:00 +0000</pubDate>
      <link>https://dev.to/tabbysl/make-batch-bat-files-always-open-with-admin-elevated-permissions-egd</link>
      <guid>https://dev.to/tabbysl/make-batch-bat-files-always-open-with-admin-elevated-permissions-egd</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Many of you use, or have used &lt;em&gt;(.bat) Batch&lt;/em&gt; files, right? Well, if so, you might know that when you open a &lt;em&gt;(.bat)&lt;/em&gt; file it opens without administrator permissions. (unless you run it as administrator)&lt;br&gt;
So, I've made this script that will make all you batch files always runas administrator!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How to run the script?
&lt;/h2&gt;

&lt;p&gt;Well, easy! the script is in &lt;a href="https://github.com/TabbySL/Make-all-.bat-files-start-in-Elevated-mode" rel="noopener noreferrer"&gt;this GitHub page&lt;/a&gt; and all you have to do is download the script. After downloading, the file could be blocked by  your antivirus, because the file contains code that involves editing registry values. if a screen called 'Windows Smartscreen protected your PC', click more info and then click run anyway. Make sure to open the file &lt;em&gt;as administrator&lt;/em&gt; that says &lt;strong&gt;Make batch files run with elevated permissions&lt;/strong&gt;. Now, when you click that it should give 2 options on the screen; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4wczi0im73n8ag6bq73w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4wczi0im73n8ag6bq73w.png" alt="Selecting the fist option after running the script" width="452" height="149"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add &lt;/li&gt;
&lt;li&gt;Remove &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;As by now, you might have guessed already, you have to select the 'Add' option, and click 'YES' on the MSGBOX.&lt;/p&gt;

&lt;p&gt;That's it! Now you have added the script to your computer! try opening a (.bat) file and it will start in Administrator mode automatically! &lt;/p&gt;

&lt;h2&gt;
  
  
  Note!
&lt;/h2&gt;

&lt;p&gt;When You run this script, this makes all batch files to be run in administrator mode, instead of normal mode. This could mean that, even a batch script containing malicious code could easily get unwanted permission and probably will wreck your PC. &lt;strong&gt;So make sure to Remove the script when you don't use it anymore!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Thanks for Reading ~!&lt;/p&gt;

</description>
      <category>emptystring</category>
    </item>
    <item>
      <title>Permanently Change CMD Font Color Using (.reg) Files.</title>
      <dc:creator>Thejana Rathnayake</dc:creator>
      <pubDate>Fri, 30 Dec 2022 04:01:35 +0000</pubDate>
      <link>https://dev.to/tabbysl/permanently-change-cmd-font-color-using-reg-files-5hh6</link>
      <guid>https://dev.to/tabbysl/permanently-change-cmd-font-color-using-reg-files-5hh6</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;We all have gone through the trouble of manually changing the CMD font color using the &lt;strong&gt;color&lt;/strong&gt; command. And even then, when you restart CMD; it all resets to default white. But, no worries! There’s a fix to this!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;With This guide, I’ll be teaching you how you can change your CMD font color permanently; without any effort. And, it turns out that its not that hard!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6zeAj2_t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/800/1%2ACt3VsstKC5vAhCUm1JjM3w.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6zeAj2_t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/800/1%2ACt3VsstKC5vAhCUm1JjM3w.jpeg" alt="A Command Line Interface Example" width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Image Credits: TechRepublic&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Step 1&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Firstly, we have to head over to this &lt;a href="https://github.com/TabbySL/Permanent-CMD-Font-Color-Change"&gt;&lt;strong&gt;GitHub Page&lt;/strong&gt;&lt;/a&gt; and fetch the necessary files. All you have to do, is click the Green color &lt;strong&gt;&lt;em&gt;“Code”&lt;/em&gt;&lt;/strong&gt; button, and then select &lt;strong&gt;&lt;em&gt;‘Download ZIP’.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Use the image below as reference;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BeXcz437--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/373/1%2AFCGdjJvmFq_PsmZcc1eNTA.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BeXcz437--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/373/1%2AFCGdjJvmFq_PsmZcc1eNTA.jpeg" alt="" width="373" height="346"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Downloading the Repository As a ZIP file.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Step 2&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Now that you have downloaded the Repository, it should appear in your &lt;strong&gt;‘Downloads’&lt;/strong&gt; folder, or whichever folder you have selected for downloads to appear.&lt;/p&gt;

&lt;p&gt;Now, double-click on the &lt;em&gt;.zip&lt;/em&gt; file that you downloaded, and there will be a folder in it. Clicking on that folder will lead you to a list of registry(&lt;em&gt;.reg&lt;/em&gt;) files, which you can select one color that you like from the list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aJbgbMKX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/1019/1%2Ar1kAcCv1cexD9F--5w5pqg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aJbgbMKX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/1019/1%2Ar1kAcCv1cexD9F--5w5pqg.png" alt="Selecting a color from the list" width="880" height="546"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Selecting a color that you like For your CMD to be.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Step 3&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Alright! Now that you have a color selected, you can Double click on the file with your chosen color. You will be prompted with 2 messeges; click yes for both of them.&lt;/p&gt;

&lt;p&gt;Finally, you will get a popup, saying &lt;strong&gt;‘Key values were sucessfully added to the Registry’&lt;/strong&gt; This means, that the color was sucessfully changed, and now you can open your CMD prompt, and Enjoy your new font color!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SKUEYIGa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/751/1%2A6yoLmlCpyh1bmc8eBpuwrA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SKUEYIGa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/751/1%2A6yoLmlCpyh1bmc8eBpuwrA.png" alt="" width="751" height="436"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;CMD Font color has been Sucessfully changed!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;And now, you dont have to bother about changing the color manually — ever again! Just click on the color you want, and it will last forever! (unless you reset your computer or something… lol)&lt;/p&gt;

&lt;p&gt;Also, you might have noticed the ‘Bright-White’ (.reg) registry file too. Well, as you know; the CMD has a bit of a dull white font color by default. Its not complete white, but kinda like a shaded grey. So, when you click that (.reg) file, it will change the font color to complete White — which, I personally prefer. ; )&lt;/p&gt;

&lt;p&gt;I hope the guide explained ‘ &lt;strong&gt;How to change the CMD font color permanently’&lt;/strong&gt; very well. If you are stuck somewhere, you can also watch this Video, in which I explain it in a Screen-Recording;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/aiV7ezXJLvI"&gt;https://youtu.be/aiV7ezXJLvI&lt;/a&gt;&lt;/p&gt;

</description>
      <category>windowscmd</category>
      <category>technology</category>
      <category>cmdtipsandtricks</category>
      <category>changecmdfontcolor</category>
    </item>
  </channel>
</rss>
