的Windows批处理文件隐藏功能 [英] Hidden features of Windows batch files

查看:186
本文介绍了的Windows批处理文件隐藏功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

都是一些少为人知的,但很重要且实用的功能的Windows批处理文件是什么?

指南:


  • 每一个特征答案

  • 功能和示例,而不仅仅是一个链接到文档的
  • 给双方一个简短的说明
  • 限制答案的本地funtionality ,即不需要额外的软件,像的 Windows资源工具包

澄清:我们在这里指的是由cmd.exe的,这是在WinNT变体的默认处理脚本

(参见: Windows批处理文件:.BAT VS .CMD )


解决方案

  PUSHD路径

到所指定的目录中的路径

  POPD

注意到你回你从推的目录。

What are some of the lesser know, but important and useful features of Windows batch files?

Guidelines:

  • One feature per answer
  • Give both a short description of the feature and an example, not just a link to documentation
  • Limit answers to native funtionality, i.e., does not require additional software, like the Windows Resource Kit

Clarification: We refer here to scripts that are processed by cmd.exe, which is the default on WinNT variants.

(See also: Windows batch files: .bat vs .cmd?)

解决方案

PUSHD path

Takes you to the directory specified by path.

POPD

Takes you back to the directory you "pushed" from.

这篇关于的Windows批处理文件隐藏功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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