Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sync 2 computers not on a net
Message
From
14/11/1999 10:18:54
 
 
To
14/11/1999 08:17:11
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00290898
Message ID:
00291077
Views:
36
>Ed,
>
>In the long run do you think that I might be better if I set up a small W98 network to do the file transfers? DCC seems to lock up the computers alot. I would prefer to use VFP to coordinate the files between computers.
>

Regardless of whether you sert up an Ethernet-based network, or use one of the USB-based home networking packages, or RAS or third-party PC connectivity tools, if you want to do the work with VFP, a compliant, stable network is certainly the best alternative.

Ask yourself the following question: How much time have you spent jerking around trying to get DCC to work for you? If you never have to connect more than two computers, the cost of setting up a small MSNetwork boils down to (at the low end) a couple of $15-20 NICs and a crossover cable for 10BaseT, or a piece of coax, a couple T connectors and a couple of terminators. Compare that to the time already spent, and realize that the speed of a 10Mbps EtherNet is two orders of magnitude better than DCC over a serial port.

If at some point, a third machine needs to be added, DCC becomes untenable, while a simple Ethernet requires at most the addition of a cheap hub (I'd get a hub even with just two machines) and a cable, or in the case of ThinNet, a section of coax and a T-connector.

VFP is not well-suited to the task of writing very low-level comms, device drivers and the lot. It has a decent understanding of file systems, and with the addition of something like the WSH's Scripting.FileSystem Object, can get all the basic copy/move/delete functionality you're likely to need for file and folder operations.

>Thanks
>
>>>Is there a way to sync files on two computers using a null modem cable with API from VFP? I tried using DirectCC but it crashes alot. So If I can read a directory on another computer from VFP via the null modem cable it will be easy to do the file sync from VFP.
>>>
>>
>>You need to make a network connection between the two machines - DCC is just another networking mechanism. VFP relies on the networking APIs, whether provided by a dedicated LAN, DCC or RAS to work with files on another computer. It doesn't have any inherent ability to drive a serial connection any better than DCC would have.
>>
>>You might want to investigate a package like PC AnyWhere; it allows for similar functionality to DCC as well as remote control, and comes with a cable to make connections via the parallel port, which would be considerbly faster than via serial null modem connections.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform