Hi all,
This might be the incorrect forum for this, but many people here have really demonstrated their prowess with Excel and this does to some extent involve Excel, so here goes:
Every night I have six locations dialing my home computer. I have been using a great little program called AutoDUN, which automatically completes the dial up connection, and opens a workbook which I call “FTP”, then closes the dial up connection after the transfer is complete. I am using the task scheduler to open AutoDUN at staggered times depending on the location during the night. I am running dial up server on Win98SE at my house.
The workbook FTP transfers text files between the two PCs. The code in the workbook is as follows:
Private Sub Workbook_Open() On Error GoTo 10 Set fs = CreateObject("Scripting.FileSystemObject") fs.copyfile "c:grandysoutgoingSales*.txt", "e:serverincomingsales" fs.copyfile "c:grandysoutgoingYields*.txt", "e:serverincomingyields" fs.copyfile "e:serverInventoryinvinformation.txt", "c:grandysaccountinginvinformation.txt" ActiveWorkbook.Save 10 Application.Quit End Sub
I have mapped a network drive (E) to the computer at my home. Everything works pretty much great unless someone at the other location accidentaly disconnects the network drive at which point I have to go there and manually reconnect it. Also, there seems to be no way to control the speed at which the connection is made, sometimes the other location connects at 9600bps!
Ideally, I would like to run Win98 dial up server at the remote location and have my computer call the remote, however I cannot figure a way to turn dial up server on and off at the remote location through the task scheduler.
My question(s) is this:
Is this the most efficient way to transfer these files?
Does anyone know of a better way to transfer these files automatically?
Thanks,