Solved

Copying Files...

Posted on 2000-05-12
4
146 Views
Last Modified: 2010-05-02
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
Comment
Question by:FireStarterXoX
  • 2
4 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2803971
Simply like this:
FileCopy textbox1.text, textbox2.text

0
 
LVL 3

Expert Comment

by:paulstamp
ID: 2804454
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
 
LVL 3

Expert Comment

by:paulstamp
ID: 2804466
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
 

Accepted Solution

by:
monteh earned 8 total points
ID: 2813126
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now