Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Voxera I'd like to learn how to code purely in notepad and what the limits are of such coding.
For example using the schtasks yesterday straight from cmd was pretty cool and I'd like to have something more in-depth rather than these are the commands find out what they do and then suddenly i am looking at loops and variables like wtf?
So in short to create all kinds of programs that are useful for me personally, but don't exist yet. -
Voxera113885y@recyclement a big problem is that most of these “commands” are not batch but rather normal programs usable from the command line and many did not exist at the time batch was “big”.
And now with powershell there is a nee way using commandlets.
Thats probably why there are few good tutorials.
The built in commands in batch is very few, especially compared to bash.
But search for errorlevel, its a quite rare word mostly used in slightly more advanced batch scripts, together with bat its two words that should give you some more relevant resources or examples.
And in to of that, either dos or windows commandline + whatever you are trying to achieve, that might list programs that can be used from the command line or batch files.
Errorlevel together with stdin or out and commandline parameters is the only way to exchange info with external programs. -
@recyclement I'd say go straight to PowerShell, as ugly as it is. At least you can do more serious stuff than with bat files.
-
Wack61915yYou can take programming in notepad to whatever level you like, in the end you don't need a fancy IDE for any language (just like you don't need a car to go from A to B, it's just faster and more convinient...)
About learning .bat, in the end it's just commandline executed in sequence with if/else an loops. So what I'd do is think about what you want to do, then run the commands manually and there you go. -
@Wack Hey thanks for your response.
Ehm I'd just essentially like to learn what windows can do kind of 'secretly'. The usually forgotten things I think are amazing such as iexpress, schtasks, etc.
The 'obsolete' stuff interests me in Windows specifically.
And if after that another language can be learned more easily that would be fantastic but not necessary. -
@recyclement A quick Google search yielded this page:
http://trytoprogram.com/batch-file/
Is that what you're looking for?
Also this as a command reference:
https://robvanderwoude.com/batchcom... -
rantytee25yIf you are looking at nifty things in windows try our the windows scheduler I think it was called
-
irene33915y@recyclement Windows' command prompt has never been capable. In early versions of Windows. (3.1 and 95 I think) it was a DOS prompt. Microsoft replaced the shell with limited command prompt that no longer supported DOS commands because "UI is the way of the future." We were all outraged. For example "edit" was a nice text editor but it was removed because now you use notepad. So you are looking for hidden shell features in a command prompt and the command prompt isn't a shell.
If you want to see limitations of command line in Windows I recommend you look into rubber ducky payloads. The payloads only have access to the keyboard so most use powershell or the command prompt. They can do some impressive things. -
@dmonkey a language from Germany.
On a more serious note, it's a library to write your css in js. It meshes quite well with component oriented libraries like react or vue. -
Voxera113885y@recyclement if you are looking for possibilities in windows “under the hood” I strongly suggest looking into power shell.
Its s very powerful command language with more programming features than even bash.
Like real object support so a commandlet (extensions that a program can use to expose its features to ps) can return a list of objects where you can directly get access to properties instead if stdout and text or csv parsing.
Batch is best left to nostalgia or if you really need the old dos style commands.
Related Rants
You can find so many tutorials, learning paths for C#, C++, python, angular, jss, java, etc.
But literally none for batch file programming (if that's even what it's called) so little documentation on cmd.exe and writing .bat files :'(
Can someone please please help?
Just point me in the right direction?
inb4 google it
question
cmd.exe
help
batch
tutorial
code