menu search
brightness_auto
Ask or Answer anything Anonymously! No sign-up is needed!
more_vert
What is the difference between a batch file and a script file?

2 Answers

more_vert
A batch file is a type of script file that is used primarily on Windows systems. It is a file containing a list of commands that are executed in sequence when the file is run. Batch files can perform various operations such as launching programs, renaming files, and creating directories.

A script file, on the other hand, is a file containing a series of instructions or commands that are executed by a scripting language interpreter or a specific application. Script files can be used on a variety of operating systems and can perform complex operations such as data manipulation, network communication, and user interaction. Script files can be written in various languages such as Python, Perl, Ruby, and PowerShell.
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
more_vert
A batch file and a script file are both types of text files that contain a series of commands or instructions to be executed by the operating system. The main difference between them is the type of scripting language they use.

A batch file is a text file that contains a series of commands for the Windows command prompt. Batch files are typically used to automate repetitive tasks or to run multiple commands in sequence. Batch files use the .bat or .cmd file extension.

A script file, on the other hand, is a text file that contains a series of commands for a scripting language such as Python, Perl, or Bash. Script files are typically used to perform more complex tasks or to automate system administration tasks. Script files use a variety of file extensions depending on the scripting language used.
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
Welcome to Answeree, where you can ask questions and receive answers from other members of the community.
...