Please report all spam threads, posts and suspicious members. We receive spam notifications and will take immediate action!
Results 1 to 3 of 3

Thread: VBScript




  1. #1
    Join Date
    Jun 2003
    Posts
    12

    Default

    I have a question about VBScript. Is it possible to read the registry that has spaces in the path name? eg: HKEY_LOCAL_MACHINE\Software\Electronic Arts doesn't work for me, but I'm sure that there is some way to overcome this problem. Thanks in advance.
    EPoX EP-8RDA+, AMD Athlon XP2600+, 1xKingston 512Mb pc3200, Gigabyte Radeon 9000 ProII 128DDR, Hercules Fortissimo III 7.1 (with generic speakers), Seagate 20 Gb HDD, LiteOn 48x24x48, AcerView 54eL 15" Monitor

  2. #2
    Join Date
    Dec 2002
    Location
    caves of bedrock
    Posts
    3,129

    Default

    i don't get it...
    wat do you want to do?
    are you using a different program then regedit to read registry or wat?
    be a bit more clear please...
    Latest Microsoft Security Updates.
    Last Updated:
    10th MARCH


    If you are a security freak: Use Microsoft Baseline Security Analyzer (NT/2000/XP/2003)
    ======================
    icq : 203189004
    jabber : asklepios20@jabber.org
    =======================
    Linux user since: April 24, 2003 312478
    yabaa dabaa doo...
    Customized for 1024x768

  3. #3
    Join Date
    Jun 2003
    Posts
    12

    Default

    I'm trying to use VBScript to read the registry, but if I use spaces in the path name, then it comes up with a runtime error. I'm not using any programs to access the registry.

    This is the part that I'm not sure about:

    Set WSHShell = WScript.CreateObject("WScript.Shell")

    strBFKey = WSHShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Elec tronic Arts\EA GAMES\Battlefield 1942\ergc")
    EPoX EP-8RDA+, AMD Athlon XP2600+, 1xKingston 512Mb pc3200, Gigabyte Radeon 9000 ProII 128DDR, Hercules Fortissimo III 7.1 (with generic speakers), Seagate 20 Gb HDD, LiteOn 48x24x48, AcerView 54eL 15" Monitor

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
  •