Auto Start in vb exe file
Solved/Closed
Related:
- How to open exe file on iphone
- Need for speed most wanted exe - Download - Racing
- Windows 10 iso file download 64-bit - Download - Windows
- Psiphon3.exe - Download - VPN
- Forza horizon 5 exe file download - Download - Racing
- Gta 5 exe file download for pc - Download - Action and adventure
9 responses
To automatically start a program on the start up we need to add a registry value. so open run from the start menu and enter regedit the select the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
then in the string table add a new string value. for that right click and select the string value then in the string data type the path of your program that is to be open at the start up. click ok then restart your computer then that file automatically starts after login
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
then in the string table add a new string value. for that right click and select the string value then in the string data type the path of your program that is to be open at the start up. click ok then restart your computer then that file automatically starts after login
You could create a scheduled task to run your app. But im guessing you want this to happen for users automatically?
well I have always used the answer in Tuntu's reply and found this the best way I have a included a vb example below
Imports Microsoft.Win32
Private Sub AddCurrentKey(ByVal name As String, ByVal path As String)
Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
key.SetValue(name, path)
End Sub
Private Sub RemoveCurrentKey(ByVal name As String)
Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
key.DeleteValue(name, False)
End Sub
you can then use to add the reg key
AddCurrentKey(System.Reflection.Assembly.GetEntryAssembly.FullName, System.Reflection.Assembly.GetEntryAssembly.Location)
and to remove it
RemoveCurrentKey(System.Reflection.Assembly.GetEntryAssembly.FullName, System.Reflection.Assembly.GetEntryAssembly.Location)
or
AddCurrentKey("Application Name", "Path to application")
well I have always used the answer in Tuntu's reply and found this the best way I have a included a vb example below
Imports Microsoft.Win32
Private Sub AddCurrentKey(ByVal name As String, ByVal path As String)
Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
key.SetValue(name, path)
End Sub
Private Sub RemoveCurrentKey(ByVal name As String)
Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
key.DeleteValue(name, False)
End Sub
you can then use to add the reg key
AddCurrentKey(System.Reflection.Assembly.GetEntryAssembly.FullName, System.Reflection.Assembly.GetEntryAssembly.Location)
and to remove it
RemoveCurrentKey(System.Reflection.Assembly.GetEntryAssembly.FullName, System.Reflection.Assembly.GetEntryAssembly.Location)
or
AddCurrentKey("Application Name", "Path to application")
(((((You could create a scheduled task to run your app. But im guessing you want this to happen for users automatically?
well I have always used the answer in Tuntu's reply and found this the best way I have a included a vb example below
Imports Microsoft.Win32
Private Sub AddCurrentKey(ByVal name As String, ByVal path As String)
Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
key.SetValue(name, path)
End Sub
Private Sub RemoveCurrentKey(ByVal name As String)
Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
key.DeleteValue(name, False)
End Sub
you can then use to add the reg key ))))))
can't undersatnd wht name nd path I write
i can't get it I tried alot but not working can u explain with example plzzzz
well I have always used the answer in Tuntu's reply and found this the best way I have a included a vb example below
Imports Microsoft.Win32
Private Sub AddCurrentKey(ByVal name As String, ByVal path As String)
Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
key.SetValue(name, path)
End Sub
Private Sub RemoveCurrentKey(ByVal name As String)
Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
key.DeleteValue(name, False)
End Sub
you can then use to add the reg key ))))))
can't undersatnd wht name nd path I write
i can't get it I tried alot but not working can u explain with example plzzzz
Personally I would just place what file / exe you are trying to auto start when windows is booted by going to your start up folder ( all programs - startup) and just move the file to there of if you can not move the file just place a short cut in there........
Didn't find the answer you are looking for?
Ask a question
Matrixmaya
Posts
4
Registration date
Saturday January 23, 2010
Status
Member
Last seen
January 7, 2011
2
Jan 29, 2010 at 08:19 AM
Jan 29, 2010 at 08:19 AM
i think use regedit
use desktop.ini file
use desktop.ini file
hello,
I am developing an window application in C# and I want it to start up automatically when user logs in and I dont want to place my exe in run or winlogon or any other common folder ....
My question is that is there any other folder where I can put my exe path in reg file so it can auto start
and I am using windows XP Operating system
Please any one have any info on this let me know sooonnnnnn......
Thank you
I am developing an window application in C# and I want it to start up automatically when user logs in and I dont want to place my exe in run or winlogon or any other common folder ....
My question is that is there any other folder where I can put my exe path in reg file so it can auto start
and I am using windows XP Operating system
Please any one have any info on this let me know sooonnnnnn......
Thank you
Me too searching for the same answer. Kindly do send the answer if you get them solved.
Thank You. Byeeeeeeeee
Thank You. Byeeeeeeeee
There is a easy way to run your program automatically
first create a desktop.ini file in any directory of a folder then
in desktop.ini write
[start]
autorun.exe or X:\autorun.exe
it can be applied in only windows xp and NT
first create a desktop.ini file in any directory of a folder then
in desktop.ini write
[start]
autorun.exe or X:\autorun.exe
it can be applied in only windows xp and NT
Run out of space above to to use that
eg
you could use for example
AddCurrentKey("Program Name", "Program Path")
or below should do that automatically for you
AddCurrentKey(System.Reflection.Assembly.GetEntryAssembly.FullName, System.Reflection.Assembly.GetEntryAssembly.Location)
hope this helps
eg
you could use for example
AddCurrentKey("Program Name", "Program Path")
or below should do that automatically for you
AddCurrentKey(System.Reflection.Assembly.GetEntryAssembly.FullName, System.Reflection.Assembly.GetEntryAssembly.Location)
hope this helps
Hi saranya!~
I got one answer.But I dont know whether it will help u or not...But I give u that link.
Please read this.I hope it will be very useful for you....If any think come online I will be allways online.
=====> This is that link http://www.mmopenxteam.com/hacking/131
My gmailid balamurugan.dit@gmail.com
I got one answer.But I dont know whether it will help u or not...But I give u that link.
Please read this.I hope it will be very useful for you....If any think come online I will be allways online.
=====> This is that link http://www.mmopenxteam.com/hacking/131
My gmailid balamurugan.dit@gmail.com
Sep 3, 2010 at 02:41 AM
THanks............