>You can find some good scripting examples and reference material over on TechNet at:
>
>
http://www.microsoft.com/technet/scriptcenter/scripts/default.mspxChecking the site, though I believe this type of scripting requires more than just reviewing other scripts to be able to learn it.
>
>Also, here is my stab at creating the function you are looking for. I haven't tested this extensively, so it may need some tweaking. However it should get you fairly close to what you want to do using Visual FoxPro and Windows Scripting. Cut-n-paste the code below into a prg file in VFP and execute it.
>
Regrettably I don't have VFP.
Thanks!
Alex