You know that . when you want to run your programmed projects (In windows) you'll have to double click on the icon of that app. I want to know how to run it(By programming) with only ONE click (NOT 2)? Should I use .ini or .bat files? Thanks In advance...
Asked
Active
Viewed 54 times
1 Answers
1
Try this
@echo off
cd "C:\Program Files\CCleaner"
start CCleaner64.ex
cd "C:\Program Files\Firefox"
start Firefox.exe
exit
You can code all the programs you want to start in a batch file. Then by double clicking the batch file it starts all of them.
copy the code into a .txt file and rename it to .bat
here is a .vba example... I got it from HERE
Public Sub StartExeWithArgument()
Dim strProgramName As String
Dim strArgument As String
strProgramName = "C:\Program Files\Test\foobar.exe"
strArgument = "/G"
Call Shell("""" & strProgramName & """ """ & strArgument & """", vbNormalFocus)
End Sub
-
I said without double click - you say:"" Then by DOUBLE clicking the batch file it starts all of them."" In addition My programming language is vba. How can I convert it to. Bat file? – Apr 08 '16 at 12:37
-
1you can change your mouse settings in windows to run a program by single clicking. Go to control panel > folder options look there for the option. – Jonas Apr 08 '16 at 13:08
-
Oops. This is a great idea – Apr 08 '16 at 13:08