Solved

Copying Files...

Posted on 2000-05-12
4
148 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…

832 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