【发布时间】:2014-03-06 12:26:09
【问题描述】:
我正在尝试使用test 命令,但它在我的系统中不存在(Windows 8)。
test -d $(build)
如何安装?
【问题讨论】:
标签: powershell makefile mingw
我正在尝试使用test 命令,但它在我的系统中不存在(Windows 8)。
test -d $(build)
如何安装?
【问题讨论】:
标签: powershell makefile mingw
在 PowerShell 中,您可以使用 Test-Path cmdlet 检查文件夹是否存在:
Test-Path -PathType Container -LiteralPath 'C:\some\folder'
【讨论】:
@echo off
IF exist myDirName ( echo myDirName exists ) ELSE ( mkdir myDirName && echo myDirName created)
来源 => Here
【讨论】: