Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 31st, 2006, 07:39 PM
Registered User
Join Date: Oct 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create/Upload a file on a Remote Machine

Hi guys,

I recently needed to upload a file from my computer to a remote computer. I really didn't know how to do this in C#, so I quickly just made a web application in ASP.NET 2.0 because it was easier (well, maybe because I just knew how to do it). Is there anyway someone can give me a link with some resources about this issue? I can't seem to find any. Or if not links, can someone give me some direction as to what I should be searching for to do what I want to do?

I don't need a client/server application. I just want a client application to select a file and copy the selected file on a remote server somewhere (that is hard coded). So it is generally an uploading of a file. The reason I need to do this is because I want to do a Bulk Insert into SQL, and this SQL Server is located on a remote machine. Well, the only way to do a Bulk Insert is to have SQL see the file, which means it has to be local to the SQL Server.

Do I need to utilize sockets for this?

Is there a better way to insert many rows into SQL from a remote location?

Thanks, Smbat
Reply With Quote
  #2 (permalink)  
Old November 2nd, 2006, 11:48 AM
Authorized User
Join Date: Jul 2006
Location: DongYing, , China.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to abeen

you can use FTP or put the file upload the Application folder.

  Life is not fair,get used to it .
Reply With Quote
  #3 (permalink)  
Old November 20th, 2006, 12:42 PM
Registered User
Join Date: Nov 2006
Location: delhi, delhi, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

I want to send the files over the network and save them on the remote machine.
Also the remote server is not a web or FTP server.
So how can i copy these files to the remote server whose IP is known.
These files contains a windows service so after copying I need to install and run this windows service.
Could you please tell me how should I do this thing in .NET


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retore Db from a remote machine to a local machine srkvellanki BOOK: Beginning SQL 0 October 3rd, 2008 05:17 PM
uploading file to a remote IP using upload control abhishekkashyap27 C# 2005 4 June 27th, 2008 07:50 AM
copy file or folder to remote machine using nant kalpana2009 NAnt 1 October 9th, 2007 09:27 AM
File Upload to Remote Server - - - Please Help sendoh11 ASP.NET 1.0 and 1.1 Professional 4 December 26th, 2006 10:29 AM
Upload file into a Remote Server swaminathanb Java GUI 2 April 7th, 2005 02:04 PM

All times are GMT -4. The time now is 04:10 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.