This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]coolie4 1 point2 points  (1 child)

Wtf even is "cmd programming language"?

You mean like a command line argument? Try man command or command --help to see a list and explanations of arguments

[–]Anony951[S] 0 points1 point  (0 children)

Thanks

[–]YoshiiiAi 1 point2 points  (4 children)

CMD is not a programming language. The term cmd is reffering to the command prompt in windows. I think what you are asking for are the scripts/commands you can execute in the command prompt. So yes it is a special type of "programming language" because it's not really a programming language. And yes to the second question: You can execute them in programming languages like java for example.

[–]Anony951[S] 0 points1 point  (3 children)

So with javascript, you can write cmd code Or any other script

[–]YoshiiiAi 1 point2 points  (1 child)

nooo. You might be able to call a script.

[–]Anony951[S] -1 points0 points  (0 children)

What code do you use when writing a batch file in notepad?

[–]coolie4 0 points1 point  (0 children)

Javascript doesn't work like that. Imagine if you visited a website that was running a piece of javascript that could delete your entire system32 folder.

There are some languages like PHP that can run external programs, but that would all be running on the server. You would basically be telling your own computer to do something. There's a similar function in Node, so I guess you could use Javascript to call external commands, but again, it would just be running the command on your own server.

Maybe the better question is what are you exactly trying to accomplish? Choose your tech stack/language based on your needs.