Search found 2 matches

by Hackoo
2021-Oct-29, 5:19 pm
Forum: Windows CMD Shell
Topic: Error "TerminatorExpectedAtEndOfString" when execute a powershell code from a batch file?
Replies: 2
Views: 2334

Re: Error "TerminatorExpectedAtEndOfString" when execute a powershell code from a batch file?

Simon Sheppard wrote: 2021-Oct-29, 2:57 pm See here
https://ss64.com/ps/powershell.html#longfilenames
if you are calling PowerShell from a CMD batch file and the command contains quotation marks, they must be escaped: " becomes \"
Thank you for your reply and i just have solved this problem here
by Hackoo
2021-Oct-29, 7:52 am
Forum: Windows CMD Shell
Topic: Error "TerminatorExpectedAtEndOfString" when execute a powershell code from a batch file?
Replies: 2
Views: 2334

Error "TerminatorExpectedAtEndOfString" when execute a powershell code from a batch file?

Hi ;) I want to execute a powershell code with a batch file to take a screenshot from my desktop that i found it here Take a Screenshot of a User’s Desktop with PowerShell So,When i execute it as powershell script it works without any error and works for me 5/5 but when i take it as batch file like ...