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


  1. Posts : 4
    Windows 7 x64
       #1

    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 Computer


  2. Posts : 881
    Windows 7 Ultimate x64
       #2

    Are you running this as a command?
      My Computer


  3. Posts : 4
    Windows 7 x64
    Thread Starter
       #3

    Parman said:
    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


  4. Posts : 881
    Windows 7 Ultimate x64
       #4

    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


  5. Posts : 4
    Windows 7 x64
    Thread Starter
       #5

    Parman said:
    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


  6. Posts : 881
    Windows 7 Ultimate x64
       #6

    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


  7. Posts : 4
    Windows 7 x64
    Thread Starter
       #7

    Parman said:
    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


  8. Posts : 881
    Windows 7 Ultimate x64
       #8

    No problem. Glad I could help.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 08:39.
Find Us