等同于“脚本”。 Windows Shellscript中使用命令? [英] Equivalent of "script" command in 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屋!