Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

10 Feb 2013   #1
bingaloman

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

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 System SpecsSystem Spec
.
10 Feb 2013   #2
Parman

Windows 7 Ultimate x64
 
 

Are you running this as a command?
My System SpecsSystem Spec
10 Feb 2013   #3
bingaloman

Windows 7 x64
 
 

Quote   Quote: Originally Posted by Parman View Post
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 System SpecsSystem Spec
.

10 Feb 2013   #4
Parman

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
My System SpecsSystem Spec
10 Feb 2013   #5
bingaloman

Windows 7 x64
 
 

Quote   Quote: Originally Posted by Parman View Post
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 System SpecsSystem Spec
10 Feb 2013   #6
Parman

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.
My System SpecsSystem Spec
10 Feb 2013   #7
bingaloman

Windows 7 x64
 
 

Quote   Quote: Originally Posted by Parman View Post
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 System SpecsSystem Spec
10 Feb 2013   #8
Parman

Windows 7 Ultimate x64
 
 

No problem. Glad I could help.
My System SpecsSystem Spec
Reply

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




Thread Tools




Similar help and support threads
Thread Forum
Windows Won't Add Editor to "Choose Program" List
I select Open With from the right-click menu on a file. Windows won't show my KEDIT editor in the Choose Program list. I "browse" to Kedit in Program Files, select it but W7 refuses to add it to the Open With list of programs from which I can choose to associate the file. Using Control Panel Set...
Software
Stuck on "Start Windows normally" and "Launch startup repair"
I am stuck on "Start Windows normally" and "Launch startup repair" When I choose "Start Windows Normally",it gives me blue screen with the following error:Unmountable_Boot_Volume.On "Launch startup repair" I am stuck on the Windows 7 wallpaper with cursor and can't even open Cmd trough...
General Discussion
Default "Browse for file" location in web browser "choose file" box
Hi, how can I change this? Some background - this may not be the issue I need to solve at the end of the day: I believe the location is causing crashes, since I blew up lots of Library registry values (in an attempt to remove them from the OS), and I think it defaults to the library page....
Customization
Is there a global "Choose details..." in Windows Explorer?
When i view files/folders in Windows Explorer, I would like to have the following details showing for all: Name, Date, Date modified, type, Size, Folder. It appears that I have to do this for every file that I open if it is not already done (View>Choose details... Iguess what I'm asking is if...
Customization
Windows automatically updates even if I set to "let me choose"
I am not sure why but I've already set updates to "check for updates but let me choose whether to download and install them". But still windows automatically updates and restarts. The bad thing is I was working on some programming project for school and restarting without saving is really annoying....
Windows Updates & Activation


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:56.
Twitter Facebook Google+