LiamBogur

Intergration++ | SCMD PLUGIN

Feb 8th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.07 KB | None | 0 0
  1. rem Made Using LiamBogurs Super Command Prompt Plugin Compiler
  2. if %D%==1 (
  3. if exist "%FIRDIR%\Intergration++.cfg" (
  4. echo Deleting extra files..
  5. del "%FIRDIR%\Intergration++.cfg"
  6. )
  7. goto :eof
  8. )
  9. if not exist "%FIRDIR%\Intergration++.cfg" (
  10. echo Creating Intergration++ Config.
  11. echo 2 CHROME false "C:\Program Files ^(x86^)\Google\Chrome\Application\chrome.exe">"%FIRDIR%\Intergration++.cfg"
  12. echo 2 BASH false "bash">>"%FIRDIR%\Intergration++.cfg"
  13. echo 0 EDIT++ true "C:\Program Files ^(x86^)\Notepad++\notepad++.exe">>"%FIRDIR%\Intergration++.cfg"
  14. echo 2 DISKPART false "diskpart">>"%FIRDIR%\Intergration++.cfg"
  15. )
  16. if %A%==2 (
  17. if /I %Command%==PHELP (
  18. echo Intergration++ ^| Check the config
  19. echo Intergration++ ^| First Parameter: Mode ^(2=Main, 1=VBS, 0=Files^)
  20. echo Intergration++ ^| Second Parameter: SCMD Command
  21. echo Intergration++ ^| Third Parameter: Recieve parameters?
  22. echo Intergration++ ^| Fourth Parameter: Command/File
  23. echo Intergration++ ^| TIP: Remember to include ^^ before ^( or ^)
  24. goto :eof
  25. )
  26. )
  27. cd "%FIRDIR%"
  28. for /f "delims=*" %%i in (Intergration++.cfg) do (
  29. set IntergrationPlusPlusVar1=%%i
  30. call :IntergrationPlusPlus
  31. )
  32. cd "%FIRDIR%\SCMDPLUGINS"
  33. goto :eof
  34.  
  35. :IntergrationPlusPlus
  36. for /f "tokens=1" %%i in ("%IntergrationPlusPlusVar1%") do set IntergrationPlusPlusCommandD1=%%i
  37. for /f "tokens=2" %%i in ("%IntergrationPlusPlusVar1%") do set IntergrationPlusPlusCommandD2=%%i
  38. for /f "tokens=3" %%i in ("%IntergrationPlusPlusVar1%") do set IntergrationPlusPlusCommandD3=%%i
  39. for /f "tokens=4,*" %%a in ("echo %IntergrationPlusPlusVar1%") do set IntergrationPlusPlusCommandD=%%b
  40. if %A%==%IntergrationPlusPlusCommandD1% (
  41. if /I %IntergrationPlusPlusCommandD2%==%Command% (
  42. cd "%LASTDIR%"
  43. echo.%IntergrationPlusPlusCommandD% | findstr /C:":">nul && if not exist %IntergrationPlusPlusCommandD% (
  44. echo Intergration++ Config Invalid
  45. cd "%FIRDIR%\SCMDPLUGINS"
  46. goto :eof
  47. )
  48. if %IntergrationPlusPlusCommandD3%==false (
  49. %IntergrationPlusPlusCommandD%
  50. )
  51. if %IntergrationPlusPlusCommandD3%==true (
  52. %IntergrationPlusPlusCommandD% %CommandD1%
  53. )
  54. cd "%FIRDIR%"
  55. )
  56. )
  57. goto :eof
Advertisement
Add Comment
Please, Sign In to add comment