Skip to content

DestroyerDarkNess/Batch-to-VBS-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Batch-to-VBS-Converter

Convert .bat files to .vbs

Example :

---------------- Before (example.bat):

@echo off
echo/ & echo Hi, guys. & echo/
pause & exit

---------------- After (example.vbs):

Const TemporaryFolder = 2

Dim fso: Set fso = CreateObject("Scripting.FileSystemObject")

Dim tempFolder: tempFolder = fso.GetSpecialFolder(TemporaryFolder)

set b=createobject("wscript.shell")
Set objfso = createobject("scripting.filesystemobject")
Set ar= objfso.createtextfile(tempFolder & "archivo.bat",true)

ar.writeline " @echo off  "
ar.writeline " echo/ " : ar.writeline " echo Hi, guys. " : ar.writeline " echo/  "
ar.writeline " pause " : ar.writeline " exit  "
ar.close
b.run tempFolder & "archivo.bat", 1, true

Remastered Tool "Code Smart | Script IDE With Avanced Tools" : Official Page Code Smart

Code Smart

About

Convert .bat files to .vbs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published