Results 1 to 5 of 5

Thread: Access a shared folder with command prompt?

  1. #1
    Join Date
    Dec 2008
    Posts
    950

    Access a shared folder with command prompt?

    hello,
    I want to access a shared folder on my network with cmd console, I tried :

    >\\192.168.1.198\documents
    but the message I get is: The specified network name is no longer available.

    any help?

  2. #2
    Join Date
    Mar 2008
    Posts
    429

    Re: Access a shared folder with command prompt?

    1. In your command prompt, a

    C:\>dir \\192.168.1.1\documents
    should work. Call directly

    C:\>\\192.168.1.1\documents
    do not make sense because this is not a command.

  3. #3
    Join Date
    Nov 2008
    Posts
    211

    Re: Access a shared folder with command prompt?

    I do not think you can directly access your shared folder from the command prompt.
    What you can do is create a network drive pointing to the shared resource. You can then access the shared folder via the network drive letter.

    To create a network drive with X: drive letter as:

    Code:
    net use x: \\192.168.1.198\documents
    For help on this command, :

    Code:
    net help use

  4. #4
    Join Date
    Dec 2008
    Posts
    950

    Re: Access a shared folder with command prompt?

    good evening,

    ok thank you for your help.

    another question: I have a folder structure that contains subfolders and each folder | Sub folder contains files. what I want to do is copy the architecture of the file but without copying their contents.
    example, if I
    Code:
    folder1> subfolder1 | subfolder2 .... 
      folder2> subfolder22 .... 
      File ...
    me what I want is just copy these file but without breaking their contents? would not be a trick to do that ???????

  5. #5
    Join Date
    Nov 2008
    Posts
    211

    Re: Access a shared folder with command prompt?

    Try the xcopy command with the / T.

    Code:
     xcopy source destination / T
    For help:

    Code:
      xcopy /?

Similar Threads

  1. Cannot access to shared folder from Vista
    By BuvDeep in forum Windows Security
    Replies: 3
    Last Post: 09-05-2010, 02:09 AM
  2. Command prompt not working and Folder options not showing
    By efyuze in forum Operating Systems
    Replies: 1
    Last Post: 25-01-2010, 10:23 AM
  3. Access Denied in Win Vista's command prompt
    By Salome in forum Operating Systems
    Replies: 2
    Last Post: 23-02-2009, 07:02 PM
  4. Block Access to Command Prompt in windows xp
    By pushpendra in forum Operating Systems
    Replies: 3
    Last Post: 12-01-2009, 10:30 AM
  5. How to delete folder from the command prompt?
    By Jack in forum Vista Help
    Replies: 7
    Last Post: 07-03-2008, 11:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,694,719.16160 seconds with 17 queries