-
Notifications
You must be signed in to change notification settings - Fork 6
Script Configuration
Daniel Balcárek edited this page Jun 28, 2021
·
1 revision
All scripts are saved in configuration file. After first start application creates defaultScriper.config, where are saved added scripts. You can add script throught UI pressing "Add Script" button (most top left) or edit the config file (in case you understant xml). At start Scriper is looking for config files in Config directory which is in same folder as .exe file. In Config directory you can have more configs and pick which one you want to use, but every config file has to ends with "Scriper.config".
Mandatory attributes are name and path, name has to be unique, rest of attributes and elements are optional. See example below:
<Script name="allDirectoriesinPath"
description="Write all directories and files in argument dir"
path="allDirectoriesinPath.bat"
arguments="E:\GitHub\Scriper\ScriperSol\Scriper\bin\Debug\netcoreapp3.1"
inSystemTray="true"
outputWindow="true">
<TimeSchedules />
<FileOuput path="log.txt" />
</Script>- name - script name
- description - script description
- path - script file path
- arguments - script arguments
- inSystemTray - allow to add script to system tray context menu and run it
- outputWindow - determines if output window will be opened -> script output will be written there
- TimeSchedules - not implemented yet
- FileOuput
- path - path to script output file -> script output will be written there
- Order - define order of script in collection and UI