I have incorporated in a vb6 app a routine to automatically copy a 20mb database file to a number of network servers on a fibre optic local network at midnight every night.
Problem is if the server permission has not been left open for me or it asks for a password(such as left in nobody logged on state), it will hang for up to a minute suspending all other tasks.
The remote server can still be pinged in this condition so this would not indicate that the file access was not open.
Currently I ping each server first then copy the file only if successful to avoid a hang if the server is completely off line.
Q 1. Is there a way of making a file copy routine that is effectively asynchronous with a callback to start the copy or at least reducing the hang wait period to a few seconds?
I guess the long wait is a carry over from the old days when computers and networks were 100 times slower. I remember when a fast network speed was 10 meg!
Related problem:-
The network people now want to also restrict pinging through their firewall for security purposes. If they do this I won't be able to pre-ping any computer off line before I try to copy to avoid a hang.
Q 2.The answer to the first question should solve this one too or is there a different way
(Using a Pinging routine was as a result to an answer I got in this forum years ago.)
Problem is if the server permission has not been left open for me or it asks for a password(such as left in nobody logged on state), it will hang for up to a minute suspending all other tasks.
The remote server can still be pinged in this condition so this would not indicate that the file access was not open.
Currently I ping each server first then copy the file only if successful to avoid a hang if the server is completely off line.
Q 1. Is there a way of making a file copy routine that is effectively asynchronous with a callback to start the copy or at least reducing the hang wait period to a few seconds?
I guess the long wait is a carry over from the old days when computers and networks were 100 times slower. I remember when a fast network speed was 10 meg!
Related problem:-
The network people now want to also restrict pinging through their firewall for security purposes. If they do this I won't be able to pre-ping any computer off line before I try to copy to avoid a hang.
Q 2.The answer to the first question should solve this one too or is there a different way
(Using a Pinging routine was as a result to an answer I got in this forum years ago.)