Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FileInfo.MoveTo delay
Message
From
26/11/2012 21:48:30
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
FileInfo.MoveTo delay
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01558133
Message ID:
01558133
Views:
84
I have this declaration:
            Dim loFile As New FileInfo(tcSource)
Then, I want to move the file. I use something like this:
                    loFile.MoveTo(tcDestination)
Is it possible that this MoveTo() method is being executed in the background? I have a weird situation that, sometimes, once this command is being executed that the code which follows cannot see the file. I always assumed that method completes its operation before the code continues on the next line. But, what I am experiencing on a high volume transactions of moving file here and there leads me to think that there could be something behind all this.
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
Next
Reply
Map
View

Click here to load this message in the networking platform