Subfolders inside Windows network shares

In Windows, after entering the following address e.g. in the Windows Explorer’s address bar:

\\server.mydomain\share\folder1\folder2

what actually happens is that first the share \\server.mydomain\share is opened, and then the directory is changed to folder1\folder2. Tools from the Samba package aren’t that smart.

After entering the command:

smbclient //server.mydomain/share/folder1/folder2

you will get an NT_STATUS_BAD_NETWORK_NAME error. Instead, you should first open the share using the command:

smbclient //server.mydomain/share

and then, after authentication, change the directory to the desired folder using the command:

cd folder1/folder2
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s