AminMirzaeiOne / CMDExecute_VB

Execution of CMD commands in Visual Basic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMDExecute

πŸ‘¨β€πŸ’» About Project

Among the first projects of Amin Mirzaei after learning the basic concepts of Visual Basic
A library for executing command line commands in the Visual Basic programming language

πŸ— Build Information

- Made in year = February 2016
-----------------------------------------------
- .NET Framework = 4.5.1
- Visual Basic = VB.NET 14.0
- Micrsoft Visual Studio = VS 2012

πŸ“œ Program Rules

1 - Commands should be just like command line commands

πŸ’‘ Program Help

1 - Add the library to the project by reference (WinForms - WPF - Console Application)
2 - Import CMDExecute namespace
3 - Create an instance of the Executor class
4 - Call the ExecuteAsync function on the created instance
5 - Give the function a string parameter as a command line command (For example = "start notepad")

πŸ€” How to use the library

1 - Import Namespace
Imports CMDExecute

2 - Class Instantiation

Dim ex As Executor = New Executor()

3 - Function Call

ex.ExecuteAsync("start notepad")

Full Code

Imports CMDExecute
Module Program

    Sub Main()
        Dim ex As Executor = New Executor()
        ex.ExecuteAsync("start microsoft.windows.camera:")
        Console.ReadKey()
    End Sub

End Module

About

Execution of CMD commands in Visual Basic


Languages

Language:Visual Basic .NET 100.0%