Hello guys, I want to create a simple application to speed up tasks, by running the batch file via the command prompt. The application is used to merge the batch script file, the script is :
Description : Text1 is where I put the source file link, and Text2 is where I put the name of file.
Then I made a visual basic script on code like this :
![Name: Zenm.png
Views: 30
Size: 118.1 KB]()
![Name: Zenn.png
Views: 31
Size: 161.7 KB]()
But after I run the application, it turns out the source link that I enter is processed in its entirety on Text1. Question : How do I process all the source link in line per line ? :rolleyes:
Sorry my bad English, :D Thank you ...
Code:
livestreamer "hlsvariant:// (Text1) " best -o (Text2).ts
Then I made a visual basic script on code like this :
Code:
Private Sub Command1_Click()
Dim RetVal
BatchCode
RetVal = Shell("C:\Example.bat", vbNormalFocus)
End Sub
Sub BatchCode()
On Error Resume Next
Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject")
fso.createtextfile ("C:\Example.bat")
Open "C:\Example.bat" For Output As 1
Print #1, "@echo on"
Print #1, "livestreamer ""hlsvariant://" & Text1.Text & """ best - o " & Text2.Text & ".ts"
Print #1, ":end"
Close #1
End Sub
But after I run the application, it turns out the source link that I enter is processed in its entirety on Text1. Question : How do I process all the source link in line per line ? :rolleyes:
Sorry my bad English, :D Thank you ...