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
Post a Comment