up Inquisit Language Reference

file attribute

The file attribute specifies where Inquisit should record the data.

Member of

<data> <survey>


/ file = "location"


location A string in quotes indicating a valid local path, network share, url, or ftp site to send the data.


The file command specifies where Inquisit should record the data. The data file may be written to the local drive, a network share, an ftp site, or a web URL.

If a web URL is specified, the data is posted to the specified web address via HTTP POST. The web server can then extract the data from the POST request and save it. If you specify an http address, data is sent to the web server in plain text using the standard http protocol. If you specify an https address, the data is encrypted using Secure Sockets Layer (SSL) before being sent over the wire, which provides protection from packet sniffers. Since data can be posted and later retrieved from the data web service at millisecond.com (this is the default behavior for Inquisit Web), it should rarely be necessary to set up your own web server to handle web data collection.

If the data location requires login credentials, the user name and password can be specified using the userid and password commands.

For Inquisit Web, data is by default posted back to the millisecond.com web server via Secure Sockets Layer (SLL). For Lab, the data is saved to a *.iqdat file in the directory as the script.

See Gathering Data Over the Web for more information on saving data gathered on remote client machines to a network server.


The following appends the data to a local file:

/ file = "C:\myscript\mydata.iqdat"

The following saves the data to a network file share:

/ file = "\\server\fileshare\data\"

The following saves the data to an ftp site:

/ userid = "me"
/ password = "secret"
/ file = "ftp://foo.com/datafiles/"

The following posts the data to a web server:

/ file = "http://www.foo.com/datafiles/"

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.