Fabricio
Fabricio

Reputation: 7925

How to install test command line

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

Answers (2)

Ansgar Wiechers
Ansgar Wiechers

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

user1585121
user1585121

Reputation:

@echo off
IF exist myDirName ( echo myDirName exists ) ELSE ( mkdir myDirName && echo myDirName created)

Source => Here

Upvotes: 0

Related Questions