Advertisement
adamchilcott

nuanceDNS13.cmd

Oct 9th, 2017
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.64 KB | None | 0 0
  1. @echo off
  2.  
  3. cls
  4.  
  5. setlocal
  6.  
  7. REM ######################################
  8. REM # Nuance Communications
  9. REM # Dragon Naturally Speaking Premium 13
  10. REM ######################################
  11.  
  12. set exeLocation=\\wds00x.avondale.edu.au\DCSWRepository\repository.d\nuanceCommunications.d\DNS13_DVD1
  13. set /p driveLetter="Please Enter A Drive Letter e.g. Z: "
  14.  
  15. REM #####################
  16. REM # Mount Remote Server
  17. REM #####################
  18. if exist %driveLetter% (
  19.     net use %driveLetter% /delete /y
  20.     net use %driveLetter% %exeLocation% /savecred
  21. ) else (
  22.     net use %driveLetter% %exeLocation% /savecred
  23. )
  24.  
  25. REM ###############
  26. REM # Install *.exe
  27. REM ###############
  28. start /b /wait %exeLocation%\setup.exe /S /v"/qb"
  29.  
  30. REM ##########
  31. REM # Clean-Up
  32. REM ##########
  33. net use %driveLetter% /delete /y
  34.  
  35. endlocal
  36.  
  37. REM #############
  38. REM # START NOTES
  39. REM #############
  40.  
  41. REM # 2-clause license ("Simplified BSD License" or "FreeBSD License")
  42. REM #
  43. REM # Copyright © 2018, Adam Brian Chilcott
  44. REM # All rights reserved.
  45. REM #
  46. REM # Redistribution and use in source and binary forms, with or without
  47. REM # modification, are permitted provided that the following conditions are met:
  48. REM #
  49. REM # 1. Redistributions of source code must retain the above copyright notice, this
  50. REM # list of conditions and the following disclaimer.
  51. REM # 2. Redistributions in binary form must reproduce the above copyright notice,
  52. REM # this list of conditions and the following disclaimer in the documentation
  53. REM # and/or other materials provided with the distribution.
  54. REM #
  55. REM # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  56. REM # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  57. REM # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  58. REM # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
  59. REM # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  60. REM # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  61. REM # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  62. REM # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  63. REM # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  64. REM # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  65. REM #
  66. REM # The views and conclusions contained in the software and documentation are those
  67. REM # of the authors and should not be interpreted as representing official policies,
  68. REM # either expressed or implied, of the FreeBSD Project.
  69.  
  70. REM ###########
  71. REM # END NOTES
  72. REM ###########
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement