Sign in to follow this  
Followers 0
GoogleDude

DriveMapAdd to map hidden share!

5 posts in this topic

How do I format the syntax for mapping a hidden share with a $ in the share name?

Share this post


Link to post
Share on other sites



How do I format the syntax for mapping a hidden share with a $ in the share name?

Nothing special to it: DriveMapAdd("X:", "\\ServerName\D$", 8)

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Nothing special to it: DriveMapAdd("X:", "\\ServerName\D$", 8)

:)

Sorry I forgot to make mention that the share name is @UserName$. This is a logon script I am running as a AD Group Policy.

GoogleDude!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

*EDIT*

Due to the extra info:

DriveMapAdd("X:", "\\server\" & @Username & "$", 8)

This string uses the & Operator to connect \\server\ to the Username, and then to a $ sign, the end result is a literal string of:

\\server\username$

Edited by tAKTelapis

Share this post


Link to post
Share on other sites

Sweet Deal. Thanks I will give it a go. Someday when I learn autoit a little better I will be able to be more of a contributer until then Sorry for asking so many questions. Autoit sure has made my programming ability easier to learn (for the most part).

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