Great! Glad to hear it. Feel free to rate the posting useful
And if Rick is reading ... me thinks this same script could be used on Linux server to get current non-git moodle code directory under git which would enable total on server only updating/upgrading of Moodle.
'spirit of sharing', Ken