怎样使一个批处理文件的意义吗? [英] How do I make sense of a batch file?

查看:93
本文介绍了怎样使一个批处理文件的意义吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一般的批处理文件或shell脚本的工作没有现成的经验。我需要了解在相关项目中使用批处理文件开展的业务。任何资源,让批处理文件的命令详尽的清单以及每个人做?

I have no prior experience working with batch files or shell scripting in general. I need to understand the operations being carried out by a batch file used in a related project. Any resource that gives exhaustive list of batch file commands and what each one does?

推荐答案

一旦你结识一般.BAT文件的信息,使用一些指针到其他用户张贴在其他的答案有用的信息,你可以尝试以下的一些策略,帮助您了解和分析所使用的BAT文件的诠释您的项目:

Once you get acquainted with the general .BAT file information, using some of the pointers to useful information that other users have posted in the other answers, you might try some of the following strategies that help you understand and analyze the BAT files used int your projects:


  1. 在所有命令调用前面添加一个 ECHO 命令

阅读 HELP命令在BAT文件在每个命令行

read HELP command for each command line in the BAT file

执行在命令提示符中的BAT文件在每个命令行

execute at the command prompt each command line in the BAT file

删除关闭@echo 在.BAT文件的顶部,并看到BAT进展如何

remove the @echo off at the top of the .BAT file, and see how the BAT progresses

添加一些暂停 s到保持在屏幕上观看一些命令它们消失之前。

add some PAUSEs to keep viewing some commands on screen before they disappear.

这篇关于怎样使一个批处理文件的意义吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆