Home Posts Topics Members FAQ
Post your question to a community of 470,593 developers. It's quick & easy.
Expand|Select|Wrap|Line Numbers Dim fso As New FileSystemObject fso.CopyFile "C:\Files\file.txt", "C:\Files1\file_copy.txt" to create mayb something like fso.createdirectory? I think this will do it. James
If you want to move the file to another location then try this Expand|Select|Wrap|Line Numbers Dim FSO As FileSystemObject Set FSO = CreateObject("Scripting.FileSystemObject") FSO.MoveFile "E:\DEBASIS\VB\DATA1.TXT", "E:\DEBASIS\DATA1.TXT" 'or try to use Dim FSO As FileSystemObject, FO As FileSystemObject Set FSO = CreateObject("Scripting.FileSystemObject") Set FO = FSO.GetFile("E:\DEBASIS\VB\DATA1.TXT") FO.Move "E:\DEBASIS\DATA1.TXT"
this code cause this error compile error user-defined type not defined
Sign in to post your reply or Sign up for a free account.