Jump to content
Sign in to follow this  
potitpanda

How to connect from my local computer to shared resource using login/password

Recommended Posts

potitpanda

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

Share this post


Link to post
Share on other sites
rudi

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!

Share this post


Link to post
Share on other sites
potitpanda

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×