Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 如何在powershell中设置文件列表的颜色_.net_Powershell - Fatal编程技术网

.net 如何在powershell中设置文件列表的颜色

.net 如何在powershell中设置文件列表的颜色,.net,powershell,.net,Powershell,我很喜欢ls能够将其列表着色以突出显示不同的文件类型。因此,我创建了自己的ps1xml文件,并调整了文件系统类型的格式。非常有趣,我还没有伤得太重 我可以更改字段的内容和格式(例如,使LastModifiedTime列更符合我的喜好),但我不知道如何更改颜色。这可能吗?我对PowerShell有点陌生,那里有很多东西,所以我很可能错过了一些明显的东西 谢谢您的提示。这些链接讨论了get childitem输出的颜色

我很喜欢ls能够将其列表着色以突出显示不同的文件类型。因此,我创建了自己的ps1xml文件,并调整了文件系统类型的格式。非常有趣,我还没有伤得太重

我可以更改字段的内容和格式(例如,使LastModifiedTime列更符合我的喜好),但我不知道如何更改颜色。这可能吗?我对PowerShell有点陌生,那里有很多东西,所以我很可能错过了一些明显的东西


谢谢您的提示。

这些链接讨论了
get childitem
输出的颜色