Advertisement
Virajsinh

batch (.bat) to exe DragDrop Another .bat to this .bat File

Dec 15th, 2021
2,067
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;@echo off
  2. ;Title Converting batch scripts to file.exe with iexpress
  3. ;Mode 75,3 & color 0A
  4. ;Rem Original Script https://github.com/npocmaka/batch.scripts/edit/master/hybrids/iexpress/bat2exeIEXP.bat
  5. ;echo(
  6. ;if "%~1" equ "" (
  7.     ;echo  Usage : Drag and Drop your batch file over this script:"%~nx0"  
  8.     ;Timeout /T 5 /nobreak>nul & Exit
  9. ;)
  10. ;set "target.exe=%__cd__%%~n1.exe"
  11. ;set "batch_file=%~f1"
  12. ;set "bat_name=%~nx1"
  13. ;set "bat_dir=%~dp1"
  14. ;Set "sed=%temp%\2exe.sed"
  15. ;echo              Please  wait a while ...  Creating "%~n1.exe" ...
  16. ;copy /y "%~f0" "%sed%" >nul
  17. ;(
  18.     ;(echo()
  19.     ;(echo(AppLaunched=cmd /c "%bat_name%")
  20.     ;(echo(TargetName=%target.exe%)
  21.     ;(echo(FILE0="%bat_name%")
  22.     ;(echo([SourceFiles])
  23.     ;(echo(SourceFiles0=%bat_dir%)
  24.     ;(echo([SourceFiles0])
  25.     ;(echo(%%FILE0%%=)
  26. ;)>>"%sed%"
  27.  
  28. ;iexpress /n /q /m %sed%
  29. ;del /q /f "%sed%"
  30. ;exit /b 0
  31.  
  32. [Version]
  33. Class=IEXPRESS
  34. SEDVersion=3
  35. [Options]
  36. PackagePurpose=InstallApp
  37. ShowInstallProgramWindow=0
  38. HideExtractAnimation=1
  39. UseLongFileName=1
  40. InsideCompressed=0
  41. CAB_FixedSize=0
  42. CAB_ResvCodeSigning=0
  43. RebootMode=N
  44. InstallPrompt=%InstallPrompt%
  45. DisplayLicense=%DisplayLicense%
  46. FinishMessage=%FinishMessage%
  47. TargetName=%TargetName%
  48. FriendlyName=%FriendlyName%
  49. AppLaunched=%AppLaunched%
  50. PostInstallCmd=%PostInstallCmd%
  51. AdminQuietInstCmd=%AdminQuietInstCmd%
  52. UserQuietInstCmd=%UserQuietInstCmd%
  53. SourceFiles=SourceFiles
  54.  
  55. [Strings]
  56. InstallPrompt=
  57. DisplayLicense=
  58. FinishMessage=
  59. FriendlyName=-
  60. PostInstallCmd=<None>
  61. AdminQuietInstCmd=
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement