Sign in to follow this  
Followers 0
jguy

map network drive using a variable

2 posts in this topic

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

Share this post


Link to post
Share on other sites



maybe

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

not tested

8)


NEWHeader1.png

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  
Followers 0