Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying files in drive a: without user knowing

Status
Not open for further replies.

siearo

MIS
Aug 21, 2002
15
LK
I want to execute a program to copy all files in drive a: in to C:\temp\ folder without getting halted if there is no disk in drive a:. No message should be displayed. i.e. all files in the floppy should be copied without the user knowing.
Can anybody please give me the source code of a program in Visual Basic to do this job.
 
its going to be pretty hard to keep them from noticing the little light on the drive isn't it?
 
It's me again. The light is not a problem because in my case the user only has the mouse and the keyboard with him and he is looking at a projection from the computer(connected to a projector). What I need is not to show anything on the screen.
I would be grateful if anyone can help me in this.
 
Try to copy the file if you get an error trap it and don't try to copy the rest.

Ie just try to open the file to see if it is there.
 
Try something like:

------------------------------------------------
Private Function IsADriveReady() As Boolean
On Error Resume Next
GetAttr "a:\"
If Err.Number = 0 Then
IsADriveReady = True
Else
IsADriveReady = False
End If
End Function
------------------------------------------------- Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
This may or may not be appropriate of me, but I think it's pretty jerky of you to copy someone's files secretly.

Why can't you let them know what you're doing?

I think that, just as much as in major corporate board rooms, a solid dose of ethics is badly needed in the programmer realm.

Rougy. The death of dogma is the birth of reason.
 
It looks like siearo just wants to speed up the reading of the files by the application that is being used to display them via the projector by caching them on the harddrive. I think the without the user knowing bit means "without having to bother the user if there is no disk in the drive". I don't think siearo intends anything sinister :)
Must think of a witty signature
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top