I was writing a program and I need to copy the pictures uploaded in the form to another folder in the application path, but tyhe prob is I do not know how to use the "FileCopy" syntax. Can Anyone assist me?
All is get is:
Private sub CmdSavePic_Click()
call Filecopy(Source as string, Target as String)
end sub
I used the commondiaolg1.filename as source; and App.path & "\Uploads" as Target but it won't work.
Copy a picture to another folder
Page 1 of 11 Replies - 1672 Views - Last Post: 05 March 2010 - 06:15 AM
Replies To: Copy a picture to another folder
#2
Re: Copy a picture to another folder
Posted 05 March 2010 - 06:15 AM
both source and destination need to be a fully qualified path AND file name... C:\A\MyImage.bmp, C:\Program Files\MyApp\Uploads\MyImage.bmp...
However, if you are on vista or 7 then you cannot use the program files path as it is protected by the OS, you would need to use the environ("appdata") path instead and/or if you have not created the uploads directory, then you will need to create it with mkdir...
Good Luck
However, if you are on vista or 7 then you cannot use the program files path as it is protected by the OS, you would need to use the environ("appdata") path instead and/or if you have not created the uploads directory, then you will need to create it with mkdir...
Good Luck
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|