Search the Legacy Support Archive (up to v2020)
  1. Read-only archive (2005–2024). Posting is closed. Need help with MediaLab or DirectRT 2027? Email service@empirisoft.com.

    All words · “exact phrase” · -leave out

    Advanced search

Launch from command line with missing values (case 1380)

  1. #1

    Launch from command line with missing values (case 1380)

    Hi,

    I'd like to setup a shortcut to launch a DirectRT experiment using the command line, but I need it to ask for the Subject number. In MediaLab, you can specify certain values (such as the condition) and leave others blank, and it will prompt you to fill in the blank values.

    How can I get the same behavior in DRT?


    The syntax is: ExecuteDRT.exe /subject,condition,input file,range

    so "ExecuteDRT.exe /,Cond1,myfile.csv,all" should open DRT and prompt for the subject number before launching the experiment.

    Right now, leaving it blank just creates a data file called ".csv"

  2. #2
    jarvis Blair Jarvis, Administrator
    If DirectRT doesn't prompt for any missing parameters, this is something we can add to our future feature list. In the mean time, a possible work around would be to copy the bat file and assign each copy a different subject ID within the file. Then name it accordingly--the command line which launches a session for subject 53 would be called 53.bat, and so on. The you would just double click the batch file that corresponds to any given subject. Not the most elegant solution--but again, perhaps a temporary work around. Does that help?

  3. #3
    Yeah, I have considered doing this with a batch file. I was just hoping the DRT behavior was the same as ML.

    Thanks

  4. #4
    Hi jzadra,

    Can we be of further assistance in this matter?