Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Copying files between an intranet

  • 01-06-2005 07:34PM
    #1
    Closed Accounts Posts: 680 ✭✭✭


    This is probably a really simple question to answer, but here goes.

    I have an intranet set up between two desktops via an eircom broadband modem. If i want to set up a batch file that copies certain files from one to the other how would i do it.

    I know the command is something like

    xcopy c:\[directory]\*.* c:\[destination]\

    but whats the command to specify that its from the other computer?


Comments

  • Registered Users, Registered Users 2 Posts: 950 ✭✭✭jessy


    I would imagine that it would be xcopy C:\myfolder\*.* \\myfolder

    cant remember tbh but i think that will work.


  • Registered Users, Registered Users 2 Posts: 950 ✭✭✭jessy


    on second thoughts you will probably need to map the Network location to a drive letter.


  • Closed Accounts Posts: 95 ✭✭motrocco


    for windows:-
    create a share on the machine to copy to.

    net share /? will give you help.

    map the network drive from machine to the share.

    net use /? will help map.

    copy over.
    copy /? will help for copy.


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 96,283 Mod ✭✭✭✭Capt'n Midnight


    The remote PC can a drive mapping or you can use a UNC name / IP address.

    REM Share a folder on PC2 - c:\share - right click etc.
    Net use X: \\PC2\Share
    xcopy c:\folder\*.* X:\*.*

    REM by UNC name
    Xcopy c:\folder\*.* \\PC2\share\*.*

    REM by IP if you are an Admin and haven't locked down the other PC.
    Xcopy c:\folder\*.* \\192.168.0.2\c$\share\*.*

    REM I like this because it can be run from either end
    Xcopy \\192.168.0.1\C$\folder\*.* \\192.168.0.2\c$\share\*.*

    REM keep copying if error / don't overwrite newer files / sub folders / yes if asked to overwrite.
    Xcopy *.* x:\*.* /C /D /S /Y


Advertisement