Loop through folder and backup



I have a WSH script found at

http://davefancher.com/Articles/2007/3/34.aspx

This is a WSH JScript file that backs up a Subversion repository. The
script works fine but I need to specify each folder in my WSH file as
follows:

<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.sppub.com";>

<job id="FullBackup">
<script language="JScript" src="svn_backup.js" />
<script language="JScript">
var bak = new SVNBackup("c:\\REPOSITORIES\REPOSITORY_FOLDER");
bak.DoFullBackup();
</script>
</job>
</package>

As I have a lot of repository folders, I want to create a new job that
loops through C:\RESPOSITORIES and runs the backup on each folder.

Can anyone help me with the script to loop through the folders and run
the backup?

TIA!
.



Relevant Pages

  • Re: User account and Personal folder mismatch script
    ... I believe you want a script that can be run by an administrator that will ... The script above only documents if a home folder has been assigned. ... > End Sub ...
    (microsoft.public.scripting.vbscript)
  • Input on CleanUp script
    ... Since I'm going to be using this script in a production environment, ... If the script is used with a backup folder ... var strTargetFolder, strBackupFolder, args0, args1, args2, noArgs; ...
    (microsoft.public.scripting.wsh)
  • Input on CleanUp script
    ... Since I'm going to be using this script in a production environment, ... If the script is used with a backup folder ... var strTargetFolder, strBackupFolder, args0, args1, args2, noArgs; ...
    (microsoft.public.scripting.jscript)
  • Re: Disappearing Links
    ... I believe someone has a script for rebuilding links but I'm unable to find it at the moment. ... It could be adapted to trawl through the whole mail folder tree - if you really need that, ... -- to any contacts in the address book that match the sender of the messages ... set theSelection to selection ...
    (microsoft.public.mac.office.entourage)
  • Re: OT:macros or software?
    ... when a .PDF file is stored there, ... words and depending on weather those words are found in that document, move it to a predetermined folder. ... Easy enough if it were a text document, or even Word, as you could write a DOS script, or a VBS script if you had to load Word to read Word documents, although writing such a script can be harder to a beginner than some might think. ... OK the goal is to put the numerous files scattered everywhere on the computer at work into easy to use folders for my staff to access simply. ...
    (uk.comp.homebuilt)