The file attribute specifies where Inquisit should record the data.
Applies to
<data>
Syntax
/ file = "location"Parameters
| location | A string in quotes indicating a valid local path, network share, url, ftp site, or email address to send the data. |
Remarks
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, a web URL, or it may be sent as an attachment to an email address.
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 Edition), 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 Edition, data is by default posted back to the millisecond.com web server via Secure Sockets Layer (SLL). For Desktop Edition, the data is saved to a *.dat 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.
Examples
The following appends the data to a local file:
<data>
/ file = "C:\myscript\mydata.dat"
</data>
The following saves the data to a network file share:
<data>
/ file = "\\server\fileshare\data\"
</data>
The following saves the data to an ftp site:
<data>
/ userid = "me"
/ password = "secret"
/ file = "ftp://foo.com/datafiles/"
</data>
The following posts the data to a web server:
<data>
/ file = "http://www.foo.com/datafiles/"
</data>
The following sends the data as a file attachment to an email address:
<data>
/ file = "mailto:someone@millisecond.com"
</data>