potitpanda Posted March 28, 2008 Share Posted March 28, 2008 If i Want to open \\SERVER\Pathname with user and pass from local computer, without see the Login / Password Window wich commands can i use ? This is a shared directory of my server and i don't want to use drivemap Link to comment Share on other sites More sharing options...
rudi Posted March 29, 2008 Share Posted March 29, 2008 Hi. If i Want to open \\SERVER\Pathname with user and pass from local computer, without see the Login / Password Window wich commands can i use ? This is a shared directory of my server and i don't want to use drivemap This code will authenticate to the remote computer: run("net use \\server\ipc$ /username:[domain\]username password","",@SW_HIDE) ; using @SW_HIDE will prevent the NET.EXE to popup a window with your clear text password visible ;) Then run / copy / ... whatever you need. Clear the logon to the remote computer with "net use \\srv\ipc$ /del" Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
potitpanda Posted March 29, 2008 Author Share Posted March 29, 2008 Hi. This code will authenticate to the remote computer: run("net use \\server\ipc$ /username:[domain\]username password","",@SW_HIDE) ; using @SW_HIDE will prevent the NET.EXE to popup a window with your clear text password visible ;) Then run / copy / ... whatever you need. Clear the logon to the remote computer with "net use \\srv\ipc$ /del" Regards, Rudi. Thanks Potit Panda Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now