none
Problems Step Recorder (PSR.exe) Command Line Options

    Question

  • I found the command line options for PSR.exe @ http://ctrlf5.net/?p=176 (see below)

    I haven't been able to get the /stopevent <eventname> option to work

    What I would like to know is how to use this option.

         psr.exe /start /output fullfilepath.zip /sc1 /stopevent <eventname>

    Can anyone provide me with a working example using this?

    psr.exe [/start |/stop][/output <fullfilepath>] [/sc (0|1)] [/maxsc <value>]
        [/sketch (0|1)] [/slides (0|1)] [/gui (o|1)]
        [/arcetl (0|1)] [/arcxml (0|1)] [/arcmht (0|1)]
        [/stopevent <eventname>] [/maxlogsize <value>] [/recordpid <pid>]

    /start            :Start Recording. (Outputpath flag SHOULD be specified)
    /stop            :Stop Recording.
    /sc            :Capture screenshots for recorded steps.
    /maxsc            :Maximum number of recent screen captures.
    /maxlogsize        :Maximum log file size (in MB) before wrapping occurs.
    /gui            :Display control GUI.
    /arcetl            :Include raw ETW file in archive output.
    /arcxml            :Include MHT file in archive output.
    /recordpid        :Record all actions associated with given PID.
    /sketch            :Sketch UI if no screenshot was saved.
    /slides            :Create slide show HTML pages.
    /output            :Store output of record session in given path.
    /stopevent        :Event to signal after output files are generated.

    PSR Usage Examples:

    psr.exe
    psr.exe /start /output fullfilepath.zip /sc1 /gui 0 /record <PID>
        /stopevent <eventname> /arcetl 1

    psr.exe /start /output fullfilepath.xml /gui 0 /recordpid <PID>
        /stopevent <eventname>

    psr.exe /start /output fullfilepath.xml /gui 0 /sc 1 /maxsc <number>
        /maxlogsize <value> /stopevent <eventname>

    psr.exe /stop

    Notes:
    1.    Output path should include a directory path (e.g. '.\file.xml').
    2.    Output file can either be a ZIP file or XML file
    3.    Can't specify /arcxml /arcetl /arcmht /sc etc. if output is not a ZIP

    Thursday, July 31, 2014 3:24 PM

Answers

  • Hi,

    Example:

    psr.exe /start /output D:\test.zip /sc 1 /gui 0 /stopevent 123456

    psr.exe /stop

    As mentioned in previous reply, we need add an eventname after /stopevent, this makes the cmd work, or it will be invalid


    Yolanda Zhu
    TechNet Community Support


    Thursday, August 14, 2014 9:33 AM
    Moderator

All replies

  • Hi,

    We have tested the cmd option, if we use /stopevent, we must add a eventname after the option, or the whole cmd will be invalid, please note that the "eventname" can be any names as you want. we will inform you if we have any further new information about this option.


    Yolanda Zhu
    TechNet Community Support

    • Marked as answer by thorntonb Thursday, August 14, 2014 10:40 AM
    • Unmarked as answer by thorntonb Thursday, August 14, 2014 10:40 AM
    Monday, August 04, 2014 7:51 AM
    Moderator
  • Thanks You, but I have been unable to get the PSR application to log anything in the event log can you please show me a working example of how I can achieve this?

    , Brian

    Tuesday, August 12, 2014 12:19 PM
  • Hi,

    Example:

    psr.exe /start /output D:\test.zip /sc 1 /gui 0 /stopevent 123456

    psr.exe /stop

    As mentioned in previous reply, we need add an eventname after /stopevent, this makes the cmd work, or it will be invalid


    Yolanda Zhu
    TechNet Community Support


    Thursday, August 14, 2014 9:33 AM
    Moderator
  • Hi Yolanda,

    I misunderstood the purpose of the switch /stopevent.  As mentioned I interepreted as meainf log an event in the event log.

    But I am still unsure of the purpose of this switch though.

    I tested this and it still recorded the psr session in test.zip

         psr.exe /start /output D:\test.zip /sc 1 /gui 0

         psr.exe /stop

    Can you explain when I should use this switch and for what purpose?

    Thanks again , Brian

    Thursday, August 14, 2014 10:22 AM
  • Brian, when event 123456 is fired in the event log.
    The next program is run.

    Hope that helps!

    NB

    Wednesday, October 08, 2014 9:52 PM
  • as I can set the amount of time I will write?

    Wednesday, March 18, 2015 12:02 PM
  • It would be nice have the possibility to screenshot only the monitor that was clicked OR to pass a parameter to select with monitor I would like the screen shot. 

    Also, would be nicve have the option to record the image in pgn instead of jpg because png keep image quality.

    Thanks :D

    Thursday, June 30, 2016 6:16 PM