A
A
Andrey2020-07-07 08:43:50
cmd/bat
Andrey, 2020-07-07 08:43:50

Where to start learning bat?

Good day. Where to start learning bat? Before that, I used Debian for several years. Bash somehow came to me right away. But bat can not work at all. Where to begin? Elementary, what commands can be entered, what and how does it work?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir Kuts, 2020-07-07
@fox_12

Start by examining the contents of the HELP output command

R
res2001, 2020-07-07
@res2001

1. there is built-in help on commands in Windows (at least in winXR it was, I don’t know now, I haven’t used it for a long time), but it’s long and complicated
2. The list of basic commands can be taken from the help command. But this is not a complete list, there are other specialized commands. You will learn about them in the process of solving problems, well, Google has not canceled the same.
3.All commands have a built-in help page, which can be accessed by specifying the /? for the team. Built-in help (from item 1) duplicates this help
4. There is also a built-in help page in cmd itself. There are some interesting points there.
5. There are good sections dedicated to batanics with intelligent participants on forum.ru-board.com and on forum.script-coding.com
6. Also on RSDN there was not a bad series of articles "botanical lesson"
But in general, powershell is more relevant for Windows now. I recommend buying the book for him.

M
m4xD, 2020-07-18
@m4xxD

To get started, open the interpreter, there is a good built-in help with parameters. If you have experience with other scripting languages, much is understood by analogy, but there are also differences.
The command shell is very inflexible and very little interactive. This is very annoying and takes a lot of time. Often you have to stop the script with pauses and view variables that suddenly for some reason stopped working. For example, inside a loop.
For myself, I advise you to write small simple scripts, with a set of experience confidence will come.
And perhaps the most important thing: in your scripts, do not spare time and space for comments, later it will be very useful. This is especially true for complex scripts with non-intuitive logic; in a month or a year, you can completely forget what a particular line does and why it is so.

S
Saboteur, 2020-09-07
@saboteur_kiev

Put bash under Windows and don't suffer.
But IMHO everything is also very bad with bash

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question