Problem with the directory attribute of the batch element


Author
Message
Clokman
Clokman
Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)
Group: Forum Members
Posts: 2, Visits: 1

Hello, 


I have several parts of an experiment which I would like to keep in different folders. However, I could not manage to use a batch file in the root directory. Please see the information below.




  • My root directory structure (the selected file is the batch file):




  • The batch file I am trying to use (currently I am only trying to run demographics from the parent folder, but would like to add other subfolders as well):


<batch>


/ directory = "C:\Scripts\Dot Probe Task\Demographics\"


/ file = "Demographics.iqx"


</batch>


 


I have also tried this version:


<batch>


/ directory = "C:\Scripts\Dot Probe Task\Demographics\"


</batch>


 



  • Ideally, I would like to have dynamic addresses instead of static ones. So:


not: " / directory = "C:\Scripts\DPT\Demographics\" "


but: " / directory = "\Demographics\" " 


 


Since the experiment is going to be run on multiple systems and will be also put online, I think this is an important requirement.




  • I am constantly getting a Missing double quotes error.




  • I also tried saving the batch file and then running it again, hoping that it would update the address of the batch file itself.



I would appreciate your suggestions.



Best,


John







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: 108K

The /batch element's directory attribute does not specify a root directory. Instead it is meant to run all files located in the given directory. From the documentation for the /directory attribute:


Remarks


 


When Inquisit runs the batch element, it finds and runs all scripts in the
specified directory. Multiple directory attributes can be specified in order to
run scripts in different directories.


Examples


The following runs all scripts in the specified directory:


<batch>
/ directory =
"C:\myscripts\"
</batch>




  • Ideally, I would like to have dynamic addresses instead of static ones. So:


not: " / directory = "C:\Scripts\DPT\Demographics\" "


but: " / directory = "\Demographics\" " 



The <batch> element does support relative paths:


<batch>
/ file= "myscripts\myscript.exp"
</batch>


Since the experiment is going to be run on multiple systems and will be also put online


Nested folder structures are currently *not* possible for web experiments. All files need to be located in the same folder as the <batch> file itself.


Clokman
Clokman
Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)Respected Member (430 reputation)
Group: Forum Members
Posts: 2, Visits: 1



Hi Dave,



Thank you for your prompt reply. It's unfortunate nested folders cannot be used in web experiments. I will not need the /directory attribute in this case. 




Best,


John



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search