I want to run a program every time windows starts with a certain user's credentials .
If i did that in bat file ,it will prompt for the user's password.How can i automate the insertion of password?


You can run a login script for a specific user by adding it to their profile. Go to Control Panel, Administrative tools, Local Users and Groups, Users. Then right click on the user and select Properties and then the Profile tab.