i want to copy a specific file and paste into another folder
i am using the following code
when i run this code i get errror
"argument not optional "
what chages i have to made in it
any help
i also want to copy more than one files and it should be pasted with
out promting that file already exists
i am using the following code
Code:
'' getting the required file to be copied
fso.GetFile "D:\Data\smeb_Data.MDF"
'' creating newfolder
If fso.FolderExists("H:\Backup") Then
Else
fso.CreateFolder "H:\Backup"
End If
''pasting the file
fso.CopyFile "H:\Backup\smeb_Data.MDF"
Exit Sub
when i run this code i get errror
"argument not optional "
what chages i have to made in it
any help
i also want to copy more than one files and it should be pasted with
out promting that file already exists
Comment