none
Help with PowerShell script RRS feed

  • General discussion

  • I am new to PS and want to write a PS script to run the following.

    java -cp "AddDocument.jar;Jace.jar;p8cel10n.jar;stax-api.jar;xlxpScanner.jar;xlxpScannerUtils.jar;log4j-1.2.15.jar" com.ibm.labservices.AddDocument userid password FileNetP8WSI http://hjipuat/wsi/FNCEWS40MTOM HJIP Sample.iso image/jpeg

    I know from Googling that I can start this by

    Start-Process java (then not sure if I can add the rest delimitted by quote or not)

    Appreciate any suggestions or help!

    Thanks!

    Glenn


    glenn

    • Changed type Bill_Stewart Wednesday, September 13, 2017 9:47 PM
    • Moved by Bill_Stewart Wednesday, September 13, 2017 9:47 PM This is not "teach me how to find stuff" forum
    Thursday, August 3, 2017 4:27 PM

All replies

  • PowerShell is a shell. You can run the command at the PowerShell prompt. Just type the command and press Enter.

    -- Bill Stewart [Bill_Stewart]

    Thursday, August 3, 2017 4:36 PM
  • I want to be able to schedule this to run multiple times throughout the day.

    Thanks!


    glenn

    Thursday, August 3, 2017 4:50 PM
  • Just use task scheduler to schedule this command.  You do not need PowerShell for this.

    Search for examples on how to use task scheduler.


    \_(ツ)_/

    Thursday, August 3, 2017 4:53 PM
  • You can run a script as a scheduled task if you want to, but it's not strictly necessary.

    The Windows task scheduler is pretty self-explanatory. (This isn't a task scheduler forum, so this isn't the right place to ask questions about how to use the task scheduler.)


    -- Bill Stewart [Bill_Stewart]

    Thursday, August 3, 2017 4:55 PM