Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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
 
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
Default

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

 ABeen
  Life is not fair,get used to it .
 
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
Default

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

Thanks





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.