首页> 外文期刊>Windows IT Pro >Controlling Ycur Code's Flow with PowerShell's Conditional Statements
【24h】

Controlling Ycur Code's Flow with PowerShell's Conditional Statements

机译:使用PowerShell条件语句控制代码流

获取原文
获取原文并翻译 | 示例
           

摘要

Windows PowerShell provides several ways to control the flow of code, including the if,for, and while statements. You can use these three statements to define conditions and the actions to occur when those conditions are met. You can even specify the actions to occur when a condition isn't met. Let's look at the various components that make up the if, for, and while statements and how to use each type of statement for tasks such as retrieving a list of text files in a folder and retrieving a list of processesandthe number of handles they're using.
机译:Windows PowerShell提供了几种控制代码流的方法,包括if,for和while语句。您可以使用这三个语句来定义条件以及满足这些条件时要执行的操作。您甚至可以指定不满足条件时要执行的操作。让我们看一下组成if,for和while语句的各种组件,以及如何将每种类型的语句用于任务,例如检索文件夹中的文本文件列表,检索进程列表以及它们的句柄数量。使用。

著录项

  • 来源
    《Windows IT Pro》 |2008年第11期|41-424446|共4页
  • 作者

    Robert Sheldon;

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号