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 contains 4 replies, has 2 voices, and was last updated by Glenn Glenn 2 months, 3 weeks ago.

  • Author
    Posts
  • #1690 Reply
    Avatar
    Simon

    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
    Glenn
    Glenn
    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
    Avatar
    Simon

    >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
    Avatar
    Morten 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
    Glenn
    Glenn
    Keymaster

    Look for it in the next release, v1.17

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




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