Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Copying files between an intranet

  • 01-06-2005 7: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: 93,604 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