Xshell Forum

Windows "net use" command

Last post: Thursday, June 4, 2015 4:42 PM by Shuai, 2 reply

 
Wednesday, May 20, 2015 12:46 PM - Shuai

Windows "net use" command

 
Hi,

Just tried to run "net use" inside xshell to show my shared drive links. But got output as following.
[C:\Users\Downloads]$ net use
New connections will not be remembered.

There are no entries in the list.

However if I run the same command in windows CMD, I got
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\test>net use
New connections will not be remembered.


Status Local Remote Network

-------------------------------------------------------------------------------
OK I: \\test-san\it Microsoft Windows Network
OK S: \\test-san\shared Microsoft Windows Network
OK U: \\test-san\users\test Microsoft Windows Network
Disconnected \\172.16.91.120\c$ Microsoft Windows Network
Disconnected \\172.16.91.12\c$ Microsoft Windows Network
The command completed successfully.


So there is still some limitation utilizing the windows built in commands in Xshell v5?

Program Ver. : Xshell 5
Tuesday, May 26, 2015 9:03 AM - Andrew

Re: Windows "net use" command

 
I am not sure why this error occurs only on Xshell but it looks like the returned result of net use on Xshell is what you got on the screen. "There are no entries in the list." this message indicates there no entries on the list which is not a error case.
Thursday, June 4, 2015 4:42 PM - Shuai

Re: Windows "net use" command

 
Totally agree with you if there is no windows mapping exits. But running the same command in windows CMD gives me the correct output.