小编Tim*_*Tim的帖子

在 Markdown 中,如何将表格放入有序列表中?

是否可以在降价时将表格放入有序列表中?如果没有,推荐的替代方法是什么?

markdown

6
推荐指数
1
解决办法
6617
查看次数

如何从 powershell 命令设置环境变量?

我想在 cmd.exe 中有一个包含星期几的环境变量。

当我运行这个命令时,我得到了我想要的结果。

C:\Users\tisc>powershell (get-date).dayofweek
Friday
Run Code Online (Sandbox Code Playgroud)

在这里,我试图将结果存储在环境变量中。

C:\Users\tisc>set dow = powershell (get-date).dayofweek
Run Code Online (Sandbox Code Playgroud)

但是当我试图得到它时,我没有得到我想要的字符串。

C:\Users\tisc>set dow
DoW=0
dow = powershell (get-date).dayofweek
Run Code Online (Sandbox Code Playgroud)

我的目标是将批处理文件中的变量用于某些备份脚本。

powershell command-line

5
推荐指数
1
解决办法
4297
查看次数

为什么 Windows 功能窗口显示安装了 PowerShell 2.0?

我正在运行 Windows 8 机器。“Windows 功能”窗口告诉我我正在使用 PowerShell 2,但 PowerShell 环境本身另有说明,请参见下面的屏幕截图。

为什么 Windows 功能窗口显示我有 PowerShell 2.0?

“PowerShell $psversiontable”和“Windows 功能(扩展的 PS 节点)”的屏幕截图

windows-8 powershell-3.0

2
推荐指数
1
解决办法
814
查看次数