.bat reg import gives error accessing the registry

Page 2 of 2 FirstFirst 12

  1. Posts : 5,092
    Windows 7 32 bit
       #11

    You can use DelayedCuts from my page here:
    Miles Ahead Software

    to run a program as administrator at logon. DelayedCuts requires shortcuts to be added to the delay Gui. That way all program switches and options, such as Run As Administrator, are set in the shortcut. When you make a shortcut for the batch file make sure to right click and in Compatibility Tab, click Run As Administrator.

    Once you add shortcuts and click Save it makes a shortcut to the DelayedLoad.exe program in the user's StartUp Folder. DelayedLoad.exe actually runs the delayed programs. It displays a small Gui that shows the icon, delay countdown, and name of the next program that will be run.
      My Computer


  2. Posts : 8
    Windows 7 Ultimate x64
    Thread Starter
       #12

    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce

    i can modify anything there not automatically though (also within the CMD...)
    is there anything i can do?
      My Computer


  3. Posts : 8
    Windows 7 Ultimate x64
    Thread Starter
       #13

    MilesAhead said:
    You can use DelayedCuts from my page here:
    Miles Ahead Software

    to run a program as administrator at logon. DelayedCuts requires shortcuts to be added to the delay Gui. That way all program switches and options, such as Run As Administrator, are set in the shortcut. When you make a shortcut for the batch file make sure to right click and in Compatibility Tab, click Run As Administrator.

    Once you add shortcuts and click Save it makes a shortcut to the DelayedLoad.exe program in the user's StartUp Folder. DelayedLoad.exe actually runs the delayed programs. It displays a small Gui that shows the icon, delay countdown, and name of the next program that will be run.
    sounds nice, dont know if it could help me though,
    does it work on safe mode?
      My Computer


  4. Posts : 5,092
    Windows 7 32 bit
       #14

    sounds nice, dont know if it could help me though,
    does it work on safe mode?
    Sorry. I just tried it and it does not bypass the UAC prompt. I just had UAC slider set all the way down. I didn't write it to bypass UAC but to space out program loading, and also to load programs in order, at logon. Sorry for the "false alarm." :)
      My Computer


  5. Posts : 8
    Windows 7 Ultimate x64
    Thread Starter
       #15

    MilesAhead said:
    sounds nice, dont know if it could help me though,
    does it work on safe mode?
    Sorry. I just tried it and it does not bypass the UAC prompt. I just had UAC slider set all the way down. I didn't write it to bypass UAC but to space out program loading, and also to load programs in order, at logon. Sorry for the "false alarm." :)
    thanks anyway, at least youre trying :)
      My Computer


  6. Posts : 10,485
    W7 Pro SP1 64bit
       #16

    aVco said:
    UsernameIssues said:
    We will need details...
    What program are you talking about?
    What info needs to be changed in the registry?
    Does the info need to be changed before the program starts?

    ...before we can continue to help.
    well, there is a way to enter safemode within msconfig and so id like to be able to run
    a batch file after marking the V, that will disable that option from within the registry right after
    i get into the safemode.
    theres no info needs to be changed, only added

    if any more information is needed, please ask

    i didnt explain it before because it sounds a bit complicated, but still after everything i have tried the
    problem remains when i try to add or import.
    The post quoted above sounded simple enough.
    It sounded like you...
    ...manually set msconfig to boot to the safe mode
    ...manually restart the computer
    ...want some process to automatically undo that "boot to safe mode" setting.


    But then you tell me that your batch file modifies HKLM's Runonce key...
    ...so I'm back to being lost.


    In you first post, you stated:
    "im using the code : reg import *****.reg"

    Can you post that reg file?
      My Computer


  7. Posts : 8
    Windows 7 Ultimate x64
    Thread Starter
       #17

    UsernameIssues said:
    aVco said:
    UsernameIssues said:
    We will need details...
    What program are you talking about?
    What info needs to be changed in the registry?
    Does the info need to be changed before the program starts?

    ...before we can continue to help.
    well, there is a way to enter safemode within msconfig and so id like to be able to run
    a batch file after marking the V, that will disable that option from within the registry right after
    i get into the safemode.
    theres no info needs to be changed, only added

    if any more information is needed, please ask

    i didnt explain it before because it sounds a bit complicated, but still after everything i have tried the
    problem remains when i try to add or import.
    The post quoted above sounded simple enough.
    It sounded like you...
    ...manually set msconfig to boot to the safe mode
    ...manually restart the computer
    ...want some process to automatically undo that "boot to safe mode" setting.


    But then you tell me that your batch file modifies HKLM's Runonce key...
    ...so I'm back to being lost.


    In you first post, you stated:
    "im using the code : reg import *****.reg"

    Can you post that reg file?
    yes i can post it but why does it matter man? the reg file is a part of sequence that makes sure
    the safemode option is unchecked.
    if its too confusing i will try to explain again:
    im trying to run a batch file with the only command of "reg import safemode.reg" and
    i get the error, i cant find out why it gives me that error.
    runonce is the only place one can startup a program from within safe mode.
    i have posted here because im just trying to get the process shortened.
    its just one simply code that i failed with.
    i would like to not get back into msconfig via 'run' or whatever and not uncheck that option...

    im sorry if its too much confusing, we can just let it go
      My Computer


  8. Posts : 10,485
    W7 Pro SP1 64bit
       #18

    I suggested that you do not have permissions to write to the area of the registry.

    I then asked what area of the registry that you are modifying.

    Your reply was LM's RunOnce.

    I guess that I was not clear in asking my question...
    ...so I figured that the simplest way to get the info is to see the reg file.

    What is the reg Value in the reg file?
    Last edited by UsernameIssues; 25 May 2014 at 19:54. Reason: typo
      My Computer


 
Page 2 of 2 FirstFirst 12

  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 04:13.
Find Us