inFile.Copy outDir.Path & "\" & inFile.Name
Frågan#1
Dim fsObj
Dim indir, outdir
Dim infile
Set fsObj = CreateObject("Scripting.FileSystemObject")
Set inDir = fsObj.GetFolder("d:\database1").Files
Set outDir = fsObj.GetFolder("d:\database2")
For Each inFile in indDir
If Right(inFile.Name, 3) = "mdb" Then
inFile.Copy(outDir.Path & "\" & inFile.Name) ' Rad 12
End if
Next
Set inDir = Nothing
Set outDir = Nothing
Set fsObj = Nothing
Error Type:
Microsoft VBScript runtime (0x800A01C3)
Object not a collection
/vbs/001.asp, line 12