Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems at copying files through modem, even with Shell
Message
De
17/07/2001 11:48:15
 
 
À
17/07/2001 04:16:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00531403
Message ID:
00531567
Vues:
11
>Hello to everyone !
>
>In my VFP6 code I copy an archive file (.RAR) through a 28800 bps modem from several workstations to a server, but every workstation at a time .
>In most cases (from some workstations), the copy process goes well .
>But in some cases an error occurs: "Cannot create file" . And the archive cannot be copied . Still, from another Windows application (ex. Windows Explorer) that archive can be very well copied .
>The copy process is from workstation to server (the archive is on workstation) and is started from server .
>
>The copy process can be done in 2 ways (free choice of user):
>1) with VFP "copy file" command
>2) with Shell command using Windows Explorer type copy.
>...
>local winfile
>winfile=CREATEOBJECT("Shell.Application")
>winfile.namespace("c:\temp\").copyhere("c:\autoexec.bat")
>...
>But none of these does work (sometimes, not always) .
>Could it be that Windows makes more retries in case of errors at copying and finally the file can be copied ? In this case , can I set the number of retries in a way ?
>
>So, if anyone could help me , thank you from now !
>
>Mihai

Mihai,

Does the copy fail from particular workstations, or does it fail from any workstation at random?

When you say you can copy it through Windows Explorer, it works very well. Are you copying the archive from and to the same machine?

Try addressing the target drive (your server's) by its UNC name and see if the same problem exists.
Sanjay Kapoor

Relatively speaking is a conversation with Einstein
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform