🔒 Closed C#, run on startup yung application mo, ok pang gawa virus

Status
Not open for further replies.

Yasuo Main

Forum Veteran
first, kunin natin yung current path ng app:
Code:
string me = System.Reflection.Assembly.GetExecutingAssembly().Location;
yun ang path na gagamitin ng startup, second, gawa tau ng bagong registry key:
Code:
RegistryKey rk = Registry.CurrentUser.OpenSubKey
("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
next, register na:
Code:
   rk.SetValue("[APP NAME MO/ REGISTRY NAME]", me);
every startup mag rurun na yan
 
Status
Not open for further replies.

About this Thread

  • 0
    Replies
  • 524
    Views
  • 1
    Participants
Last reply from:
Yasuo Main

Trending Topics

Online now

Members online
1,211
Guests online
4,469
Total visitors
5,680

Forum statistics

Threads
2,311,338
Posts
29,161,884
Members
1,186,640
Latest member
Ebenezer7811
Back
Top