common dialog boc for open/save as

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a text box to save the image path for the picture that I insert into
the Image Box. I also create a folder to store all the image related to my
database. How do I copy the picture from the old folder and put it into my
Image folder and rename it.
 
You can use the Name statement to "move" a file, with the following
provisos:

Both newpathname and oldpathname must be on the same drive. If the path in
newpathname exists and is different from the path in oldpathname, the Name
statement moves the file to the new directory or folder and renames the
file, if necessary. If newpathname and oldpathname have different paths and
the same file name, Name moves the file to the new location and leaves the
file name unchanged. Using Name, you can move a file from one directory or
folder to another, but you can't move a directory or folder.

If you need to delete the file once it's been copied (because you tried to
move to a different drive), use the Kill statement.
 
Douglas J. Steele

do you mind to give me some example. I've no idea about the this. thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top