This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Running the instruction file

From the ADR tool

  1. Open the .adr file containing your instructions.

    Select File | Run. The Run Instructions dialog opens.

  2. Select Snap 10 from the Preset drop-down list if it has not been selected.
  3. Browse for the survey from which you wish to export data.
  4. The Snap Path will usually be preset. Change it if necessary.
  5. Click [OK] to run the instructions.

From the command-line

You need to know:

Select Run from the Windows Start menu and enter:

Snap_executable_name /s Snap_survey_name /x instruction_adr_filename

replacing Snap_executable_name with the location of Snap, Snap_survey_name with the location and filename of the survey you are exporting data from and instruction_adr_filename with the location and name of the automated data report file you have created. The "/s" tells Snap that this is a survey, and the "/x" tells Snap that it is using an automated data report.

For example:
"c:\program files\snap\snap.exe"
/s "C:\My Documents\snap\snmetro.mdf"
/x "C:\My Documents\MetroDataReport.adr"

(You would need to put this all on one line when you are entering the command in Windows.)


Alternatively, this can be included in a Windows shortcut.

From a batch file

You must create the batch file from the ADR tool. You can then run it by double-clicking on it, or setting it up as a scheduled task.

  1. Start AutomatedDataReports.
  2. Open a set of export instructions using File | Open or pressing .
  3. From the menu, choose File | Export Batch File. The Export Batch File dialog opens. It should already include the pathname for Snap.

    SP: ADR, new window

  4. Set the name of the batch file to create in the Batch File box.
  5. Set the name of the survey to export from in the Survey box.
  6. Click [OK] to create the batch file. A message is displayed telling you that the file has been created. Click [OK] to dismiss it.
  7. You can run the batch file by double-clicking on it in Windows Explorer.

    You can set the batch file to run automatically by setting up a scheduled task in Windows. This is in Start | Programs | Accessories | System Tools | Scheduled Tasks.

Creating a batch file to run instructions on multiple surveys

Each DataReport file can contain export instructions for as ingle survey. If you want to run export instructions for more than one survey, you must create a DataReport file for each survey and use separate commands to run them.

For example, if you want to run c:\report1.adr on c:\snsurvey1.mdf, and c:\report2.adr on c:\snsurvey2.mdf

  1. Create a batch file for report1.adr, called c:\reportbatch.bat.
  2. Open the batch file with Notepad or another text editor.
  3. You will find one line of instruction to Snap. Copy and paste that line to make two identical instructions.
  4. Now edit the second line to change all references to report1 to report2 and change all references to survey1 to survey2.
  5. Save the batch file.

You now have a batch file that will start Snap twice. Firstly to run report1 on snsurvey1, secondly to run report2 on snsurvey2.

See Also

Creating the instruction file