Unexpected token ‘in’ in expression or statement.
- This topic has 2 replies, 3 voices, and was last updated 3 years, 6 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Home › Forums › Scripting › PowerShell › Unexpected token ‘in’ in expression or statement.
Hi Experts !
I am finding the error while running the powershell script , please help to fix it.
D:ReplicationViaFTPServer>DeleteBackupsOlderthen. bat
D:ReplicationViaFTPServer>powershell .DeleteBackupsOlderthen.ps1
Unexpected token ‘in’ in expression or statement.
At D:ReplicationViaFTPServerDeleteBackupsOlderthen. ps1:19 char:12
+ if($File in < <<< $Files)
+ CategoryInfo : ParserError: (in:String) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
D:ReplicationViaFTPServer>
Script
You must be logged in to reply to this topic.
Find out more about our cookie policy here.