>Wow! Where to start? Downloaded the WSH and loaded it on my PC. Inserted your example code and it WORKED. Do not mean to sound surprised, but I thought surely there must be an something to add to the project. How or why it worked, I have no idea. Read (ok skimmed), most everything on the MSN scriping site but do not have a good understanding of all its functions and how it can be used in VFP.
>
>1) obviously I want to distribute my app. Does WSH need to be installed on my clients machines? If not, what does need to be distributed with my app to make this work?
Yes, the Scripting Host needs to be installed on each client machine; you already have the distribution medium - WSH.EXE as posted on Microsofts Web page. WSH should already be installed on Win98 systems, on NT 5 beta systems, on NT 4 systems that have the Option Pack 4.0 installed, and on Win2K when it ships.
>
>2) do you know where I can find some more info (maybe simplier and more VFP related than on MSN) on WSN?
>
There are a couple of books in the works on the Windows Scripting Host; I'm not aware of one on the shelf. There are a number of Web sites that specialize in scripting, but they are not VFP-oriented (you'll find lots of VB and Java stuff, not surprisingly, since VBScript and JScript are a part of WSH.)
>3) where can I find some more info on FileSystemObject and CopyFolder?
>
Try the MSDN FileSystemObject and Scripting.FileSystemObject entries.
>Thanks - Brenda
>
>>Hi Brenda,
>
>>You can do this using Windows Scripting Host:
>
>>fso = CreateObject("Scripting.FileSystemObject")
>>FSO.CopyFolder("c:\folder1", "d:\folder1bak")
>
>>WSH is available for download for Windows 95, and is built into Windows 98 and NT. You'll find it along with more extensive information at Microsoft's Sripting Technologies site.
>
>>>Having trouble with the syntax. What to make a backup copy of folder1, something like folder1bak. If folder1bak exist, I will do nothing. Want to create folder1bak and then copy all the files from folder1 to folder1bak.
>>>
>>>Thanks - Brenda