473,322 Members | 1,473 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,322 software developers and data experts.

Copying file to remote computer

Hello All,
I am facing a serious problem while copying a file to a remote computer
programmatically.
What I want to do:
I want to connect to a remote computer and copy a file to the remote
computer programmatically. I have the administrator username and password of
the remote computer.
Can anyone tell me how this can be done?
I have tried using ManagementScope but it does not work.

Regards,
Bhavya Shah
Nov 15 '05 #1
1 6613
Hi,

I think that the problem is how to connect to the remote computer, I think
that you could do that from code using "Network management API" , the
function should be NetShareAdd , but I haven't tested it.
What I did cause it was easier was using net.exe , I create a Process
instance that execute "net use" in the background with the correct
parameters and it's working great!.

I can give you the code if you want it.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Bhavya Shah" <bh*********@i-link.co.in> wrote in message
news:O6**************@TK2MSFTNGP11.phx.gbl...
Hello All,
I am facing a serious problem while copying a file to a remote computer
programmatically.
What I want to do:
I want to connect to a remote computer and copy a file to the remote
computer programmatically. I have the administrator username and password of the remote computer.
Can anyone tell me how this can be done?
I have tried using ManagementScope but it does not work.

Regards,
Bhavya Shah

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Alban55 | last post by:
Hi, I'm looking for a method to upload a file from a site to the Unix server running my database. How can I connect this computer to create a file on it ? and can can I read and write the files...
2
by: Daniel | last post by:
when i use stream writer to write to a shared folder, and the network card of that remote computer is disabled in the middle of the write then reenabled later. every time i try to write to that...
1
by: Yaniv M | last post by:
Hi, How can I get information of specific file in remote computer? I want to get file's status in other computer, this file belongs to shared directory, I want to get the file size, existanse of...
1
by: Chidvilas | last post by:
// Get all processes running on the remote computer. Process remoteAll = Process.GetProcesses("XYZ"); when I am exectuing the above code, it is giving excetpion saying "Couldn't get process...
2
by: schaf | last post by:
Hi Ng ! I'm a little confused because of my application. I need to access a file in the path C:\Temp\test.txt on a computer in the same network. Now I just know the IP address of this PC. Is it...
1
by: schaf | last post by:
Hi all! I'm still trying to start/stop a service on a remote computer. (I promiss that's the last new post because of this problem from my side) My situation: I've an application running under...
3
by: Pete | last post by:
I successfully use "My.Computer.Network.DownloadFile", including the authentication data, but I would appreciate learning how to first test whether the file exists on the remote computer. Thanks....
5
by: idorjee | last post by:
hi guys, I'm trying to figure how to read a file from my other computer, and here is what i did. it doesn't work for some reason. i would really appreciate if you could help me with this. i get...
2
by: SayamiSuchi | last post by:
-------------------------------------------------------------------------------- Hi, I have made one web application using Asp dot net 2005 and sql server 2005.The sql server i am connecting is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.