By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,678 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,678 IT Pros & Developers. It's quick & easy.

How to copy files across network without using network share

P: n/a
How do I programmatically copy files across a network (from a local
workstation to another local workstation on the network) using visual basic
2005?
In other words, when in explorer and you enter a unc path to a network
workstation, you are prompted with a dialog box asking for the user name and
password that has access rights to that computer. After validating, you can
access the files on the remote pc just like you can on your own pc, at which
point you could copy files to the remote pc.
I am trying to copy files to a remote pc and need to know how to do the
above in code.
Any help would be appreciated.
--
Sean McIntire
Jun 21 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Well i copy with my programs just over the UNC paths but indeed my program
is running with the apropriate rights

So the trick is to give the program the right user credentials ( one that
has the apropriate rights on the target system ) , this is also possible
through code

"SeanMac" <Se*****@discussions.microsoft.comschreef in bericht
news:F6**********************************@microsof t.com...
How do I programmatically copy files across a network (from a local
workstation to another local workstation on the network) using visual
basic
2005?
In other words, when in explorer and you enter a unc path to a network
workstation, you are prompted with a dialog box asking for the user name
and
password that has access rights to that computer. After validating, you
can
access the files on the remote pc just like you can on your own pc, at
which
point you could copy files to the remote pc.
I am trying to copy files to a remote pc and need to know how to do the
above in code.
Any help would be appreciated.
--
Sean McIntire

Jun 22 '07 #2

P: n/a
How do you do this in code?
--
Sean McIntire
"Michel Posseth [MCP]" wrote:
Well i copy with my programs just over the UNC paths but indeed my program
is running with the apropriate rights

So the trick is to give the program the right user credentials ( one that
has the apropriate rights on the target system ) , this is also possible
through code

"SeanMac" <Se*****@discussions.microsoft.comschreef in bericht
news:F6**********************************@microsof t.com...
How do I programmatically copy files across a network (from a local
workstation to another local workstation on the network) using visual
basic
2005?
In other words, when in explorer and you enter a unc path to a network
workstation, you are prompted with a dialog box asking for the user name
and
password that has access rights to that computer. After validating, you
can
access the files on the remote pc just like you can on your own pc, at
which
point you could copy files to the remote pc.
I am trying to copy files to a remote pc and need to know how to do the
above in code.
Any help would be appreciated.
--
Sean McIntire


Jun 22 '07 #3

P: n/a
Even though the following article says 'asp.net' in the title, it is
actually
applicable to what you want to do (impersonate a specific user).

http://support.microsoft.com/kb/306158

and another good explanatation with example code

http://www.eggheadcafe.com/articles/20020418.asp

regards

HTH

Michel Posseth



"SeanMac" <Se*****@discussions.microsoft.comschreef in bericht
news:42**********************************@microsof t.com...
How do you do this in code?
--
Sean McIntire
"Michel Posseth [MCP]" wrote:
>Well i copy with my programs just over the UNC paths but indeed my
program
is running with the apropriate rights

So the trick is to give the program the right user credentials ( one that
has the apropriate rights on the target system ) , this is also possible
through code

"SeanMac" <Se*****@discussions.microsoft.comschreef in bericht
news:F6**********************************@microso ft.com...
How do I programmatically copy files across a network (from a local
workstation to another local workstation on the network) using visual
basic
2005?
In other words, when in explorer and you enter a unc path to a network
workstation, you are prompted with a dialog box asking for the user
name
and
password that has access rights to that computer. After validating,
you
can
access the files on the remote pc just like you can on your own pc, at
which
point you could copy files to the remote pc.
I am trying to copy files to a remote pc and need to know how to do the
above in code.
Any help would be appreciated.
--
Sean McIntire



Jun 22 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.