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.

How to use copy function to copy file from one computer to another

rizwan6feb
108 100+
Hello everybody. I need help on how to use copy function to copy file from one computer to another ( or any other way i can copy the file). The computers are on a local network.
May 27 '08 #1
9 4949
rizwan6feb
108 100+
Still looking for help
May 27 '08 #2
hsriat
1,654 Expert 1GB
Still looking for help
I really don't want to tell you once again that what you are asking for is not possible.

But you can't do that if the machines are client machines.

I have never used something like this before, so can't really help you.
May 27 '08 #3
Atli
5,058 Expert 4TB
What do you mean by "copy from one computer to another"?

Is one a server and the other a client?
Are they both servers that need to exchange files?
Are they client machines?
What OS are they running?
Do you need this done periodically or just once?

No script running on computer A can access the file system on computer B without some sort of a file-transfer protocol, like say FTP.

Do you have something like that set up?
May 27 '08 #4
rizwan6feb
108 100+
English is not my native language, that might be creating difficulty in understanding my question, but let me try to explain the scene.

Both computers are on a local network and running WindowsXp. First computer (Computer A) is my PHP server. The second computer (Computer B) is a client with a network connection to Computer A. Whenever a file is uploaded on Computer A, i want to make a copy of that file on Computer B.
May 28 '08 #5
TheServant
1,168 Expert 1GB
English is not my native language, that might be creating difficulty in understanding my question, but let me try to explain the scene.

Both computers are on a local network and running WindowsXp. First computer (Computer A) is my PHP server. The second computer (Computer B) is a client with a network connection to Computer A. Whenever a file is uploaded on Computer A, i want to make a copy of that file on Computer B.
How is it being uploaded on Computer A? B will need to download the target file if it is a client machine. I believe this can be done automatically, but there will need to be some downloading. Maybe something can be done with the network, provided there is a shared harddrive, but if I understand correctly, you will need a script that is run when someone uploads a file on Computer A, which will tell Computer B to download it as well.
May 28 '08 #6
rizwan6feb
108 100+
copy ("file1.txt","\\\\computerb\\share\\file1.txt") ;

This is what i was looking for. The above function copies a file from ComputerA to ComputerB (name is computerb). Computer B has a shared directory which is accessible by Computer A. No ftp, no downloading is required.

Rizwan
May 28 '08 #7
Atli
5,058 Expert 4TB
That should work. Although it may be a little dangerous.
I assume the upload directory will have to be set to give everybody write permission for this to work?

If you want a little more security, I would advice setting up a FTP server on computer B, which computer A could log into before it could copy the file.
It would restrict the access so not everybody could just go in there and mess with your files.
May 28 '08 #8
TheServant
1,168 Expert 1GB
copy ("file1.txt","\\\\computerb\\share\\file1.txt") ;

This is what i was looking for. The above function copies a file from ComputerA to ComputerB (name is computerb). Computer B has a shared directory which is accessible by Computer A. No ftp, no downloading is required.

Rizwan
Nice! You learn something new everyday! But as Atli says, it looks very dangerous and I hope you have a lot of security measures before the file is uploaded!
May 28 '08 #9
rizwan6feb
108 100+
That should work. Although it may be a little dangerous.
I assume the upload directory will have to be set to give everybody write permission for this to work?

If you want a little more security, I would advice setting up a FTP server on computer B, which computer A could log into before it could copy the file.
It would restrict the access so not everybody could just go in there and mess with your files.
Thats right Atli, but i have no idea how to setup an FTP server? I have been reading a tutorial on setting up FTP server, will need help if i face any problem
May 29 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: GiladP1 | last post by:
Hi, I want to copy protect my application. I want to limit its use for a given period of time, say 30 days, after which a license key will be needed. There are various issues to consider here...
8
by: Ram Baruch | last post by:
Hi, I'm trying to use the File.Copy() function. It works well when the desenation file is local (Like: C:\dest\dest.exe). The problem is that when I'm trying to copy to a destenation that starts...
4
by: adnan boz | last post by:
Hi All, Does somebody know why File.Copy function is 10 times slower than standard windows drag and drop copy between folders, when I copy files over the network? Actually, I need to copy files...
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
20
by: Paul Bromley | last post by:
Not sure if I can ask the question in this forum - please let me know if it is better elsewhere. Does anyone know of a reasonably priced good copy protection program that will protect software on...
4
by: eholz1 | last post by:
Hello PHP group, I am trying to use the copy function to copy files from one directory to another. This does not seem to work for me. What am I missing? Below is the code I am using. ...
0
by: Paul Brady | last post by:
I volunteer at a youth ministry agency and help them with their student database. They have two computers, both running Windows XP. Both have Office 2002 installed without Access, except that...
2
by: TwistedPair | last post by:
All, This is sort of a continuation of a previous post of mine. The code below basically reads a registry key to get a path to a folder and it watches for files created in that folder (only...
10
by: Jason | last post by:
I want to create a simple program with Two buttons on the form. BUTTON 1 - BACKUP PREFS this will do the following: Copy C:\Documents and Settings\%USERNAME%\Application Data\FileZilla...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: 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...
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...

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.