Can I copy files from 1 folder to another

hai guys

i tried likes below code
but message comes "Permission Denied"

pls. help

Private Sub Command0_Click()
FileCopy "L:\Database\Contracts\New Database\DocappNew.mdb", "P:\My Documents\DATABASE"

End Sub
 
Can you copy from L:\Database\Contracts\New Database\ into P:\My Documents\DATABASE by using Windows Explorer??
 
hai guys

i tried likes below code
but message comes "Permission Denied"

pls. help

Private Sub Command0_Click()
FileCopy "L:\Database\Contracts\New Database\DocappNew.mdb", "P:\My Documents\DATABASE"

End Sub
You gotta include the file name:

FileCopy "L:\Database\Contracts\New Database\DocappNew.mdb", "P:\My Documents\DATABASE\DocappNew.mdb"
 
Here you have to give directory with file name
For example
Source_file as string = "c:\test.pdf"
destination_file as string = "c:\test\test.pdf"
filecopy(source_file,destination_file)

Your file will be copied in c:\test
with test.pdf
 

Users who are viewing this thread

Back
Top Bottom