等同于“脚本”。 Windows Shellscript中使用命令? [英] Equivalent of "script" command in Windows Shellscript?

查看:87
本文介绍了等同于“脚本”。 Windows Shellscript中使用命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

GNU /上有 脚本 命令Linux机器允许将所有命令行活动捕获到一个文件中。这确实是非常有用的工具,尤其是当我们学习新知识并且想要保存命令及其输出以供将来参考时。

There is script command on GNU/Linux machine which allows to capture all command line activity into a file . This is really helpful tool especially when we learn something new and we want to save the commands and their output for future reference.

我目前正在 Windows PowerShell 终端,我想将所有命令及其输出捕获到文件中,以备将来参考。

I am currently learning the Git on Windows PowerShell terminal and I wanted to capture all the commands and their output in a file for future reference.

在Windows PowerShell上有什么方法/命令可以实现吗?

Is there any way/command do achieve it on Windows PowerShell?

推荐答案

尝试使用开始记录停止记录 cmdlet。

Try with Start-Transcript and Stop-Transcript cmdlet.

您也可以使用用于ISE编辑器模块的开始抄本,因为这些CmdLet不需要

这篇关于等同于“脚本”。 Windows Shellscript中使用命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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