Introduction:-
Well welcome to another Tutorial, Here I will tell you how to make command lines in Visual Basic. This is a good thing and I find it pretty useful including command lines in my programs!
Solution:-
I will use this to simply change the background colour of the form but you can practically use it to meka everything! For example I made a program for myself and I used the command line to open specific application at a specific time and writing logs! so you can do everything you want!
The Code:-
Code:
Private Sub Form_Load()
If Command = "Black" Then Form1.BackColor = vbBlack
If Command = "White" Then Form1.BackColor = vbWhite
End Sub
Thats it!
Explanation:-
Code:
If Command = "Black" Then Form1.BackColor = vbBlack
If the Command line is "Black" then make the background of the form black!
Running/Testing the code:-
Ok so for this to work you need to:-
1.) Compile the program ( Create its EXE file )
2.) Create a Shortcut of the EXE
3.) Insert the command line
How to insert the command line?:-
Right-Click the shortcut
go on properties
Now go on the Target text box and after the file location write the command line
Here are some snapshots to help you:-
How to add the command line

and this is the preview
Conclusion:-
As Always Feedback is welcome and the full source is attached!! ( although its not so needed )