<?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: Amaljit Bharali</title>
    <description>The latest articles on DEV Community by Amaljit Bharali (@amaljitbharali).</description>
    <link>https://dev.to/amaljitbharali</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%2F2108037%2F8640a519-b577-4034-bf1e-26bc5697e742.JPG</url>
      <title>DEV Community: Amaljit Bharali</title>
      <link>https://dev.to/amaljitbharali</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amaljitbharali"/>
    <language>en</language>
    <item>
      <title>BatchScript: FolderCreatorTool using csv</title>
      <dc:creator>Amaljit Bharali</dc:creator>
      <pubDate>Sun, 04 May 2025 09:22:13 +0000</pubDate>
      <link>https://dev.to/amaljitbharali/batchscript-foldercreatortool-using-csv-3b0f</link>
      <guid>https://dev.to/amaljitbharali/batchscript-foldercreatortool-using-csv-3b0f</guid>
      <description>&lt;h2&gt;
  
  
  🧰 KPT-0002 | Create Folders from an Excel .csv File Using a Simple Batch Script
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;🔢 Post ID: KPT-0002&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If you loved the trick in &lt;strong&gt;&lt;a href="https://dev.to/amaljitbharali/batchscript-foldercreatortool-4k74"&gt;KPT-0001&lt;/a&gt;&lt;/strong&gt;, here’s an even smoother one — using a &lt;code&gt;.csv&lt;/code&gt; file instead of a &lt;code&gt;.txt&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;We’ll still use the same &lt;code&gt;.bat&lt;/code&gt; file approach, but this time we’re giving users the power of &lt;strong&gt;Excel + CSV&lt;/strong&gt; to manage folder paths quickly.&lt;/p&gt;




&lt;h2&gt;
  
  
  🎯 What This Script Does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Uses a &lt;code&gt;.csv&lt;/code&gt; file containing folder paths (e.g., &lt;code&gt;India\Assam\Kamrup&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Runs a lightweight &lt;code&gt;.bat&lt;/code&gt; script to create those folders instantly&lt;/li&gt;
&lt;li&gt;Works on any Windows PC — &lt;strong&gt;no installations, no admin rights, no extras&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;🖱️ Just double-click the &lt;code&gt;.bat&lt;/code&gt; file&lt;br&gt;&lt;br&gt;
🎉 Boom! Your folders appear like magic&lt;br&gt;&lt;br&gt;
🗃️ It's automation, the old-school way — fast, clean, and offline&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  📁 Real Use Case: What If Your Data Isn’t Ready?
&lt;/h2&gt;

&lt;p&gt;In government offices (like mine!), most Excel files look like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;State&lt;/th&gt;
&lt;th&gt;District&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Assam&lt;/td&gt;
&lt;td&gt;Kamrup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Assam&lt;/td&gt;
&lt;td&gt;Jorhat&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Assam&lt;/td&gt;
&lt;td&gt;Sivasagar&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Assam&lt;/td&gt;
&lt;td&gt;Dibrugarh&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Assam&lt;/td&gt;
&lt;td&gt;Nagaon&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;But our batch script can’t work with two columns — it needs a single folder path like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;India\Assam\Kamrup
India\Assam\Jorhat
India\Assam\Sivasagar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  🛠️ Excel Hack to Fix This
&lt;/h2&gt;

&lt;p&gt;Here’s a &lt;strong&gt;quick Excel formula&lt;/strong&gt; that combines columns into paths:&lt;/p&gt;

&lt;p&gt;If your data is in columns A and B:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=TEXTJOIN("\", TRUE, "India", A2, B2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or, for older Excel:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;="India\" &amp;amp; A2 &amp;amp; "\" &amp;amp; B2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;💡 Paste this in Column C and drag down — copy the result into a &lt;code&gt;.csv&lt;/code&gt;, and you’re done.&lt;/p&gt;




&lt;h2&gt;
  
  
  🗂️ Example Folder Paths
&lt;/h2&gt;

&lt;pre&gt;
India\Assam\Kamrup
India\Assam\Jorhat
India\Assam\Sivasagar
India\Assam\Dibrugarh
India\Assam\Nagaon
&lt;/pre&gt;

&lt;p&gt;📄 &lt;a href="https://drive.google.com/file/d/1cy10-ec2WzDxmd0QEleeifHlKFzdZCkm/view?usp=sharing" rel="noopener noreferrer"&gt;Download example_government_folder_data.csv&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🙌 Wrapping Up
&lt;/h2&gt;

&lt;p&gt;This CSV method is great for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Government departments&lt;/li&gt;
&lt;li&gt;Office record keeping&lt;/li&gt;
&lt;li&gt;Anyone organizing district/state-wise data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It brings your Excel database to life in your Windows folders.&lt;/p&gt;




&lt;h3&gt;
  
  
  📥 Get the Files
&lt;/h3&gt;

&lt;p&gt;📁 &lt;a href="https://drive.google.com/file/d/1cxHNHJqZlB_Lke3RZODSYZaDKmcytmYj/view?usp=sharing" rel="noopener noreferrer"&gt;Download Script &amp;amp; Sample CSV (.ZIP)&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;📚 &lt;strong&gt;Explore more tools:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
━━━━━━━━━━ 𖤓 &lt;a href="https://sites.google.com/view/thekrittikaproject" rel="noopener noreferrer"&gt;THE KRITTIKA PROJECT&lt;/a&gt; 𖤓 ━━━━━━━━━━&lt;/p&gt;

&lt;p&gt;✍️ Written by &lt;strong&gt;Amaljit Bharali&lt;/strong&gt;  | ☄️ Krittika Guides Me | The Rover Builds | 2025&lt;/p&gt;

</description>
      <category>automation</category>
      <category>windows</category>
      <category>thekrittikaproject</category>
      <category>batchscripting</category>
    </item>
    <item>
      <title>BatchScript: FolderCreatorTool using a *.txt file</title>
      <dc:creator>Amaljit Bharali</dc:creator>
      <pubDate>Sun, 04 May 2025 06:44:16 +0000</pubDate>
      <link>https://dev.to/amaljitbharali/batchscript-foldercreatortool-4k74</link>
      <guid>https://dev.to/amaljitbharali/batchscript-foldercreatortool-4k74</guid>
      <description>&lt;h2&gt;
  
  
  🧰 KPT-0001 | Create Folders Automatically with a Simple Batch Script
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;🔢 Post ID: KPT-0001&lt;/p&gt;

&lt;p&gt;Need to create a structured set of folders in Windows without any special software? Here's a lightweight &lt;code&gt;.bat&lt;/code&gt; script that reads a text file and builds your folder tree instantly.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  🎯 What This Script Does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Reads folder names from a &lt;code&gt;folders.txt&lt;/code&gt; file&lt;/li&gt;
&lt;li&gt;Creates folders and subfolders wherever you run the script&lt;/li&gt;
&lt;li&gt;Requires &lt;strong&gt;no installation&lt;/strong&gt; — works on all modern Windows PCs&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;🖱️ Just double-click the &lt;code&gt;.bat&lt;/code&gt; file&lt;br&gt;&lt;br&gt;
🎉 Boom! Your folders appear like magic, already named just the way you want&lt;br&gt;&lt;br&gt;
🗃️ It's automation, the old-school way — fast, clean, and offline&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  📁 Example Input File (&lt;code&gt;folders.txt&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;I have planned my folder structure as below — a simple model of my native state &lt;strong&gt;India &amp;gt; Assam &amp;gt; Districts&lt;/strong&gt;. Basically I want to create a folder "India" under which my State "Assam" and finally all my district-wise folders under the state "Assam":&lt;/p&gt;

&lt;pre&gt;
India
└── Assam
    ├── Baksa
    ├── Barpeta
    ├── Biswanath
    ├── Bongaigaon
    ├── Cachar
    ├── Charaideo
    ├── Chirang
    ├── Darrang
    ├── Dhemaji
    ├── Dhubri
    ├── Dibrugarh
    ├── Goalpara
    ├── Golaghat
    ├── Hailakandi
    ├── Hojai
    ├── Jorhat
    ├── Kamrup
    ├── Kamrup Metropolitan
    ├── Karbi Anglong
    ├── Karimganj
    ├── Kokrajhar
    ├── Lakhimpur
    ├── Majuli
    ├── Morigaon
    ├── Nagaon
    ├── Nalbari
    ├── Sivasagar
    ├── Sonitpur
    ├── South Salmara-Mankachar
    ├── Tinsukia
    ├── Udalguri
    └── West Karbi Anglong
&lt;/pre&gt;




&lt;h2&gt;
  
  
  🗂️ The Final Output (Example File)
&lt;/h2&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%2Fvwvmo7eebb92zentxcsc.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%2Fvwvmo7eebb92zentxcsc.png" alt="Districtwise Folder Structure" width="800" height="319"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🙌 Wrapping Up
&lt;/h2&gt;

&lt;p&gt;This simple batch script saves time, removes repetition, and gives you full control over folder structures — no software or manual creation of folders and then renaming each and every folder required.&lt;/p&gt;

&lt;p&gt;💡 Whether you're organizing projects, journals, or research — this is just the beginning of more powerful Windows tricks I’ll be sharing.&lt;/p&gt;

&lt;p&gt;💡 Want to do the same with Excel instead of a text file?&lt;br&gt;&lt;br&gt;
👉 Check out my next blog – KPT-0002 &lt;em&gt;(Link to be added once published)&lt;/em&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  📥 Get the Files
&lt;/h3&gt;

&lt;p&gt;📁 &lt;a href="https://drive.google.com/file/d/1c4_pjMY1rnhE5kmZDmpv9Z5AnWTemvDS/view?usp=sharing" rel="noopener noreferrer"&gt;Download Folder Script (.ZIP)&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;📚 &lt;strong&gt;Explore more tools:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
━━━━━━━━━━ 𖤓 &lt;a href="https://sites.google.com/view/thekrittikaproject" rel="noopener noreferrer"&gt;THE KRITTIKA PROJECT&lt;/a&gt; 𖤓 ━━━━━━━━━━&lt;/p&gt;

&lt;p&gt;✍️ Written by &lt;strong&gt;Amaljit Bharali&lt;/strong&gt;  | ☄️ Krittika Guides Me | The Rover Builds | 2025&lt;/p&gt;

</description>
      <category>automation</category>
      <category>thekrittikaproject</category>
      <category>batchscripting</category>
      <category>windows</category>
    </item>
  </channel>
</rss>
