Page 1 of 1
Handling Response on computer without internet
Posted: September 10th, 2007, 5:30 pm
We try to built a survey that will run on a laptop in a promotional vehicle. We want to cumulate the result on the computer. The computer will not have an internet connection to send the email and we do not want to ask the user to enter a filename for the .ANS file.
Somebody have an idea to help us?
Posted: September 12th, 2007, 11:35 am
Yes, it is possible to run Interview.exe with pre-defined input .sur and output .ans filenames. Just run from the command line
Interview.exe <SURVEY_FILENAME> <OUTPUT_ANS_FILE> and user will not be prompted.
Using Interview.exe with command line parameters maybe difficult so I would recommend you to create the following script:
1) Open Notepad.exe and copy into it the code:
set objFSO = CreateObject("Scripting.FileSystemObject")
i = 1
s = i & ".ans"
do while objFSO.FileExists(S)
i = i + 1
s = i & ".ans"
set wshell = CreateObject("WScript.Shell")
s = "Interview.exe " & "demo.sur" & " " & s
2) Replace in the above code "demo.sur" with the name of your actual survey file and save the file as Survey.vbs in the same directory where Interview.exe and your survey file are located.
3) In order to run the survey, just double-click on the file Survey.vbs (or create a shortcut to that file on your desktop). It will launch Inteview.exe with correct parameters.
All the answers will be stored as unique files with names 1.ans, 2.ans, 3.ans,.... etc in the same directory as Interview.exe. Later you will be able to import all them into your database, corresponding to that survey.