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

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

问题描述

Windows 批处理文件有哪些鲜为人知但重要且有用的功能?

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

指南:

  • 每个答案一个功能
  • 同时提供功能的简短描述示例,而不仅仅是文档链接
  • 限制对本机功能的回答,即不需要额外的软件,例如Windows Resource Kit
  • 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

说明:这里指的是由 cmd.exe 处理的脚本,这是 WinNT 变体的默认设置.

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

(另见:Windows 批处理文件:.bat 与 .cmd?)

推荐答案

PUSHD path

带你到路径指定的目录.

POPD

带你回到你推送"的目录.

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

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

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