home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
n
/
nickpm.zip
/
NICKDEMO.NSC
< prev
next >
Wrap
Text File
|
1993-02-10
|
2KB
|
72 lines
// A simple demo showing a script for automated
// backing up the files from one directory to another
// The environment variables NICKSOURCE and NICKTARGET
// have to be set as full path names, which may be located on
// a LAN server with the restriction that the drive is coded as
// a "real" drive eg: L:\SERVERDIR\SOURCE and NOT as a computer
// name such as: \\SERVER\SERVERDIR\SOURCE
// The demo can be started from the command line by:
// NICKPMU NICKDEMO
// and press START after the PM window is made visible
//
// or:
// NICKPMU /start NICKDEMO
// *******************************************************
// SCRIPT statements:
// *******************************************************
title "Directory backup"
loop.mode yes // Monitor will run in loop mode
step.mode yes // Monitor will start in step mode
// Step mode can be reset by pressing the
// 'Step mode' button which turns fron darkred to cyan
wait.mode yes // Monitor will enter a countdown wait state
// if no activities have been triggered in
// a pass before entering the next pass
wait.time 900 // If the wait state is entered wait time will be 15 minutes
// Prologue
prologue
message Thank you for giving your attention to NICKPM(r) from OMNISYS INFORMATION TECHNOLOGY
// Object 1:
object.dir <e:NICKSOURCE> // Switch to directory where
// the sources are located
// Object 2:
file *.* // For all files in that directory...
// Dependencies:
archive yes // Which have their archive bit set:
// Actions:
run copy /b <name> <e:NICKTARGET> // Copy file to target
notify yes // Notify error to user
error abort // Terminate if error
run attrib -a <name> // Reset archive bit
error user // Let user decide on error
// note: Object 1 and 2 could be combined in the single:
// file <e:NICKSOURCE>\*.*
// epilogue
epilogue
message Thank you for running NICKPMU