Advertisement
r4b1d

"open.cmd" Batch script

Nov 8th, 2019
1,911
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.57 KB | None | 0 0
  1. @ECHO OFF
  2. TITLE $~fazledyn: Executor v1.1
  3. @REM This batch script was made by https://github.com/fazledyn
  4.  
  5. @REM Taking input through command line argument
  6. @REM the input from the command line is accessed through the variable '%1'
  7. @REM then I'm assigning it to my case VAR 'choice' and then iterating it
  8.  
  9. SET choice=%1
  10.  
  11. if %choice%==brave GOTO openBrave
  12. if %choice%==codelite GOTO openCodelite
  13. if %choice%==edge GOTO openEdge
  14. if %choice%==excel GOTO openExcel
  15. if %choice%==powerpoint GOTO openPowerpoint
  16. if %choice%==pycharm GOTO openPycharm
  17. if %choice%==snip GOTO openSnip
  18. if %choice%==torrent GOTO openTorrent
  19. if %choice%==vscode GOTO openVscode
  20. if %choice%==word GOTO openWord
  21. if %choice%==help GOTO openHelp
  22.  
  23. ECHO input error. type "help" to know more.
  24.  
  25. :openBrave
  26. ECHO Starting Brave..
  27. START C:\"Program Files (x86)"\BraveSoftware\Brave-Browser\Application\brave.exe
  28. EXIT /b
  29.  
  30. :openCodelite
  31. ECHO Starting CodeLite..
  32. START D:\ProgramFilesX\CodeLite\codelite.exe
  33. EXIT /b
  34.  
  35. :openEdge
  36. ECHO Starting Edge-Beta..
  37. START C:\"Program Files (x86)"\Microsoft\"Edge Beta"\Application\msedge.exe
  38. EXIT /b
  39.  
  40. :openExcel
  41. ECHO Starting Excel..
  42. START C:\"Program Files (x86)"\"Microsoft Office"\root\Office16\EXCEL.exe
  43. EXIT /b
  44.  
  45. :openPowerpoint
  46. ECHO Starting PowerPoint..
  47. START C:\"Program Files (x86)"\"Microsoft Office"\root\Office16\POWERPNT.exe
  48. EXIT /b
  49.  
  50. :openPycharm
  51. ECHO Starting PyCharm..
  52. START C:\"Program Files"\JetBrains\"PyCharm 2019.1.2"\bin\pycharm64.exe
  53. EXIT /b
  54.  
  55. :openSnip
  56. ECHO Starting Snipping Tool..
  57. START C:\Windows\system32\SnippingTool.exe
  58. EXIT /b
  59.  
  60. :openTorrent
  61. ECHO Starting Torrent Client..
  62. START C:\Users\ASUS\AppData\Roaming\uTorrent\uTorrent.exe
  63. EXIT /b
  64.  
  65. :openVscode
  66. ECHO Starting VS Code...
  67. START D:\ProgramFilesX\"Microsoft VS Code"\Code.exe
  68. EXIT /b
  69.  
  70. :openWord
  71. ECHO Starting MS Word..
  72. START C:\"Program Files (x86)"\"Microsoft Office"\root\Office16\WINWORD.exe
  73. EXIT /b
  74.  
  75.  
  76. :openHelp
  77. ECHO ------------------------------------------------------------
  78. ECHO This is Executor help menu
  79. ECHO Enter keywords as shown below to execute different programs
  80. ECHO.
  81. ECHO brave = Brave Browser
  82. ECHO codelite = Codelite IDE
  83. ECHO edge = Microsoft Edge Browser
  84. ECHO excel = Microsoft Excel Spreadsheet
  85. ECHO powerpoint = Microsoft PowerPoint
  86. ECHO pycharm = Jetbrains PyCharm Professional
  87. ECHO snip = Snipping Tool
  88. ECHO torrent = uTorrent Client
  89. ECHO vscode = Microsoft Visual Studio Code Editor
  90. ECHO word = Microsoft Word
  91. ECHO ------------------------------------------------------------
  92. ECHO ------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement