Bryan - Gendev
Programmer
In my project development I have a backup routine on the F12 key which I call when needed.
Essentially it uses
<code>
fso= CREATEOBJECT ('Scripting.FileSystemObject')
fso.CopyFolder (lcDevDir, lcBackupDir)
fso = null
?'Finished Successfully'
</code>
Now I'm trying to use the same code on a button on a form after selection of a suitable folder.
All works OK until the copyfolder line when I get a COM error.
OLE error code 0x800a004c: Unknown COM status code.
Am I trying to use the code in the wrong place - why the error and how do I get past it please.
Thanks
GenDEV
Essentially it uses
<code>
fso= CREATEOBJECT ('Scripting.FileSystemObject')
fso.CopyFolder (lcDevDir, lcBackupDir)
fso = null
?'Finished Successfully'
</code>
Now I'm trying to use the same code on a button on a form after selection of a suitable folder.
All works OK until the copyfolder line when I get a COM error.
OLE error code 0x800a004c: Unknown COM status code.
Am I trying to use the code in the wrong place - why the error and how do I get past it please.
Thanks
GenDEV