Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to batch bat scripts in windows

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Windows how to batch bat script, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

What is a bat script

The file at the end of .bat is actually a batch script on windows, and the bat file in Windows is equivalent to the .sh script programmed by shell in Linux, executing DOS commands in batches.

The simplest example is the various commands that are used on the command line one line at a time. In more complex cases, you need to use commands such as if,for,goto to control the running process of the program. If you need to implement more complex applications, you can take advantage of external programs, including external commands provided by the system itself and tools or software provided by third parties. Double-click the batch file and the system calls Cmd.exe to run the batch program.

How to write bat script

BAT scripting tutorial (easy to understand and comprehensive)

Simple example echo start echo QQ STARTstart / d "C:\ Program Files (x86)\ Tencent\ QQ\ Bin" QQScLauncher.exeecho cloudmusic STARTstart / d "C:\ Program Files (x86)\ Netease\ CloudMusic" cloudmusic.exeecho idea STARTstart / d "C:\ Program Files (x86)\ JetBrains\ IntelliJ IDEA 2016.3.5\ bin" idea.exeecho Chrome STARTstart / d "C:\ Program Files (x86)\ Google\ Chrome\ Application" chrome.exeexit is helpful to you after reading the above? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report