Windows Perl Scripting Forums » News

Registry keys with (forward)slashes can't open

(3 posts)

Tags:


  1. mvancl
    Member

    Hi,

    I have problem with walking through all registry keys because there are keys containing normal slashes like:
    HKCU\Software\Microsoft\Windows\MediaPlayer\Player\Skins\res://wmploc/RT_TEXT/MainAppSkin.wsz
    and all slashes are unconditionaly converted in function FixPath to backslashes and then is path incorrectly splitted.

    Is any solution ?

    Thanks

    M. Vancl

    Posted 5 years ago #
  2. keydet89
    Member

    M. Vancl,

    Can you add code that explicitly reverts the slashes under those conditions?

    Harlan

    Posted 5 years ago #
  3. mvancl
    Member

    Hi Harlan,

    I'm not sure if I understand you. The code converting slashes to backslashes in paths is in function FixPath (source code in ftp://www.roth.net/pub/ntperl/perms/20020605/source/&lt;font color="#800080">Perms_Source.Zip) </font>In README file is note: "Forward and backslashes are supported (all forward slashes will first be converted to backslashes)". And also my script walks recursively through complete registry tree but keys containing forwardslashes in its name which is not able to open (new returns undef).

     M. Vancl

    Posted 5 years ago #

RSS feed for this topic

Reply

You must log in to post.