batch file


Author
Message
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
No, the Windows version you use would not make any difference in terms of the command line syntax. And you can make the Windows batch file relatively user-friendly by doing something like this:

@echo off
set INQUISITPATH="C:\Program Files\Millisecond Software\Inquisit 5\Inquisit.exe"
set SCRIPTPATH="D:\batch.iqx"
set /p SID=Enter subject ID:
set /p GID=Enter group ID:

start "" /wait %INQUISITPATH% %SCRIPTPATH% -s %SID% -g %GID%

Save that in file with  *.bat or *.cmd extension. You can put that file on the Desktop and a mere double-click will prompt for subject and user id and then fire up the script (adjust the paths to the Inquisit executable (INQUISITPATH) and the script (SCRIPTPATH) according to where you have those things stored on your computer).

Also, if you're exclusively working under Windows, Inquisit Lab will in fact *not* remain open if you simply execute the <batch> script by double-clicking it in Explorer, instead of opening it in the Inquisit Lab editor first. (Things are a bit different under OSX due to platform differences).

lbadanes
lbadanes
Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)
Group: Forum Members
Posts: 2, Visits: 8
Dave- I have already tried to create a windows batch using these instructions but my main problem is I don't want my researchers to have to launch using the command line. I have also had issues passing the parameters through the command line (subject Id, group, etc.) and it is probably worth mentioning that I am using windows version from 2010.. If I use a shell script instead and launch through the command line, will I have to enter the parameters differently for Windows 2010?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
I suppose you are referring to Inquisit Lab here, not Inquisit Web. If you don't want the application to remain open (with the <batch> syntax visible), you shouldn't actually use <batch> elements at all [1]. Instead use command line syntax (i.e., a shell / bash script)  to run your three scripts in succession as detailed in the 2nd part of the "Running Sequences of Inquisit Scripts and Other Applications" and "Launch Inquisit Experiments Using Command Line Parameters" topics in the documentation:

http://www.millisecond.com/support/docs/v5/html/articles/batchscripts.htm
https://www.millisecond.com/support/docs/v5/html/howto/howtocommandline.htm

It is not possible to specify multiple storage locations in <data> or <summarydata>, but you can use the shell script approach as well to automatically copy your data files to a different location (as backup) once all scripts have finished.

Hope this helps.

[1] EDIT: Actually, launching the <batch> .iqx file via the terminal / command line should be sufficient.

Edited 9 Years Ago by Dave
lbadanes
lbadanes
Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)Associate Member (205 reputation)
Group: Forum Members
Posts: 2, Visits: 8
I've created a batch file that runs three of my scripts in a row... I am wondering if there is anyway that I can write something into the batch that will close inquisit after participants have finished, is that possible?
I am also wondering if there is any way to modify the <data>  / file = attribute to include two different file paths (essentially just backing the data up automatically)
   
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search