Nipun
Whompy Whomperson
I am making a program, in which I want to add an option for "Start with windows". The problem is that I dont know how to do this. I know that there is a "Startup" folder somewhere in computer, and this is what I am gonna do:
-Include a shortcut with the program.
-When Start with windows is selected, copy the shortcut.
-Paste it to startup folder.
But, the problem is what is directory of startup folder? I know its:
"C:\Documents and Settings\USER NAME\Start Menu\Programs\Startup"
But what if user name is different?
Is there any other way to access startup folder?
I am using Game Maker Language to create this, but I am sure most of you have not heard of it, so talking about it is useless.
BTW I can also access the registry, so is it possible to get the username from registry? I have never used registry from a program so, and I dont want to ruin my and user's computer-so please be exact if possible.
-Include a shortcut with the program.
-When Start with windows is selected, copy the shortcut.
-Paste it to startup folder.
But, the problem is what is directory of startup folder? I know its:
"C:\Documents and Settings\USER NAME\Start Menu\Programs\Startup"
But what if user name is different?
Is there any other way to access startup folder?
I am using Game Maker Language to create this, but I am sure most of you have not heard of it, so talking about it is useless.
BTW I can also access the registry, so is it possible to get the username from registry? I have never used registry from a program so, and I dont want to ruin my and user's computer-so please be exact if possible.