I open cmd.
I type in the following:
Code: Select all
REG QUERY HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\UserChoice
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\UserChoice
Progid REG_SZ Word.Document.12
What I want:
I want to bring this output into a user defined property.
To get this, have tried this in my cmd window in the path D:\NT3x:
Code: Select all
vboxcontrol guestproperty set /myproperties/myproperty REG QUERY HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersionExplorer\FileExts\.docx\UserChoiceoice
But when I make this:
Code: Select all
vboxcontrol guestproperty set /myproperties/myproperty "This is my Text for my property"
Question: How can I bring the output of "REG QUERY HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\UserChoice" into my guest-user-property?
Would appreciate some help. Thank you.
Edit1:
Important:
-It should be a direct way (in one step). Not first putting the output into a variable and then put the content of this variable in my user property. (This would be two steps. But I need it in one line/step)
-It must be via cmd, not shell.
Edit2:
This also does not work:
Code: Select all
REG QUERY HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersionExplorer\FileExts\.docx\UserChoiceoice | vboxcontrol guestproperty set /myproperties/myproperty