Jump to content

Recommended Posts

Posted

I am trying to map a network drive using a variable from an input box.

; Ask user for remote computer name

$remotepc = InputBox("Remote Computer Name", "Enter Remote Computer Name", "")

How do I pass the variable to the DriveMapAdd

DriveMapAdd("X:", "\\$remotepc\c$")

Thanks........John

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
×
×
  • Create New...