VS 2008 Network File Copy Performance?

Jun 24, 2010

I'm hoping someone can point me in a different direction. I'm copying files from one computer to another. Both are on the same switch connected at 1Gbps here's my problem:Using File.Copy with a list of files I can get an average transfer speed of ~60Mbps Using multiple background workers with a split list of files and File.Copy is slower Using the FileStream read/write method I get an average speed of ~55Mbps with a 8M buffer

What can I do to get a faster transfer rate? I'd be happy to hit 250Mbps over the LAN.

View 39 Replies


ADVERTISEMENT

VS 2008 Copy File To Network With Windows Service

Dec 9, 2009

I am working on a backup utility for use with the mysql db. Because I need the actual backup to run regardless of if a user is logged on or not, I created the backup engine in a windows service.

Basically the backup engine checks to see if a backup job is scheduled to be run and if it is, it kicks off a mysqldump to do the backup. For sake of performance I am saving all backup jobs to the local c: drive then doing a file copy to the user defined destination.

Everything works fine except for the file copy. If the user selects a local resource to the computer it works fine. However, if a network drive is selected, I get an error that it cannot find the path.

I started thinking about it and believe this is expected since the backup engine is probably oblivious to whatever mapped drives that particular user has, i.e. the mapping process is done when someone logs in and my app is running at a lower level.

I started doing some research on this problem and found that some people are saying that windows services are oblivious of networks all together. This seemed a little odd to me so I thought I would bring the issue here.

Is a windows service truely unaware of network activity? How can I change the program to move the completed backups over to a network drive?

View 5 Replies

VS 2008 Copy File To Network Share With Username/pass Passed In The Code

Aug 4, 2010

I've been looking at accessing shared folders, read and write, via the network without being prompted by the OS for the username and password.

On this forum, and googling, I can find many things about accessing network shares, but none using code which also passes the username and password required.

What I'm basically looking for is to not have to map a drive on the users computer. Then using code, write or read files from a network share and at the same time pass the username / password required for that network share.

View 11 Replies

Copy Shared Network File?

Feb 18, 2009

I am working in Microsoft Visual Studio 2003.I want to copy a file from one folder to another folder in php.

I written the code in vb.net and created exe. I called that exe in php.Exe is executed successfully in php and file is successfully copied for local path. But network path file is not copied. How can i able to copy the shared network file?

View 3 Replies

Source To Copy File From A Network Computer?

May 13, 2010

sample vb .net source to copy file from a network computer?

View 2 Replies

.net - Performance Comparison Bulk Insertion Using .Net Bulk Copy Or Table Value Parameters In SQL Server 2008

Jan 3, 2012

I am working on a desktop application in VB.Net (4.0) There will a lot of SQL scripts which contains a lot of insert queries Currenlty we are running the scripts using SMO (http://msdn.microsoft.com/en-us/library/ms162557.aspx)For performance, we have planned to change the sql scripts to xml file ( instead of insert queries, it will have xml data with a proper xsd defined )Loads xml to dataSet and Using SQL Bulk Copy we are trying to insert to SQL Server.

[Code]...

View 1 Replies

VS 2008 Network App - Send Message Or Network Package To Some Of The Clients In The Network

Aug 18, 2009

Here is my idea so far: I have a bunch of computers connected in a local network. One of them is a MySQL server, one will have a vb.NET program wich will act as a "second server" and the rest will be different clients. What I want to do is that the "second server" will send out some kind of message or network package to some of the clients in the network, and they will execute a code based on what message it is, or what kind of package it is. I'll give you a simple example:

[Code]...

View 6 Replies

VS 2008 Performance File Read/Compare?

Sep 15, 2009

this time im looking for a faster-than-fast way to read binary files into a string/buffer/whatever, like Delphi's BlockRead does.i need this for an application that checks a list of folders/files and looks for multiple files, and handles them according to specific criteria.

I know there are standard solutions for this, like DuplicateFileRemover (gotta love that sheep! ), but i need something custommade, coz i want to handle the duplicates automatically too, and im talking about GigaBytes of data i have to periodically clean out this way..So far, the algorithm i use to determine if 2 files are equal is this:

[Code]...

View 1 Replies

Copy A File From A Local Computer To A Remote Computer On The Network?

Dec 19, 2006

I need to copy a file from a local computer to a remote computer on the network, if i try to use File.Copy without logon i get the following error:"Logon failure: unknown user name or bad password."How do I provide user name and password for file copy?

View 2 Replies

Copy And Read Images Across Network?

Jun 5, 2011

I have built a client-server application with vb.net 2010 and sql server 2008. Now, I want to upload images of employees from registrar's office to the server.It is easy to do it with web-applications but not here.How do I go about it? I need a start.

View 1 Replies

VS 2008 My.Computer.Network.Ping() Cannot See Network Under Windows 7

Nov 18, 2011

I have a .NET 2.0 *.dll that calls My.Computer.Network.Ping(). The *.dll is then run out of an *.exe via AppDomain.CreateDomain() and Invoke(). The problem is that this works just fine under Windows XP but under Windows 7, I get an exception saying that no network connection is available. I tried the Ping() call out of a small console application under Windows 7 and it works just fine.

[Code]....

View 6 Replies

Copy The MSI From The Network Location, Store It Locally On The Remote Computer, Then Run It?

Apr 18, 2011

I'm using System.Management.ManagementScope to connect to a remote computer and install an MSI package. This works great if the MSI is located on the remote computer, but it fails if I try to use a network location to run the MSI from. The UNC path is correct because if I manually type it from the remote computer it runs fine. There must be a limitation (security I'm thinking) that prevents things from running via WMI if the exe isn't local to the remote machine.My last hope will be to copy the MSI from the network location, store it locally on the remote computer, then run it - but I'd really rather not have to do that.

View 3 Replies

VS 2008 - Process.Start() - Inconsistent - Load A File On Network

Oct 22, 2009

Im simply trying to load a file on my network. The file is a database file for access.. This code opens the file on my computer. However on the four computers tested 2 of them throw an error stating that the user canceled the operation. However the user didn't do anything. The error is thrown automatically. The other two are working perfectly fine.

[Code]...

View 2 Replies

VS 2008 My.Computer.Network.DownloadFile - Get Rid Of The File When A Users Cancel

May 7, 2011

I use this line to download files: My.Computer.Network.DownloadFile(VideoFilename, SaveLocation, "", "", True, 8000, True But if a users cancel the download my application crashes. I searched Google but there's very little info about this problem. I tried with: My.Computer.Network.DownloadFile(FilenameMP3, SaveLocation, "", "", True, 8000, True, FileIO.UICancelOption.ThrowException, FileIO.RecycleOption.SendToRecycleBin()) But that line of code doesn't work. I need to get rid of the file when a users cancel

View 1 Replies

VS 2008 Displaying File Copy Progress (copying File 1 Out Of 10)

Aug 11, 2009

Here's my

[Code]...

During the file copy, Label2 isn't being updated. In fact, my whole form goes non-responsive. How can I fix this?

View 5 Replies

VS 2008 - File.Copy Basics - Copying A File

Dec 14, 2009

I cannot do the following:

File.Copy(Application.StartupPath & "wait.exe", "%APPDATA%WAIT.EXE")

Can someone remind me how I got about copying a file to that location?

View 1 Replies

VS 2008 File.Copy And Fast File Copying?

May 22, 2012

So, I have a task where I need to basically copy about 600,000 PDFs, some of which can be 5-6 MBs from one network fileshare to another network fileshare on another pc.Now, I crawled through the directories, sub-directories etc etc and created what I call a Filename/Filepath Database lookup table. This table contains the name and the unc fileshare path of each file which comes in handy.I have used Multi-threading and File.Copy to "copy" the files and I getting about 45K files per 4 hours which I need to be significantly faster then that and I am seeing performance degrade over time

View 1 Replies

Deterime Length Of Time It Would Take For File.Copy To Copy A File?

Aug 5, 2010

I have a program that uses IO.File.Copy to copy files from point a to point b. Its slow, which is fine because there rather large files. I was wondering if there is way to get an estimate time to copy a particular file(s).

Example: File a will take 1 hour to copy, File B will take 30 minutes to copy. Estimate Total Time: 1 hour 30 minutes.

View 3 Replies

VS 2008 Copy File Error

Feb 21, 2011

I have got the following code to copy a file from one location to another.

Dim strPath As String = txtUploadLocation.Text
Dim strFile As String = txtUploadFile.Text
Dim FI As New IO.FileInfo(strFile)
Dim SR As New IO.FileStream(strFile, IO.FileMode.Open)
Dim SW As New IO.FileStream(strPath, IO.FileMode.Create)

[Code]...

Now obiously this is saying a permissions problem however i have checked the permissions and the user i am runing it from definatly has write access (full control as im a system admin., I have also just tried copying it to the local maching instead of the server in a remote location and it gives me the same error.

View 20 Replies

Unable To Perform Copy Of File In VB 2008

Jun 12, 2011

I am trying to copy a file from 1 location to other location with a new name. The new name should be like "Oldname + date & time". I wrote the following code but getting error that the Given path format is not supported Imports System.IO[code]...

View 2 Replies

VS 2008 - Can Copy The File To The Folder Images

Apr 27, 2010

I have a form, who should show me a image.In the form, I put a Open File Dialog, and select the image.After this, with the filename, I can open and show the image.But, What I wanna do do is the following:In my application folder, I wanna create a folder named "Images". And, after the user select the image with the Open File Dialog, I wanna copy the image to that folder.After this, my app opens all the images from this folder.I can I copy the file to the folder images?

View 4 Replies

VS 2008 - Copy File To Folder Specified In Textbox

Oct 8, 2010

I would like to copy a file from the serve to a folder that is specified in a textbox.

CopyFiles("\agb1datSOFTeasy-1390171.txt", TextBox1.Text)
Private Sub CopyFiles(ByVal sourcePath As String, ByVal DestinationPath As String)
If (Directory.Exists(sourcePath)) Then
For Each fName As String In Directory.GetFiles(sourcePath)
If File.Exists(fName) Then
Dim dFile As String = String.Empty
[Code] .....

The problem is with the destination. The destination is selected by a select folder dialogbox. I want to copy the file from the server to the folder specified in the textbox.

View 5 Replies

VS 2008 Copy A File To A Predetermined Location?

Apr 18, 2009

What I am trying to figure out is a way to copy a file and paste it in another location. So that there will be the original file in the user set location, and then a duplicate of that file in, say, the "Program Files" folder. I would also need some way to check if the file exists to, so that it doesn't keep creating a new file each time the program starts up.

to sum it up: I need to be able to copy a file to a predetermined location and check if the file exists, and if it doesn't, it will copy the file over to the location.

View 1 Replies

VS 2008 Copy Resource To File System?

Jun 5, 2010

I'm writing a program that I want to attach another program (.exe) to. I tried adding it as a resource, but I can't seem to get the resource to export out to wherever the program is running.

View 3 Replies

VS 2008 Copy/Paste Temporary File?

Apr 26, 2010

I have a program where by I want to copy a temporary (in coming file from an email attachement) and I want to paste this onto my form (listview control perhaps??)

How can I paste this on there so when I click a button I end up saving this file into a selected loction.

I've google search this with no luck.

View 39 Replies

VS 2008 File Compare And Copy Or Rename?

Nov 3, 2009

I am helping a friend convert files from floppy to CD. The files are in WordPerfect for DOS (8.3)format. she named the files as follows: name.month eg; Baker.jan. if there were more than 1 "Baker" files in the same month she named them baker1.jan,Baker2.jan etc... She then copied them to floppies and when one got full she started another. The problem is I have multiple instances of the same filename on different disks so when I copy to my HD windows asks if I want to overwrite the files. I have been writing the names down and renaming them manually. Is there any way to automate this process? I would need to perform the following:

1. Check if floppy filename exists on HD already
2. if it doesn't, copy to HD
3. if it does, is it the same file or different file with the same name (file size has been a good indicator so far)
4.If it's the same =>ignore and go to next file on disk
5. if different, rename then copy to HD then go to next file
6. repeat until all files have been copied

I have 300+ disks to do this with and it is very time consuming.

View 7 Replies

VS 2008 Seeing Long It Takes To Copy File

Aug 12, 2009

Here's the (Timer1's interval is set to "1" in the designer, and it is set to "Enabled" in the designer as well.)

vb.net
Public timeElapsed As Int32Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
timeElapsed = 0
Timer1.Start()

[Code]...

The issue is, timeElapsed always comes back as equaling 0, so fileCopySpeed always equals infinity. Also note that test.dat is a 100MB file. There's no way it's getting copied in under 1 millisecond!

View 12 Replies

VS 2008 File Permissions (can't Delete, Can't Build, Can't Copy)?

Mar 12, 2010

I tried searching for this issue but the search gives me a database exception and I'm kind of at my wit's end. I'm sureEver since I upgraded to Windows 7 Professional I've had constant build problems with VS 2008. I can't use the Hosting Process (not that I normally do) because at build I'll be notified VS could not copy a support file (the hosting exe). In addition, every time I build I'm told my previous exe is in use by another process and cannot be accessed. My only recourse is to manually delete the file. That works a few dozen times but eventually Windows stops letting me delete it and tells me that I require permission from an Administrator to make changes to the file (I'm the administrator, stupid machine).

View 6 Replies

VS 2008 Save .txt File And Copy 2 Images From 1 Button?

Mar 15, 2010

I have 2 save buttons on my form, 1 which saves all textbox contents to a .txt file, and 1 which saves a image capture of the active window to a jpg. Both work fine, on the same form i have 2 picture boxes which the images are loaded into based of a list box like so:

[Code]...

View 2 Replies

[2008] Copy File To Local Machine And Allow It To Open

Feb 15, 2009

We have an app that tracks .DOC and .PDF files (and possibly other file extensions). It stores copies of them on a network share. I want to give the ability to the user to allow them to click the file in a listview, for example, and have that file open in WORD or ADOBE or whatever program is associated with that file type.

[Code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved