by gmtt_dan (3 Submissions)
Category: Coding Standards
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (7 Votes)
Code to execute any file.exe with any command line.
Executes Any dos command line in only 7 lines of code
please comment and rate:):)
Assumes
requires 1 text box and 2 command buttons
place your command line in the text box
press command1 first then command2
Private Sub Command1_Click()
Open CurDir & "/commandline.bat" For Output As #1
Print #1, Text1.Text
Close #1
Shell (CurDir & "/commandline.bat"), vbNormalFocus
End Sub