You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this is answered somewhere, but I searched and could not find it. We are trying to automate some windows to linux and back tasks, and on the linux side the files are named with timestamps, so they are always different. Normally I would just use:
But obviously this is not working, giving an illegal character in path error. Is there a way for me to use a wildcard in this context, or am I going to have to find an alternate way to find the exact file name on the powershell side and pass it through?
Thanks.
The text was updated successfully, but these errors were encountered:
Hello,
Apologies if this is answered somewhere, but I searched and could not find it. We are trying to automate some windows to linux and back tasks, and on the linux side the files are named with timestamps, so they are always different. Normally I would just use:
Get-SCPItem -ComputerName "linuxname" -Credential $credential -Path /path/to/file*.txt ...
But obviously this is not working, giving an illegal character in path error. Is there a way for me to use a wildcard in this context, or am I going to have to find an alternate way to find the exact file name on the powershell side and pass it through?
Thanks.
The text was updated successfully, but these errors were encountered: