VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



An easy way to execute any command line in text1.text

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

Rate An easy way to execute any command line in text1.text

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

Download this snippet    Add to My Saved Code

An easy way to execute any command line in text1.text Comments

No comments have been posted about An easy way to execute any command line in text1.text. Why not be the first to post a comment about An easy way to execute any command line in text1.text.

Post your comment

Subject:
Message:
0/1000 characters