1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Resolved DOS COPY with a NAS

Discussion in 'Other PC Software' started by elcajongunsfan, 2015/03/08.

  1. 2015/03/08
    elcajongunsfan Lifetime Subscriber

    elcajongunsfan Well-Known Member Thread Starter

    Joined:
    2012/01/01
    Messages:
    384
    Likes Received:
    14
    Anybody know if you can use the DOS copy command to copy files from your computer to a network attached storage? The closest I could find was for linux.

    I noticed that Arie is a big DOS fan. Anybody else know?

    Thanks
     
  2. 2015/03/08
    rsinfo

    rsinfo SuperGeek Alumni

    Joined:
    2005/12/25
    Messages:
    4,076
    Likes Received:
    178
    Yes you can. If you have mapped a drive, you can just use copy c:\folder1 x:\folder2.

    If you are not using a mapped drive just use copy c:\folder1 \\nas-netbiosname\shared-resource\folder2.
     

  3. to hide this advert.

  4. 2015/03/09
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Or better yet, use xcopy. The article says Windows XP but xcopy still exists in later versions of Windows.
     
  5. 2015/03/09
    elcajongunsfan Lifetime Subscriber

    elcajongunsfan Well-Known Member Thread Starter

    Joined:
    2012/01/01
    Messages:
    384
    Likes Received:
    14
    So I run the "net view \\NAS_NAME" command and it shows the NAS and all the shares on it, but when I do the net view \\NAS_NAME\SHARE all I get:

    The filename, directory name, or volume label syntax is incorrect.
     
  6. 2015/03/09
    rsinfo

    rsinfo SuperGeek Alumni

    Joined:
    2005/12/25
    Messages:
    4,076
    Likes Received:
    178
  7. 2015/03/10
    elcajongunsfan Lifetime Subscriber

    elcajongunsfan Well-Known Member Thread Starter

    Joined:
    2012/01/01
    Messages:
    384
    Likes Received:
    14

    this link doesn't state anything I don't know

    Let me explain it again. Let's say you have a NAS called NAS.

    executing this command: net view \\NAS displays all the shares on the NAS. Let's say one of the shares is called rsinfo

    Executing this command: net view \\NAS\rsinfo displays the "bad command or syntax" error or words to that effect.. Changing the directory divider to / does'nt make a difference.

    And I know I swerved off course from my original post about copying but it is relevant.. If you can't net view a share on a NAS you surely cannot use the DOS COPY command to copy a file from your main machine to a network resource

    Thanks
     
  8. 2015/03/10
    Steve R Jones

    Steve R Jones SuperGeek Staff

    Joined:
    2001/12/30
    Messages:
    12,317
    Likes Received:
    252
    Actually I just did it...

    C:\>copy irstax.xls \\stevevistabus\temp
    1 file(s) copied.

    I think the Net View command has some limitations.
     
  9. 2015/03/10
    rsinfo

    rsinfo SuperGeek Alumni

    Joined:
    2005/12/25
    Messages:
    4,076
    Likes Received:
    178
    net view shows you the shares but in a different way.

    If you give net view \\nasbox ,it would show you all the shares on nasbox. It wouldn't show you the directory structure or files inside the shares. For that use dir \\nasbox\share_name.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.