vb/vba has built in file funtions...
vba.FileCopy
vba.FileDateTime
vba.Kill
vba.... give it a try
Main Topics
Browse All TopicsHi:
I am a beginner VB programmer. I am looking for help in creating a program which will copy data from diskette to hard drive and vice versa.
The incoming and outgoing files are differentiated by filenames. The incoming files will be placed in the INCOMING directory whereas the outgoing files will be placed in the OUTGOING directory.
Moreover, the filenames consist of the user's log in name followed by T or F indicating that it is going TO the user or coming FROM the user.
Please help, urgent.
Thank you so much!!!
Azuzut
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You may want to change the file names so that the T or F is at the beginning of the name.. that way you can use check the file like this:
Dim CopyState As String
CopyState = Left$(Filename, 1)
If CopySate = "T" then
' File is going To the user
Elseif CopySate = "F" then
' File is coming From the user
End if
Just an idea that may make it easier..
Thank you for all the wonderful suggestions.
Bob,
For example, there are several files that need to be copied from the
diskette to HD. I first need to zip them up and assiagn them a unique file
name. If the log-in username is ABC12345, I would append T indicating the zip
file is going to the user; therefore, the filename will be look like "ABC12345T" and F indicating the file is coming from the user; the filename will then be "ABC12345F".
I really don't know how to start. Please help!
Azuzut
well your main issue will probably be the zipping/unzipping of the files... check out this dll:
http://www.vbaccelerator.c
Business Accounts
Answer for Membership
by: wes_wilsonPosted on 2003-02-04 at 13:24:33ID: 7877764
I suggest you use the Scripting.FileSystemObject if you need to work with files like this. It has handy methods to get the filename, copy the file around, rename it, etc. Docs for this object can be found at: library/de fault.asp? url=/libra ry/ en-us/s cript56/ht ml/fsooriS criptingRu n-TimeRefe rence.asp
http://msdn.microsoft.com/
-Wes