Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


i definitely get i could do it with that enumeration method, i just me logically if there is a file called test.txt then $session.FileExists(./test*) should be true, because that file "does" exist.

Shouldn't the .FileExists() method support wildcards?

Shouldn't the .FileExists() method on the Session object support wildcards?

Similar to in powershell to like
PS C:\> Test-Path C:\Wind*

Its difficult to test if a wildcard is used, you'd have to test if a wildcard is in the string, then parse the directory from the path, the enumerate, then see if its greater then 1, i guess.