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 Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
W7 64bits Task Scheduler, the selected task "{0}" no longer exists
Hi, So I don't know when this: "the selected task "{0}" no longer exists. to see the current task, click refresh" error started but I don't know how to repair this. When I start task scheduler I first get this error and than no matter what folder I click the error pops up again. After this 2nd...
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
"Windows Task Manager has stopped working" anytime I try to run it
Hello, I'd be very glad if anyone could help me. My OS version is Windows 7 Home Premium 64bit. Whenever I try to run the task manager, either by pressing Alt+Ctrl+Del and selecting it or right clicking on the task bar, the window opens but immediately an error is displayed "Windows Task...
BSOD Help and Support
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
the task bar "folder" pinned "program"
I usually use it by pinning my frequently use folder, so when I right click, the list of "pinned program (folder)" will be listed out, easy for me to access them in a click. and one day, all the pinned programs gone. so I attempted to "repin" all vanish folders, but even if I click to pin...
General Discussion


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 11:52.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App