Solved

Copying Files...

Posted on 2000-05-12
4
151 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 143

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

628 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