none
PowerShell - Running a program with forward-slash options RRS feed

  • Question

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

    "D:\Program Files\Search and Replace\SR32" /r /q /u /c"\\acpfscd\content\content\XMLEdit\SandR\ACPJC\fixJCExportFiles.srs" /p"..\output\acpjc\*.xml*"

    In that format, with the quotes, etc. it ran in a batch file.

    It seems to be getting confused with the forward slashes. I have tried numerous permutations of quotes, etc. but it won't seem to work. I get errors like:

    You must provide a value expression on the right-hand side of the '/' operator.

    Can anyone help me out here?
    Saturday, July 21, 2007 8:56 PM

All replies