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

Viewing 4 reply threads
  • Author
    Posts
    • #1690 Reply
      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 Reply
      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 Reply
      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 Reply
      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 Reply
      GlennGlenn
      Keymaster

      Look for it in the next release, v1.17

      0
Viewing 4 reply threads
Reply To: user reg value as dynamic key for file2text, return only value
Your information:




Do NOT follow this link or you will be banned from the site!