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

File Copy Question

Is possible to copy file from some server for. e.g. brinkster to computer
(on specified location) programmatically?

I am trying to make some automatic update of my application...

Thanks :)
Nov 17 '05 #1
5 1203
Yes, it is possible.
There are many ways how you can do it.
If you have an access to the share on the computer e.g.
\\brinkster\someshare you can use this path to copy your files.

File.Copy(@"\\brinkster\share\file.txt", "c:\temp");
--
Vadym Stetsyak aka Vadmyst

"Washington" <ab******@yahoo.com> wrote in message
news:eF**************@tk2msftngp13.phx.gbl...
Is possible to copy file from some server for. e.g. brinkster to computer
(on specified location) programmatically?

I am trying to make some automatic update of my application...

Thanks :)

Nov 17 '05 #2
hi,

don't bother doing autoupdates manually. instead use "updater
application block".
here is the Updater Application Block (warning - long link):
http://msdn.microsoft.com/library/de.../updaterv2.asp

here is an example code:
http://www.codeproject.com/csharp/Va...daterBlock.asp

i also suggest you take a look at the webcast on the ms site - it will
explain some concepts concerning autoupdating apps.

Washington wrote:
Is possible to copy file from some server for. e.g. brinkster to computer
(on specified location) programmatically?

I am trying to make some automatic update of my application...

Thanks :)

Nov 17 '05 #3
I have information about absolute path on Brinkster, for e.g. Absolute Root
Path: c:\sites\Single\xxxx for Brinkster, but it is similar as is on my
computer c:\ something.
I have ftp information's (address and user) if is useable...

Thanks :)
"Vadym Stetsyak" <va*****@ukr.net> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl...
Yes, it is possible.
There are many ways how you can do it.
If you have an access to the share on the computer e.g.
\\brinkster\someshare you can use this path to copy your files.

File.Copy(@"\\brinkster\share\file.txt", "c:\temp");
--
Vadym Stetsyak aka Vadmyst

"Washington" <ab******@yahoo.com> wrote in message
news:eF**************@tk2msftngp13.phx.gbl...
Is possible to copy file from some server for. e.g. brinkster to
computer
(on specified location) programmatically?

I am trying to make some automatic update of my application...

Thanks :)


Nov 17 '05 #4
Thanks, I'll try it.

But I am still interested to know how I can copy file directly, or
something...
The recomendation in previous message doesn't works :(

"SharpCoderMP" <cs*******@interia.pl.NFSPM> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
hi,

don't bother doing autoupdates manually. instead use "updater application
block".
here is the Updater Application Block (warning - long link):
http://msdn.microsoft.com/library/de.../updaterv2.asp

here is an example code:
http://www.codeproject.com/csharp/Va...daterBlock.asp

i also suggest you take a look at the webcast on the ms site - it will
explain some concepts concerning autoupdating apps.

Washington wrote:
Is possible to copy file from some server for. e.g. brinkster to
computer (on specified location) programmatically?

I am trying to make some automatic update of my application...

Thanks :)

Nov 17 '05 #5
to copy from other machine you have to share a folder on that machine.
and to access it from outside you don't need to know its absolute path -
instead you have to know the name of the share, hostname and file name
itself. so if you share folder "c:\sites\single\" on machine brinkster
it usually is accessible from outside with path like this:
"\\brinkster\single\" unless you set different share name.

as to ftp - as far as i know there is no direct way to get files from
ftp in a simple way, so to get some clues you may want to look here:
http://www.codeproject.com/csharp/ftplib.asp

Washington wrote:
Thanks, I'll try it.

But I am still interested to know how I can copy file directly, or
something...
The recomendation in previous message doesn't works :(

"SharpCoderMP" <cs*******@interia.pl.NFSPM> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
hi,

don't bother doing autoupdates manually. instead use "updater application
block".
here is the Updater Application Block (warning - long link):
http://msdn.microsoft.com/library/de.../updaterv2.asp

here is an example code:
http://www.codeproject.com/csharp/Va...daterBlock.asp

i also suggest you take a look at the webcast on the ms site - it will
explain some concepts concerning autoupdating apps.

Washington wrote:
Is possible to copy file from some server for. e.g. brinkster to
computer (on specified location) programmatically?

I am trying to make some automatic update of my application...

Thanks :)


Nov 17 '05 #6

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

Similar topics

11
by: BoonHead, The Lost Philosopher | last post by:
I think the .NET framework is great! It's nice, clean and logical; in contradiction to the old Microsoft. It only saddens me that the new Microsoft still doesn't under stand there own...
2
by: RitaG | last post by:
Hi. In a VB.Net program I use File.Copy to copy some zipped (and text) files from one server to another. I'm required by management to do a file compare after the copy has completed. Is the...
8
by: Siu | last post by:
Hi, is it possible to sort a XML file without using a XSLT or XSL file?? For example, my XML is: <A> <1> <3> <4> <2> </A>
1
by: gale | last post by:
I have an Access 2003 project. I need for users to be able to run a report and copy the report in Excel format to a web server. The problem is, they do not have write access to the web server. I...
3
by: Don Pasquale | last post by:
The following function intends to delete "numberoflines" lines from a text file, named "s" (string pointer) and pointed to by file pointer "fp", starting from line "line". Now, the function...
14
by: Michael R. Copeland | last post by:
I'm writing an application that requires an "intelligent merge" of 2 files. That is, equal data has a "preferred source" that I want to write out. What I have works, I believe, but it seems...
8
by: Dinesh Jain | last post by:
Hi all, I encountered a serious problem while working with clipboard class in VB.NET. I want to simulate cut-copy-paste operation with my application and Windows Explorer. User can copy files...
8
by: Sarah | last post by:
I need to access some data on a server. I can access it directly using UNC (i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network drive resource (S:\Path\FileName). Here is my...
9
by: CGW | last post by:
I asked the question yesterday, but know better how to ask it, today: I'm trying to use the File.Copy method to copy a file from a client to server (.Net web app under IIS ). It looks to me that...
12
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.