View Single Post
  #4  
Old 07-27-2020, 09:16 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi jjacobus,

I think it's the Find command that might have a replacement in PowerShell.

https://docs.microsoft.com/en-us/pow...w=powershell-7

Sounds like you need to use Select-String instead:
Quote:
The Select-String cmdlet searches for text and text patterns in input strings and files. You can use Select-String similar to grep in UNIX or findstr.exe in Windows.
What are your results with:
SFXCL /List sftp://user@host/target_folder 2>&1 | Select-String -Pattern ": -"
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote