Make a batch that run when a user loges on
I would like some help on how to make a batch file start when a user loges in my friend <bob> thinks that every batch file i make is gonna stuff his pc up so i want to make one that just says:
Greetings <bob>, All your computers are belong to me -Vafhudr but how do i get it to start when he loges it?
lol @ Zephyr_Pure - "If it is Windows…" - What else would it be? Linux doesn't have Batch scripts, Linux has Shell Scripts.
Yes you can stick the batch file within the startup directory in Windows it is located in C:\DOCUME1\UserNameHere\Start Menu\Programs\Startup or you can have it for every user by sticking the batch file inside of C:\DOCUME1\All Users\Start Menu\Programs\Startup. If you are un-aware of what DOCUME1 is DOCUME1 is the Documents and Settings directory.
Or if you want to hide it a little better you can go in and add it to the registry. To do this do the following.
Go To: Start -> Run -> Type: regedit In the tree navigate to [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run] Right click and Go To: New -> String Value For the Name type in anything you would like to identify it by… Right click on the new String Value and click Modify In the Value data text field type in the full path to the batch file you want to run at startup.
I will not be held responsible for any type of damage that may accor while you are inside the Windows registry. I strongly advise you to backup the registry before editing it, although I do not :P If you do not backup the registry and happen to delete something important that causes Windows to have problems, do not come bitching to me. I have warned you.
Once you have added the value to the registry you will be able to go into the following to enable / disable it. It is enabled by default.
Go To: Start -> Run -> Type: msconfig Click on the Startup tab in the "System COnfiguration Utility" window. You should now see a "Startup Item" with the name you specified inside the Windows registry.
I know there are other ways of adding programs to the windows startup but those are the 2 ways I add things to my startup. Have fun, and don't fuck shit up :)
If you were in fact speaking about another OS let me know, If I do not know the answer I can get it :) I enjoy learning new things. But this is something I already know and you should have done a little Google searching, Probably the first result if you search for "Windows Startup" on Google.
skarecrow wrote: lol @ Zephyr_Pure - "If it is Windows…" - What else would it be? Linux doesn't have Batch scripts, Linux has Shell Scripts.
Of course I know that, but I'd be lying if I hadn't had the "how do I get out of DOS?" question from someone using Linux before. So, I didn't put it past anyone to refer to shell scripts as batch scripts. But, thanks for the chuckle. ;)