I have a VB6 app (very simple).
I am ftp'ing files from a temp directory to an ftp server.
After the ftp is done, I want to delete the wave files in the temp directory.
When I do this:
Dim FileSystemObject As Object
Set FileSystemObject = CreateObject("Scripting.FileSystemObject"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
FileSystemObject.DeleteFile DestDir + filesave
I get the runtime error 429 "ActiveX component can't create object"
If I take that out it runs fine (just doesn't delete the file).
Can someone tellme hw to delete files (without calling a Shell(.bat file)) and without using FileSystemObject?
Thanks.
fergmj
I am ftp'ing files from a temp directory to an ftp server.
After the ftp is done, I want to delete the wave files in the temp directory.
When I do this:
Dim FileSystemObject As Object
Set FileSystemObject = CreateObject("Scripting.FileSystemObject"
FileSystemObject.DeleteFile DestDir + filesave
I get the runtime error 429 "ActiveX component can't create object"
If I take that out it runs fine (just doesn't delete the file).
Can someone tellme hw to delete files (without calling a Shell(.bat file)) and without using FileSystemObject?
Thanks.
fergmj