Going Batsh*t over BAT files
I don't know why I didn't pay much attention to BAT / CMD commands in the past.
Recently though, I've bee using them more and more for all sorts of tasks, especially when accessing files with long path names.
My current "Going Bats" test file [.. when starting this post] is this:
[Jump to (here) for Latest to explore]
[Jump to (here) for Latest appends >> to this post]
@echo off
rem This is one way to include a comment. Next 2 lines output CRLF's
echo. <-- causes a line skip, aka print a CRLF
echo.
echo This text will be printed on the CMD console. "Hello World"
echo.
echo See Go BAts foleder in Other Sw tab
echo.
color 1E <-- causes my console to display as Yellow text on Blue background
<-- See also MSFT Learn COLOR CMD (here)
<-- more cmds = [cd], [clip], [cls], [date], [dir], [echo], [find],
[goto], [help], [if], [md], [more], [path], [pause], [print],
[rename], [time], [timeout], [title], [tree], [type], [where],
[xcopy], [copy], [], [], [], [], [], [], [MSFT Learn all],
echo Console colors should now be yellow fonton blue background
echo Now we change the path to point to the folder of my start up HTML file
cd "C:\Users\{Me}\Documents\U\Desk (real one)\12) PROJECTS of 2026\12c) Browser PROJECTS\12c.1) Browser Home Page 01 design"
echo And we verify that we are there by outputting the directory
dir <-- causes my console to display contents of current directory
rem below will prevent console from closing so you can see results
pause <-- causes my console to wait until I hit a key
echo help should show all commands
help <-- causes my console to display all the available CMD commands
pause
In the below More-to-Explore, I'm inserting all the recent going bats tutorials I found (and related other stuff by same author) Then I will sort the listing to move the better ones to the top ... TO BE CONTINUED
Future plans = Use Dragon Naturally or Whisper to dictate text and copy it to the clipboard, then activate a BAT macro that appends (>>) the clipboard contents to a target file
Postscript on April 29, 2026: Can't use the Clipboard. Why?
Almost no one tells you the why. But if you try to find a CMD command or utility to move data FROM the Clipboard for appending to a file, it can't be found. The "clip" CMD works only in the direction of moving data TO the clipboard.
Finally found a possible explanation for why. Here: ThioJoe's "Breaking the Windows Clipboard". The Clipboard consumes a lot of memory because it stores the data in multiple formats all at once.
So the workaround is this: Don't use the clipboard! Instead save the dictated text to a known file.
rem below pause will prevent console from closing so you can see results
pause
set /p APPENDAGE= Enter the text you want to append_:
echo %APPENDAGE% >> testadd.txt <--appends the user input to target file
pause
echo Appendage has been appended to the testadd file
echo Put some text in the Dragon PAd and sav it into DragonPad-01
pause
type "C:\Users\[Me]\Desktop\DragPad-01.txt" >> testadd.txt
---^^^-- above "type" command appends the Dragon output to the target file
pause
exit
---vvv--- below Gemini suggestion is slow and inserts spaces between chars
powershell -command "Get-Clipboard | Out-File -FilePath 'testadd.txt' -Append"
echo next, help should show all CMD commands below
pause
help
pause
Postscript on May 01, 2026: To change the font size inside the CMD console, use a shortcut to the BAT/CMD file to launch the same rather than launching it directly. Go ino the "Properties" of the shortcut and set the Font size as desired
String Manipulation methods = (here)
MORE TO EXPLORE
(AxL) =Ask Leo! -- What’s a Batch File?
SS64.com ::: ASCII Table / character codes [See also ANSI colors], [HTML colors]
SS64 ::: LIST ::: How 2 for Windows CMD Commands
SS64 ::: Batch File Scripting Techniques [See also Sample Collections]
SS64 ::: A-Z List of :: Windows CMD commands [See also Windows Resources]
(TJ) = TheoJoe -- BAT's / CMD's Tips and Tricks [See also Windows T&T's 81 videos]
(TJ) QAB ::: Cool about-CMD Posts
(craze) Cool CMD commands - Google Search
(craze) BAT playlist = (29) How To Program In Batch - YouTube
batch file for appending text to target file - Google Search
(Tech craze) == Batch Programing: Lesson 4 (How to Copy,Move and Rename files + MORE) - YouTube
(Tech craze) == Batch Programing: Lesson 4 (How to Copy,Move and Rename files + MORE) - YouTube
(CSck) -- videos == (20) Code Stop (Cham K.) - YouTube
(CSck) = (21) Batch Scripting - 1 - Basic Commands - YouTube
(NBA) playlists == BAT's (29)Nerd's Best Advice - YouTube
(NBA) --playlist = (29) Batch File Tutorials - YouTube
(T-4-i) = Tips 4 IT-- 20 Run Commands Every Windows User Should Know
---^^^--- Your Computer is Slow? Run These CMD Commands
---^^^--- 12 Hidden CMD Commands That Save Hours of Work
---^^^---
---^^^---
(G4G) = Geeks -- Essential CMD Commands for Windows Users
---^^^--- Useful CMD Commands for Daily Use in Windows OS
---^^^--- QAB ::: G4G re Techtips about CMD
---^^^--- Every Known Windows Terminal, Command Prompt and PowerShell Command
---^^^--- (Major_G) -- System Tools Sub-Categories [Win CMD's here] [File Manage] [Mouse]
---^^^--- How to Geek re Windows
---^^^--- QAB ::: Geek CMD commands
---^^^--- QAB ::: Basic CMD commands list [MSFT Learn here] [date] [time] [type] [set] [echo]
---^^^--- (CA) Code Academy -- Complete List: Command Line Prompt (CMD)
---^^^---
---^^^---
---^^^---
---^^^---
(Prof) = Professor Messer -- Windows Command Line Tools
---^^^--- Scripting Languages [BAT, PowerShell,
---^^^--- Overview of Windows [69 videos] [Settings], [Control], [Tools], [Social], [DocTypes], [],
---^^^---
(MServ) = Matt's Lectures and Tutorials -- Command Line Interface (CLI) For Beginners
---^^^--- How To Install GCC on Windows [for deploying C++ development]
---^^^--- Python Version Control with pyenv & VS Code on Windows (2025)
---^^^--- CSCI 21 Lecture 1 (Introductions, Syllabus, Tools, Course Overview, C++ Intro)
---^^^---
---^^^---
(ITCq) -- IT Career Questions == Command Prompt Basics Part 2 - I.T. Basics Series
---^^^--- Command Prompt Basics Playlist [26 videos]
---^^^--- What to know if you want to work in I.T [Playlist 136 videos]
---^^^--- Trace Route and Run As Administrator - IT Basics
---^^^--- How to Become the IT Guru at Your Job (Google / MSFT suite expertise)
---^^^--- Are you TOO old for IT in 2024?
---^^^---
---^^^---
---^^^---
---^^^---
---^^^---
---^^^---
(MvB) = Mischa van den Burg -- 5 CLI Tools That Actually Changed How I Work in 2026
---^^^--- Please Avoid using AI
---^^^--- [Should you ] Learn How to Code for DevOps Engineers in 2026
---^^^--- My Entire Neovim + Tmux + AI Workflow (2026 Update) [CLI centered Obsidian]
---^^^--- Excalidraw For Obsidian Zettelkasten - Studying AI - Technical Note-taking
---^^^---

Comments
Post a Comment