Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File.Copy and lock file
Message
De
19/02/2014 17:10:30
 
 
À
19/02/2014 17:04:42
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01594636
Message ID:
01594720
Vues:
17
>Ah. I was under the impression you were transferring millions of files weekly, and on rare occasions you would get errors on *random* files. If the errors happen only to one file name, and you have a secondary process on the lookout for that particular file name it's pretty certain that's the cause.

Yes, but on various other directories where the process I am doing deals with one specific file in some targeted directories.

>In that case the .TMP file approach should work. But you'd have to make sure your file copy operation to that .TMP file is synchronous and run the rename only after it's finished.

Yes, that is what it is.

>In the past I've run into occasional errors renaming files or folders on Samba volumes. But if you're working against a good-quality NAS that's designed for Windows compatibility, you should be OK.

Yes, and if it's not, we'll escalate that to network engineers.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform