Link to home
Start Free TrialLog in
Avatar of MontyV
MontyV

asked on

How to add multiple network drives?

ASKER CERTIFIED SOLUTION
Avatar of JesterToo
JesterToo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nffvrxqgrcfqvvc
nffvrxqgrcfqvvc

You can also use a DOS command called subst to create a directory associated with a specific folder or location.

SUBST
Avatar of MontyV

ASKER

Works good.  Is there a way to set this up without the message box popping up.  I realized it may have worked well if it was one drive but now I have about four drives popping up.  What do I remove if I don't want any message box to pop up only just to map the drives without the user having to click ok every single time.

-Monty
You could either remove (comment) the "Wscript.Echo" statements, or execute the script like this:

   cscript /nologo mapdrives.vbs

If you merely type in "mapdrives.vbs" the system will, by default, execute it using "wscript" which executes the "Wscript.Echo" statements in a modal-windows manner just like Wscript.Popup.

-- Lynn
Avatar of MontyV

ASKER

Thank you for the quick responses Lynn.
You're welcome, Monty... thanks again for the grade.

Lynn
Avatar of MontyV

ASKER

Lynn how proficient are you with VBA Excel?  You seem pretty verse and I would love some help with this question if you have time.

https://www.experts-exchange.com/questions/21405073/Excel-Force-closing-sheet-after-saving-file.html

- Monty
Sorry, Monty... I know next to nothing about using VBA as a macro language inside other apps.

-- Lynn