+ Post New Thread
Results 1 to 8 of 8
Windows Thread, Loading .reg files in a startup script in Technical; Probably very simple but it's got me stumped....
  1. #1

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    Boston, MA
    Posts
    7,601
    Thank Post
    110
    Thanked 771 Times in 599 Posts
    Rep Power
    183

    Loading .reg files in a startup script

    Probably very simple but it's got me stumped.
    Attached Files Attached Files

  2. #2

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,585
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377

    Re: Loading .reg files in a startup script

    If you take a look here :

    http://www.robvanderwoude.com/index.html

    There is this way of adding a reg file :

    REGEDIT /S addsome.REG

    Now obviously you would alter the name of the reg file and you may need to include the path of the regfile ie :

    REGEDIT /S "C:\somefolder\addsome.REG"

    And you could use this command in a vbscript by using shell run command :

    http://msdn.microsoft.com/library/de...l/wsmthrun.asp

    which would end up something like so :

    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run REGEDIT /S "C:\somefolder\addsome.REG"

    Let me know how that goes

  3. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,585
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377

    Re: Loading .reg files in a startup script

    If that does not work then you would probably use regedit32 ie :

    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run REGEDIT32 /S "C:\somefolder\addsome.REG"

  4. #4
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,540
    Thank Post
    112
    Thanked 89 Times in 75 Posts
    Blog Entries
    47
    Rep Power
    41

    Re: Loading .reg files in a startup script

    normal users prob wont be able to install this cos they wont have write access to hk local machine.

  5. #5

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    Boston, MA
    Posts
    7,601
    Thank Post
    110
    Thanked 771 Times in 599 Posts
    Rep Power
    183

    Re: Loading .reg files in a startup script

    I will use the regedt32 /s... in the startup script (that will give sufficient priviledges) and I will let you know how it goes.

  6. #6
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    35

    Re: Loading .reg files in a startup script

    If you want to do registry stuff via policy, I highly recommend the (free) Policy Maker Registry Extension (see essential software list).

  7. #7

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    Boston, MA
    Posts
    7,601
    Thank Post
    110
    Thanked 771 Times in 599 Posts
    Rep Power
    183

    Re: Loading .reg files in a startup script

    The regedt32 thing above does work! (As far as I can tell).

    Yay!

  8. #8

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    10,053
    Thank Post
    3,585
    Thanked 1,123 Times in 1,025 Posts
    Rep Power
    377

    Re: Loading .reg files in a startup script

    Just out of curiousty, does the s switch hide any of the error messages if there are any or are you just checking that the registry entries are added afterwards so you Dont have to worry about any error messages ( that is if you get any !! ?? )



SHARE:
+ Post New Thread

Similar Threads

  1. RM CC3 Startup Script
    By randle in forum Windows
    Replies: 4
    Last Post: 30th July 2007, 03:56 PM
  2. Replies: 6
    Last Post: 11th July 2007, 10:53 PM
  3. Offline files adds 1 minute to startup
    By eean in forum Windows
    Replies: 10
    Last Post: 2nd July 2007, 08:32 AM
  4. Startup script time-out gotcha aargh!!
    By NetworkGeezer in forum Windows
    Replies: 7
    Last Post: 1st June 2006, 06:13 PM
  5. script to copy files to machines
    By browolf in forum Scripts
    Replies: 1
    Last Post: 28th November 2005, 11:28 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •