Scripting Flashcards
What is a Batch File?
It’s a text file written in a text editor such as notepad, wherein you type commands, one on each line, just like you would at a command prompt
What makes something a batch file
text written in a text editor, such as notepad, saved with the extension .bat
How do you save a notepad file as a .bat file
choose the extension type asterik dot asterik and end the file name with .bat
How would you get a list of environment variables?
open a command prompt and enter set
What is an environment variable?
certain phrases that point to certain places or things that work for anything throughout the OS.
%homepath%
environment variable that will lead to whoevers logged in, will replace with their homepath.
What extension does powershell use?
.ps1
cmdlet
commandlet
.exe
executable file
What is compiled code
Essentially a text document of code that is then run through another program called a compiler. The compiler generates the .exe files.
What is the downside of compilers?
you use different compilers from different operating systems and cpus.
What is an interpreted program
Programs are still written in a programming language, but these are built into every different OS using an interpreter that works on most OS. The program isn’t turned into a .exe
What extension does visual basic use?
.vbs
what is a variable
values that can change based on how we manipulate them
What is a string value?
basically anything you want to put in