Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - DataBatcher 1.1 and PowerShell

Reply
 
Old 10-20-2006   #1 (permalink)
Andrew Webb


 
 

DataBatcher 1.1 and PowerShell

For anyone who might be interested...

DataBatcher is a batch-processing .NET 2.0 application that I develop in my
spare time. A DataBatcher job consists of a number of steps that are
executed sequentially. Each step is based on a plugin module; a specific
plugin module performs an individual task - e.g. converting image files.

Plugin modules are written in C# or VB.NET - or any other .NET CLS-compliant
language. But PowerShell allows scripting users to script their own steps
using a new, generic "PowerShell" plugin module (written by me in C#). This
module hosts a PS runspace, and injects a number of variables into the
runspace that allows the step's script to interact with DataBatcher's runtime
environment.

DataBatcher is similar to PowerShell in that it too has an object pipeline -
the sequential execution of the steps in a running job is the pipeline, but
the object that is passed down the pipeline is always of the same type - a
'FileSet' object, which represents a set of files and folders to be operated
on. The FileSet output of step N becomes the input of step N+1.

Today I finished the "canonical" script for the PowerShell module in
DataBatcher - i.e. it represents what a step in a job typically does. It
needs tailoring by the scripter before it can be used in anger.

I present this script here (see link below) as a means to shamelessly plug
my app on this newsgroup but also to offer the script for those who might:-
a) learn some techniques from it
b) give me some pointers as to how I can improve it.

Thank you.

Andrew

http://www.databatcher.com/DataBatch...l.Step.ps1.txt


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Installing PowerShell dependent features on W2K8 with PowerShell CTP PowerShell
when run powershell script as windows service ,powershell fail PowerShell
Automatic PowerShell Error Parsing in PowerShell Analyzer and PowerShellPlus PowerShell
PowerShell Leaders Join Forces and offer a pre-release version of PowerShell for 50% off the retail value PowerShell
PowerShell integrated with 'DataBatcher' batch-processing .NET 2.0 PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46