|
|
|||||||
Is there a way to map drives dynamically using the IF INGROUP. In other words, can I use the if ingroup without designating a drive letter? |
||||||||
|
|
|||||||
You can use one of the MAPDRIVE() UDFs to do this.. MapDrive() - Maps a UNC name to a specific driveletter HTH, Kent |
||||||||
|
|
|||||||
I believe starting with version 4.22, USE supports *. So your code would look something like this: Code:
|
||||||||
|
|
|||||||
Here is a bit of code that I robbed from my 2433A Course and converted over that should cover this: Code:
HTH, Kent |
||||||||
|
|
|||||||
Allen, You are correct (from page 4 of the guide): Quote: However, it maps the next available drive as drive Z:, where when I used WSCRIPT version from the 2433A Course, it put my next drive as drive U:.. Hmmmm. Thanks, Kent |
||||||||
|
|
|||||||
Yeah... it kinda makes your code above and my MapDriveX() UDF kind of useless. |
||||||||
|
|
|||||||
Quote: I'm not sure do I read correctly. for far as I know, "use *" has been there since 1990's |
||||||||
|
|
|||||||
weird... what the heck is that automatic redirection ruud talks about? |
||||||||
|
|
|||||||
* may not have been new, but using it to map drives evidently was... see the pages 3-5, "What's New", of the manual. |
||||||||
|
|
|||||||
trust me, it was there already in 3.47 which dates back to 1998! and trust me, I know my kixtart and it's "use" |
||||||||
|
|
|||||||
New or old... it's still a really bad idea. |
||||||||
|
|
|||||||
Why is it a bad idea. |
||||||||
|
|
|||||||
It not only causes confusion for users when the drive letter varies for different individuals but it also results in broken hard links in files. |
||||||||
|
|
|||||||
I have to agree with Les on this one. Drives should be consistent among group members. Kent |
||||||||
|
|
|||||||
well. it would force your clients to learn and soon it would be just fine. hardlinking is a pain anyways. but, ideal dream is not what I get. I do also have properly named drives for different groups. |
||||||||
|
|
|||||||
I abstract the true path by consolidating my shares using DFS. I use just three drive letters that are the same for everybody except of course their home drive which is the same letter but different path but still hosted through the DFS. |