I'd like to be able to set up a script that would read input from a text file. The objective would be to hand off the text file to an operator who would then run a BC script that would read in the variables from the text file.
Example:
%1, %2, %3 would be in a snapshot_io.txt file, as below:
LogFile~C:\Snaplogs\snapshotlogs.txt
Source~S:\Dir\we\want\to\snapshot
Output~d:\BCSnaps\MondaySnapshot
Snapshot script
#Get Variables from snapshot_io.txt
????
#Log output
log verbose append:"%1"
#
#Capture directory contents to snapshot file
snapshot save-crc save-version no-filters expand-archives path:"%2" output:"%3"
Is this doable given the scripting capabilities of BC?
Example:
%1, %2, %3 would be in a snapshot_io.txt file, as below:
LogFile~C:\Snaplogs\snapshotlogs.txt
Source~S:\Dir\we\want\to\snapshot
Output~d:\BCSnaps\MondaySnapshot
Snapshot script
#Get Variables from snapshot_io.txt
????
#Log output
log verbose append:"%1"
#
#Capture directory contents to snapshot file
snapshot save-crc save-version no-filters expand-archives path:"%2" output:"%3"
Is this doable given the scripting capabilities of BC?
Comment