Solved

Copying Files...

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…

760 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