Jump to content

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


Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...