Jump to content
Sign in to follow this  
GoogleDude

DriveMapAdd to map hidden share!

Recommended Posts

GoogleDude

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
PsaltyDS

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
GoogleDude

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
tAKTelapis

*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
GoogleDude

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.