powershell - isDir equivalent in cmd -


i'm using tshell connect device , need check if given path file or directory.

i hoping use cmd-device function runs cmd commands on device, there doesn't seem cmd command this.

does have way check whether given path directory or file using standard cmd functions?

since have powershell tagged in question, 1 option check object type returned get-item cmdlet.

(get-item c:\windows) -is [system.io.directoryinfo]  # shorter version (gi c:\windows) -is [io.directoryinfo] 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -