[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

Copying Files...

On my app I have 2 textboxes and a button. The button copies the specified file from textbox1 to textbox 2. Textbox 2 should show the folder in which the user wants the file in. How do I make the button actually do this operation?
0
FireStarterXoX
Asked:
FireStarterXoX
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
Simply like this:
FileCopy textbox1.text, textbox2.text

0
 
paulstampCommented:
Can you clarify what you want ? ie are you lookinf just for the absolute path to where you've copied the file to, or do you just want to copy the file as in angelIII's example ?
0
 
paulstampCommented:
Or do you mean that text2 is actually linked to a "browse for folder" style-dialog so that user can specify he wants to copy the file from one folder to another ?
0
 
montehCommented:
To enhance your user interface, here's some code that will bring up the Browse For Folder dialog, and return the selected folder as a string:

http://www.killervb.com/code/commonbas/BrowseForFolder.htm
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now