Solved How to make windows 7 choose "yes" at startup task?

bingaloman

New member
Local time
10:58 AM
Messages
4
I made a task scheduler for a registry key I edited and it starts the registry on every StartUp, but is there any way I can make it to where when it starts it up, that the registry will automatically choose "Yes", then "Ok" when Windows starts? Because I find it annoying to have to manually click "yes" to allow the registry and then "ok" to close the window saying it was successfully added.

Thanks!
 

My Computer My Computer

At a glance

Windows 7 x64
OS
Windows 7 x64
Are you running this as a command?
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
Are you running this as a command?


What do you mean?
I just set up the path of the registry file in task scheduler and when the PC starts up, it runs the registry key to be added into the system but I have to always click "yes" then "Ok' afterwards.
 

My Computer My Computer

At a glance

Windows 7 x64
OS
Windows 7 x64
I didnt know if you were using a command to run it or just running the reg file.

You can use a command and it will not prompt you.

reg import "path"

Reg import

Better example.

My putty configuration is a file located c:\putty.reg

So i would just run the command reg import c:\putty.reg
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
I didnt know if you were using a command to run it or just running the reg file.

You can use a command and it will not prompt you.

reg import "path"

Reg import

Better example.

My putty configuration is a file located c:\putty.reg

So i would just run the command reg import c:\putty.reg






oh ok and sorry how would I go about in adding the command prompt part in it . Confused on your steps hah
 

My Computer My Computer

At a glance

Windows 7 x64
OS
Windows 7 x64
I personally would just throw the command it a batch file. (file ending in .bat) Then just point the task scheduler to the batch file.

To create a batch file:

  1. Right click and select new > text document.
  2. Name the document whatever you want with the .txt ending.
  3. Open the text document with any word processing like notepad.
  4. Type in the command on one line. reg import path_to_file
  5. on the next line enter pause This will cause the command prompt not to close when its finished. (this is used to verify that it was completed successfully.
  6. Save the document.
  7. Right click on the file and choose rename.
  8. change the .txt to .bat (you may need to enable extensions of known file types in folder options. see below.
  9. point the (start a program) to the batch file.
  10. Find the schedule in the list of all the schedules Under Task Schedule Library
  11. Right click and select run.

At this point the command prompt will stay open. If it says the the operation was completed successfuly you know it worked fine.

At this point Right Click on the batch file and choose edit, and remove pause.

How to view extension of known file types:

  1. In windows explorer click on organize.
  2. select folder and search options.
  3. choose the view tab.
  4. uncheckmark Hide extensions of known file types.
  5. Click OK.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
I personally would just throw the command it a batch file. (file ending in .bat) Then just point the task scheduler to the batch file.

To create a batch file:

  1. Right click and select new > text document.
  2. Name the document whatever you want with the .txt ending.
  3. Open the text document with any word processing like notepad.
  4. Type in the command on one line. reg import path_to_file
  5. on the next line enter pause This will cause the command prompt not to close when its finished. (this is used to verify that it was completed successfully.
  6. Save the document.
  7. Right click on the file and choose rename.
  8. change the .txt to .bat (you may need to enable extensions of known file types in folder options. see below.
  9. point the (start a program) to the batch file.
  10. Find the schedule in the list of all the schedules Under Task Schedule Library
  11. Right click and select run.

At this point the command prompt will stay open. If it says the the operation was completed successfuly you know it worked fine.

At this point Right Click on the batch file and choose edit, and remove pause.

How to view extension of known file types:

  1. In windows explorer click on organize.
  2. select folder and search options.
  3. choose the view tab.
  4. uncheckmark Hide extensions of known file types.
  5. Click OK.




Thanks very helpful!
 

My Computer My Computer

At a glance

Windows 7 x64
OS
Windows 7 x64
No problem. Glad I could help.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
Back
Top