How to solve this PowerShell command error message?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vincent90152900
    New Member
    • Jul 2007
    • 50

    How to solve this PowerShell command error message?

    I'm trying to get PowerShell script to run a program. Here is the command line I need to run:

    "\"C:\\Prog ram Files\\PDF2allT est\\pdf2all\" -c pdf2jpg -s \"c:\\test\\tes t\\01.pdf\" -or 600"

    I get the following error message. How to solve this?

    System.Manageme nt.Automation.P arseException was unhandled
    Message="You must provide a value expression on the right-hand side of the '-' operator."
    Source="System. Management.Auto mation"
    StackTrace:
    at System.Manageme nt.Automation.P arser.addExpres sionRule(Tokeni zer tok)
    at System.Manageme nt.Automation.P arser.compariso nExpressionRule (Tokenizer tok)
    at System.Manageme nt.Automation.P arser.bitwiseEx pressionRule(To kenizer tok)
    at System.Manageme nt.Automation.P arser.logicalEx pressionRule(To kenizer tok)
    at System.Manageme nt.Automation.P arser.assignmen tStatementRule( Tokenizer tok)
    at System.Manageme nt.Automation.P arser.pipelineR ule(Tokenizer tok)
    at System.Manageme nt.Automation.P arser.statement Rule(Tokenizer tok)
    at System.Manageme nt.Automation.P arser.statement ListRule(Tokeni zer tok)
    at System.Manageme nt.Automation.P arser.Parse(Str ing input, Int32 cursorPosition)
    at System.Manageme nt.Automation.A utomationEngine .Parse(String script, Boolean interactiveComm and)
    at System.Manageme nt.Automation.S hellFunctionCom mandProcessor.. ctor(String script, ExecutionContex t context, Boolean isFilter, Boolean useLocalScope, Boolean interactiveComm and)
    at System.Manageme nt.Automation.R unspaces.Comman d.CreateCommand Processor(Execu tionContext executionContex t, CommandFactory commandFactory, Boolean addToHistory)
    at System.Manageme nt.Automation.R unspaces.LocalP ipeline.CreateP ipelineProcesso r()
    at System.Manageme nt.Automation.R unspaces.LocalP ipeline.InvokeH elper()
    at System.Manageme nt.Automation.R unspaces.LocalP ipeline.InvokeT hreadProc()
Working...