Overview
SurveyToGo has a unique Command Line Archiving tool that allows you to generate automatic archive commands with a few simple clicks, instead of entering the studio and selecting manually each time – it also enables you to schedule a task for windows to archive it automatically in your time of choice.
Steps
Step 1: Create A New TXT file in the folder which contains the archiving tool.
The tool should be located in the following path on the PC where the studio is installed:
Win7/8/10: C:\Users\<USERNAME>\AppData\Local\Dooblo\SurveyToGo Studio\App\<YOUR VERSION>\Utils\CmdLine
WinXP: C:\Documents and Settings\<USERNAME>\Local Settings\Application Data\Dooblo\SurveyToGo Studio\App\<YOUR VERSION>\Utils\CmdLine
Once you created the TXT file, rename it e.g: “MyArchiver”, or another preferred name.
Step 2: Configure your file to contain the archiving commands.
Open the TXT file you created and copy the following:
stgcmdline /action=ArchiveAttachments /url="http://stg.dooblo.net/ws/" /user=<USER> /pass=<PASS> /org=<ORGNAME> /surveyid=<SURVEY_ID> /startdate=<START_DATE>
/enddate=<END_DATE> /keepFilename=true /outputdir=c:\
Supported parameters for Archiving Attachments Action
Parameter Name |
Description |
Limits/Notes |
Example |
/surveyid
|
The ID of the survey to export. ID can be found in the Designer on the Survey Properties screen. |
Optional As long as SurveyPath is specified, otherwise it is MUST |
/surveyid=76c0c7e6-e184- 4f8b-8ec6-b96085a8a4b5 Multi ids: /surveyid=76c0c7e6-e184-4f8b-8ec6-b96085a8a4b5, 76c0c7e6-e184-4f8b-8ec6- b96085a8a4b6 |
/startDate |
Export results which were uploaded starting the specified date |
Optional Format of date is: “yyyy-mm-dd |
/startDate=”2009-02-24” |
/endDate |
Export results which were uploaded until the specified date |
Format of date is: “yyyy-mm-dd” |
/endDate=”2009-02-24” |
/outputDir |
Where to put the exported file after exporting |
MUST |
/outputDir=”C:\Exports” |
/outputPath |
alternative to outputDir - the full file path to export to (outputDir sets only the directory) |
MUST if and only if outputDir is not given |
/outputPath=”C:\Exports\file.xlsx” |
/KeepFilename |
Whether to use the original attachment file name when archiving |
Optional. Default is True |
/KeepFilename=false
|
/SetArchivedFlag |
Whether to mark the Downloaded attachments as archived in the |
Optional Default is True |
/SetArchivedFlag=false |
Replace the following with your details:
<USER> with your Designer user name
<PASS> with your Designer user name
<ORGNAME> with your Designer user name
<SURVEY_ID> with the id of your survey
Step 3: Save the file and rename it to 'MyArchiver.bat'
Step 4: Create a scheduled task to run the 'MyArchiver.bat'.
- Open the Control Panel: Start -> Control Panel ->Administrative Tools
- Double-click the Scheduled Tasks icon:
- Click on 'Action' - Create Basic Task:
- Give the Task a name and click 'Next'
- Choose the Trigger 'Daily/Weekly/Monthly..' and click 'Next'
- Choose the specific time and day you would like the scheduler to run and click 'Next'
- Choose the Action - Start a Program - and click 'Next'
- Click on 'Browse' and navigate to the location of the 'MyArchiver.bat' file and click 'Next'
- Review the details of the Task and click 'Finish'
- The task should now appear in the 'Task Scheduler Library'
That's It !
Comments
Please sign in to leave a comment.