文档详情

批处理教程_2(Batch tutorial _2).doc

发布:2017-07-17约2.96万字共23页下载文档
文本预览下载声明
批处理教程_2(Batch tutorial _2) The heart of the batch tutorial _2. TXT is a house with two bedrooms, one living in pain and one living in happiness. You cant laugh too loud, or youll wake up the pain next door. Batch processing: one day teaching series - (last come from:/thread-2576-1-1.html) First: directory jump: CD When we need to process files under different paths, we will probably need to switch directories, when we can consider using directory jump command CDS. For example, when we open the command line window, we usually do this by finding the start menu in the bottom left corner of the desktop, opening the run, and entering CMD, enter the car. At this time, the default current directory of the command line window is located in the path of the current user, such as: C: \ Documents and Settings \ JM, as shown in the figure below. In general, the directory is not we want to deal with documents, we may need to jump to other directories, such as: C packing list, this time, we will need to use the CD to the directory jump: CD C: \. The full name of the CD is the Change Directory, which translates as the Change Directory, which is the meaning of the jump Directory and the switch path. It can be followed by a drive symbol, a full path, and a relative path. It can be learned from its full name that it cannot manipulate files, but only on drives or folders. For example, if we use the command CD c: \ boot.ini to jump (boot.ini is a file instead of a folder), there will be a directory name invalid error, as shown in the figure below. If you want to jump to the root of the current directory, you can use a simple command: CD \. This is shown in the figure below. Continue to jump, CD c: \ Windows \ temp, jump to temporary directory. At this point, if you want to go back to the previous directory Windows, you can use this command: CD. It is. This is shown in the figure below. Think about it, what happens if you execute a CD? As a result, there is no jump in the directory. This
显示全部
相似文档