[Windows] How to access shared folder with another user (not login user)

In case of having multiple user accounts, if I want to access to the shared folder which login user does not have access right, it’s too much bother to once logout and login with another user having access right.

I have two user accounts (group company A and B) in my work.  Of course, the access right of each accounts is different. So, sometime I have to switch user and I thought it’s a bother.

The solution for this case is “net use” command that enabled to access shared folder with another user.

net use \\<hostname>\<shared folder path> password /user:<domain name>\username

After that , you can access the above shared folder with specified user account in the command. (For example, by using Explorer )

If you mistake setting or want to delete setting, please use the following command.

net use \\<hostname>\<shared folder path> /delete

How to use “tree” command to output folder hierarchy with all file name

“tree” command output folder hierarchy, but not include file name in folders as default, so add “/f” option.

STEP1: Open “Command Prompt(cmd.exe)”

STEP2:move to the folder you want to show with “tree” command.

cd <folder pass>

STEP3:execute “tree” command with “/f” option.

Execute “tree /f > tree.txt”.

  • /f:output file name
  • > tree.txt:write into text file(tree.txt).