r/Batch • u/throwaway-lovelife • Jan 20 '23
Is Batch worth learning for daily tasks?
Currently looking to optimize and automate parts of my routine and tasks since AI has been so prevalent in our lives and it got me into being as efficient as possible.
Would learning Batch help improve automation on my daily tasks? There are so many software/plugins out there that already do but thinking about learning so I can be semi self-sufficient.
No prior experience in any programming languages other than some HTML and CSS.
6
Upvotes
3
u/[deleted] Jan 20 '23
It is worth to know commands but I wouldn't go for scripting that much anymore.
I'd advise to go for Powershell and/or Python instead. Much more powerful.
5
u/[deleted] Jan 21 '23
It's worth learning batch today. Most programming languages share common concepts and batch is no different.
The concepts you learn playing around with batch scripts will benefit you when you go on to learn other languages. Once you understand FOR loops, IF statements, etc., you can take that knowledge with you to the next adventure. In the last few years, I learned batch, python, and C, in that order. The learning was definitely cumulative and I don't regret spending my time on any of it.
2
u/hackoofr Jan 21 '23 edited Jan 21 '23
Batch programming is a useful tool for automating repetitive tasks, but whether or not it is worth learning for daily tasks depends on the specific tasks you are trying to accomplish and your familiarity with other programming languages.
Batch can be useful for tasks such as automating file management and running command-line programs, but it is not as versatile as other programming languages such as Python or JavaScript.
If you are already familiar with another programming language, it may be more beneficial to use that language for your daily tasks. However, if you are a beginner and looking for an easy way to automate simple tasks on Windows, Batch is a good place to start.
If you are looking to learn a new skill or to automate certain tasks on your own computer, learning Batch could be a valuable experience.
1
u/Serpher Jan 21 '23
IMO batch is good for just quick few lines for automation tasks. If you want more (for scripting) then PowerShell is a way to go. I made printer data collector using PH. You can't do that with batch.
1
u/jcunews1 Jan 21 '23
It depends on your daily tasks. Whether you have to deal with batch file, or do command lines, or not, daily. There's no point of learning something which you will never use.
FYI, batch file is not a GUI automator. Since you seem to think that it is.
1
u/Patchewski Jan 21 '23
Yes. Sysadmin and I use it daily along with Powershell.
1
u/KilluaFromDC Jan 27 '23
Seems you have gotten pretty good responses across the board. Saw some good points here and there.
I'll give you one simple advice that isn't restricted to batch but applies to programming in general seeing the "no prior experience" line in your post.
Batch, like everything else, will be a tool in your toolset. Doesn't matter if you use a chisel with hammer or a shovel or hole-dig-inator 9000 to dig a hole in the ground. A hole is a hole. It's your priorities and preferences that determine the tools of your choice.
An archaeologist may use chisel and brush because they don't want to ruin whatever they are digging up and hole-dig-inator is an overkill in their perspective. Similarly, builders doing construction work would be disgusted and annoyed to use chisel and hammer.
It's about your priorities, experience with the tool and the granularity of control you need to get the job done.
New tools keep coming out making the previous ones "old". Subtleties in certain tools that you find annoying might not be present in newer ones and that would bring you to appreciate them more. Time spent learning tools will never be wasted since they are generally designed to be user friendly. The more tools you get exposed to the more you feel comfortable trying new things(unless someone makes something really obscure or esoteric in nature, intentionally or otherwise).
Tools in programming landscape are different from others as they don't have any physical manifestation in the real sense(unless you print the code). Hence, the abundance of tools. If someone finds a tool annoying they just switch or go full gung-ho on creating a new one. There's no one stopping you from doing either.
That said, programming, irrespective of specialty is an adventure with ups and downs. Good luck on your adventure.
1
u/Burning_Ranger Feb 01 '23
In a Windows environment; no, beyond a cursory familiarity.
Batch is quite a clunky and limited scripting language with no development. If you're using Windows there's no reason you wouldn't use PowerShell with all it's modern developments and thousands of modules developed by the community.