Tools Links Login

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

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:):)

Original Author: gmtt_dan

Assumptions

requires 1 text box and 2 command buttons
place your command line in the text box
press command1 first then command2

Code

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

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 83 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.