I want to get:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\{374DE290-123F-4565-9164-39C4925E467B}
Thanks in advance.
Code: Select all
$k = quote("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders");
$v = quote("{374DE290-123F-4565-9164-39C4925E467B}");
$result = formatlist(gettoken(runret("REG QUERY $k /v $v"), 4, " "), "e", <crlf>);
text $result;
You genius! Worked awesome. Thanks a lot!highend wrote:Probably the shortest version (only tested on a german system):
Put a question mark in front of "$result = ..." if you don't get the expected output to see what's going on...Code: Select all
$k = quote("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"); $v = quote("{374DE290-123F-4565-9164-39C4925E467B}"); $result = formatlist(gettoken(runret("REG QUERY $k /v $v"), 4, " "), "e", <crlf>); text $result;
Thanks for the north!ds1508 wrote:You could use runret with a batch.
Pls have a look at http://stackoverflow.com/questions/4451 ... tch-script