473,471 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how to send file between PC's on local Network by using PC name ??

1 New Member
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim FileToCopy As String
Dim NewCopy As String

FileToCopy = "C:\Users\????\Desktop\fileName"
NewCopy = "C:\Users\???\Desktop\new\fileName"

If System.IO.File.Exists(FileToCopy) = True Then
System.IO.File.Copy(FileToCopy, NewCopy)
MsgBox("File Copied")
End If
End Sub
Jan 24 '12 #1
2 2740
C CSR
144 New Member
See if you can use \\computername\sharedfolder\ as your pathname.
Jan 25 '12 #2
C CSR
144 New Member
Still just guessing; but have you mapped a drive letter to the destination?
Jan 25 '12 #3

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

Similar topics

2
by: Siobhan | last post by:
Hi - I create a input box as follows: <INPUT id="inpJobDescEmpSpec" style="BORDER-RIGHT: gray thin solid; BORDER-TOP: gray thin solid; Z-INDEX: 181; LEFT: 232px; BORDER-LEFT: gray thin solid;...
2
by: createdbyx | last post by:
I am trying to make a file sync utillity to sync files between my laptop and my desktop pc. On my desktop machine (xp pro sp2) I have shared my "Visual Studio Projects" folder using windows simple...
2
by: =?Utf-8?B?Y2hpZWtv?= | last post by:
Hello, I have Asp.net 2.0 app that needs to send an email. It works fine when the app tries to send inside of the network, but I can’t send email outside. Does anyone know how I can resolve...
7
by: Lunchtimemama | last post by:
I need to move a jpeg file to another machine on a local network (for which I have full permissions). The following works: ***************** string inputPath = @"C:/test.jpg"; string outputPath...
6
by: kulkanuja | last post by:
i am facing a problem to run my web page on my local network. My own pc act as a server pls tell me what should i do to run it on my local network. pls tell me and help me
1
by: EgoSum | last post by:
How c# app connect to sql server on another pc in local network? Is connection string same when server on local pc? Is there diversity if server is sqlexpress?
1
by: sujeetkumartsr | last post by:
Hi friends, I am trying to get all user name which is connected to local network in c# (Programe). If you know then send me code.
3
by: EgoSum | last post by:
How can I create win application that may launch through local network from another PC, where it is installed?
4
by: supersav144 | last post by:
Hi there, i have a simple application which connects to a web service and then this web service creates a file on the machine which the application was accessed on... the problem i have though...
3
by: impin | last post by:
admin has to send messages to the users who are all in the network in a local area network. is it possible in php? plz help.
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.