I am checking for the number of files I have in a Unix Directory, and I am trying to get that number in a VBScript variable.
My code:
set oShell = CreateObject("WScript.Shell")
oShell.Run "C:\PLINK.EXE -ssh user@host -pw abc find /my/files -name '*333*' | wc -l > C:\files\res.txt"
set oShell = Nothing
The above code didn't write in the .txt file. I was thinking that i'll read the .txt file using vbscript and get the count.
Is there a direct way to to get the count returned from wc -l in a vbscript variable.
thank you.