Advertisement
adamchilcott

installRDWorks.cmd

Jul 29th, 2019
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.28 KB | None | 0 0
  1. @echo off
  2.  
  3. cls
  4.  
  5. REM #################
  6. REM # Install RDWorks
  7. REM #################
  8.  
  9. REM ## Remove Old Installs
  10. del "C:\Users\Public\Desktop\RDWorksV8.lnk"
  11. rmdir /S /Q "C:\Program Files (x86)\RDWorksV8"
  12.  
  13. REM ## Install New
  14. mkdir "C:\RDWorksV8"
  15. xcopy "%~dp0RDWorksV8" "C:\RDWorksV8" /Y /E /C /Q /H /S /I
  16. xcopy "%~dp0RDWorksV8.lnk" "C:\Users\Public\Desktop\" /Y /C /Q /H /I
  17.  
  18. REM #############
  19. REM # START NOTES
  20. REM #############
  21.  
  22. REM ## %~dp0 looks in the path that the batch file is ran from
  23.  
  24. REM # 2-clause license ("Simplified BSD License" or "FreeBSD License")
  25. REM #
  26. REM # Copyright © 2018, Adam Brian Chilcott
  27. REM # All rights reserved.
  28. REM #
  29. REM # Redistribution and use in source and binary forms, with or without
  30. REM # modification, are permitted provided that the following conditions are met:
  31. REM #
  32. REM # 1. Redistributions of source code must retain the above copyright notice, this
  33. REM # list of conditions and the following disclaimer.
  34. REM # 2. Redistributions in binary form must reproduce the above copyright notice,
  35. REM # this list of conditions and the following disclaimer in the documentation
  36. REM # and/or other materials provided with the distribution.
  37. REM #
  38. REM # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  39. REM # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  40. REM # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  41. REM # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
  42. REM # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  43. REM # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  44. REM # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  45. REM # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  46. REM # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  47. REM # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  48. REM #
  49. REM # The views and conclusions contained in the software and documentation are those
  50. REM # of the authors and should not be interpreted as representing official policies,
  51. REM # either expressed or implied, of the FreeBSD Project.
  52.  
  53. REM ###########
  54. REM # END NOTES
  55. REM ###########
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement