473,386 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

file transfer from one pc to another pc

ERROR: The given path's is not supported.

Help me please.. i don't know what to do..
thanks in advance


Expand|Select|Wrap|Line Numbers
  1. Try
  2.  
  3.         Dim FileToCopy As String
  4.         Dim NewCopy As String
  5.         Dim password As String = "Cyndy"
  6.         Dim username As String = "Abbang"
  7.  
  8.         FileToCopy = "c:\HS.exe"
  9.         NewCopy = "\\192.168.xx.xx\C$\BACKUP\HS.exe" & username & ":'" & password
  10.  
  11.         If System.IO.File.Exists(FileToCopy) = False Then
  12.  
  13.             System.IO.File.Copy(FileToCopy, NewCopy, False)
  14.  
  15.             MsgBox("File Uploaded Successfully")
  16.  
  17.             MsgBox("File Copied")
  18.         Else
  19.             MsgBox("cannot copy")
  20.         End If
  21.  
  22.     Catch ex As Exception
  23.         MessageBox.Show(ex.Message)
  24.     End Try
  25.  
Mar 26 '14 #1
1 1193
Luuk
1,047 Expert 1GB
Line#9 seems to be the problem

Because a ':' is not supported in a path. Not in the middle at least only as second char in the drive specification
Mar 26 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Neel Word | last post by:
I need to develop an application (development platform: Win2000; target platform: Win98/ME/NT4/2000/XP), which would require file transfer functionality over dial-up and network. We could...
0
by: GrantS | last post by:
I need urgent help. Done OK for a newbie getting automation of Windows Messenger into a Winform C# app but have three problems that I urgently need pointers to. Point 1 and 2 are the same issue, I...
6
by: clintonG | last post by:
After the last six days trying to download VS2005 Professional it seems there may be a problem with my instance of the File Transfer Manager (FTM) or somewhere in the network in between. I can't...
2
by: Landley | last post by:
Dear Fellow Coders, I am attempting to send files using UDP. I had no problem sending small files, but when the files were over a certain size an exception was thrown. It was moaning about the...
2
by: Grey | last post by:
i have used asp.net to transfer a file from one server to another . i use the system.io.file.copy to copy the file. But i want to know that how can assure the file is transfer complete?? Do i need...
9
by: Sakharam Phapale | last post by:
Hi All, I want to read data from one file and write that into another file. Which is a way to do it quickly in terms of processing time? Data to be transfer is huge one. E.g. 2147483458...
2
by: Slug | last post by:
Hi guys, Just wondering if any of you out there who have real-world experience with restartable (if transfer interuppted) internet-based file transfer solutions would mind posting your comments,...
10
by: David | last post by:
I have googled to no avail on getting specifically what I'm looking for. I have found plenty of full blown apps that implement some type of file transfer but what I'm specifcally looking for is an...
0
by: fiona | last post by:
Yucca Valley, CA, - October 2007: Catalyst Development Corporation, publisher of SocketTools, SocketWrench and LogicGem, today announced the release of Catalyst File Transfer .NET V5.0. For...
2
by: kashifjawed | last post by:
I'm developing a c# asynchronous socket application for tranfering file or large data from client to server and server to client as well in chunks. Application sometimes transfer file from client...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.