user reg value as dynamic key for file2text, return only value

Forums Desktop Info user reg value as dynamic key for file2text, return only value

  • This topic has 4 replies, 1 voice, and was last updated 1 year ago by GlennGlenn.
Viewing 4 reply threads
  • Author
    Posts
    • #1690
      AvatarSimon

      Hi,

      is it possible to use a registry value as a dynamic key for the FILE2TEXT function and return only the value?

      e.g.
      REG=active:1,value:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId,set:releaseid,hidden:1
      FILE2TEXT=active:1,key:%releaseid%,file:\supportinfo.txt

      [supportinfo.txt]
      1709=End of Life 03/2020
      1809=End of Life 03/202x

      Is it additionally possible to skip the key on the left column and just return the value “End of Life 03/2020” (right column)

      Best regards
      Simon

      1+
    • #1691
      GlennGlenn
      Keymaster

      1. It’s definitely possible. You just can’t do it right now. 🙂 I like the idea though and will add it to the next release.

      2. Don’t display the key in the left column, just the value in the right column?

      2+
    • #1694
      AvatarSimon

      >1.
      Perfect, BTW your tiny DesktopInfo tool is really great! 🙂

      >2. Don’t display the key in the left column, just the value in the right column?
      correct, at least make it optional. For this purpose it is just the selector and %releaseid% is already available as a variable.

      0
    • #1867
      AvatarMorten Kløve

      Hi Glenn,

      First your desktopinfo tool is very good 🙂

      I have a question for the FILE2TEXT, is it possibel to use a variable in the “file:” ?

      Exampel:
      SET=active:2,key:FilePath,value:C:\FOLDER01\
      SET=active:2,key:FileName,value:File01.bat

      FILE2TEXT=active:2,interval:3600,text:test,file:%FilePath%%FileName%,key:FILEVERSION

      It’s not working now, by maybe there is a trick for this?

      Br. Morten

      0
    • #1872
      GlennGlenn
      Keymaster

      Look for it in the next release, v1.17

      0
Viewing 4 reply threads
  • The topic ‘user reg value as dynamic key for file2text, return only value’ is closed to new replies.
Do NOT follow this link or you will be banned from the site!