Reputation: 7925
I'm trying to use test
command, but it does not exists in my system (Windows 8).
test -d $(build)
How can I install it?
Upvotes: 1
Views: 124
Reputation: 200293
In PowerShell you can use the Test-Path
cmdlet to check for existence of a folder:
Test-Path -PathType Container -LiteralPath 'C:\some\folder'
Upvotes: 1
Reputation:
@echo off
IF exist myDirName ( echo myDirName exists ) ELSE ( mkdir myDirName && echo myDirName created)
Source => Here
Upvotes: 0