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:):)
requires 1 text box and 2 command buttons
place your command line in the text box
press command1 first then command2
Submitted On | |
By | gmtt_dan |
Level | Beginner |
User Rating | 4.1 (29 globes from 7 users) |
Compatibility | VB 5.0, VB 6.0 |
Category | Coding Standards |
World | Visual Basic |
Archive File |
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