Can I copy files from 1 folder to another (1 Viewer)

faqrudeen

New member
Local time
Today, 15:03
Joined
Oct 7, 2007
Messages
1
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
 

petehilljnr

Registered User.
Local time
Today, 04:03
Joined
Feb 13, 2007
Messages
192
Can you copy from L:\Database\Contracts\New Database\ into P:\My Documents\DATABASE by using Windows Explorer??
 

boblarson

Smeghead
Local time
Today, 04:03
Joined
Jan 12, 2001
Messages
32,059
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"
 

imhemal29

New member
Local time
Today, 16:33
Joined
Jan 24, 2008
Messages
1
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

Top Bottom