PDA

View Full Version : Mapping a network drive


abc123
02-04-2013, 03:44 PM
How do I check to see if a specific drive/path is mapped?

Also, if it isn't mapped, I would like to map it using a specific ID and password that are each stored in their own macro. Is this possible through a built-in action or will this need to be done in a script?

kinook
02-05-2013, 10:38 AM
How do I check to see if a specific drive/path is mapped?

List the mapped drives with the Map Drive action, then add another Map Drive step following that to map the drive, with a conditional build rule to build only if %LASTSTEP_OUTPUT% does not contain the path to map.
http://www.kinook.com/VisBuildPro/Manual/mapdriveaction.htm
http://www.kinook.com/VisBuildPro/Manual/buildrules.htm

Also, if it isn't mapped, I would like to map it using a specific ID and password that are each stored in their own macro. Is this possible through a built-in action or will this need to be done in a script?

You can specify the username/password in the Map Drive action.

abc123
02-05-2013, 12:43 PM
Is it possible to use a macro as the password? I'd rather ask for the password to be entered rather than store it in Visual Build.

Thanks!

kinook
02-05-2013, 12:47 PM
Yes, you can use a macro for the password. If the macro is not defined, the user will be prompted for the value when the step builds.
http://www.kinook.com/VisBuildPro/Manual/promptsample.htm