Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5374
  • Last Modified:

Run a .bat file after the system reboots and start by itself

I'm running win7 64bit and like the system to automatically run a c:\start.bat file when the system startups.

How I can do this?
0
techjoee
Asked:
techjoee
  • 4
  • 3
  • 3
  • +4
1 Solution
 
Robert Sutton JrSenior Network ManagerCommented:
If you haven't made your batch file best to keep in mind if you want this to run EVERY time at startup or just once.  Make sure your batch file is written accordingly. But all you need to do is copy the batch file to:

C:\programdata\Microsoft\Windows\Start Menu\Programs\Startup


And it should work for you... Let us know.
0
 
CorinTackNetwork EngineerCommented:
Does this file need to run when the PC starts, or when someone logs in?

If it needs to run on logon, you can put it (or a shortcut to it, if you prefer) in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup and it should start whenever anyone logs in.

EDIT: Too slow posting, it seems.
0
 
techjoeeAuthor Commented:
it needs to run when the pc starts not only when someone logs on
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
techjoeeAuthor Commented:
i tried putting the .bat in the  C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup it doesnt start up.. it runs but the black cmd window disappears

if i manually run the .bat .. its fine!
0
 
Mandeep KhalsaCommented:
Place the file somewhere on your local hard drive. Open GPEdit.msc and drill down to Computer Config -> Windows Settings -> Scripts and configure the startup to include the batch file.
0
 
XGISCommented:
Hello techjoee..

Try Copying the "start.bat" into

C:\Users\default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup


this is off an 8.1 machine but should work the same for you
then reboot

pls note it only needs to be a shortcut if desired
a ".cmd" should do the same thing
0
 
McKnifeCommented:
No startup folders' items execute before logon.
Simply use task scheduler and set the account to system or save credentials. Then set the trigger to "at system startup".
0
 
techjoeeAuthor Commented:
nt system will do?
0
 
McKnifeCommented:
Yes, why not? If the process works with the system account. Just enter system, no password needed.
0
 
LeeTutorretiredCommented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
 
Mandeep KhalsaCommented:
Both Mcknife and my comments will get the desires results so this should be considered solved.
0
 
McKnifeCommented:
...if the OS features gpedit.msc, then yes :)
0
 
Mandeep KhalsaCommented:
Yes Mcknife you are absolutely correct. The author did not specify the version of OS. My bad! :|
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 3
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now