Would like to set some registry settings in Macro Scheduler, most is good but when I try to write this line, it gives a error.
RegistryWriteKey>HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,{374DE290-123F-4565-9164-39C4925E467B},E:\Downloads
I believe it's because of { }, and I wonder if there is a way to do this. Have not found a solution in help or in this forum.....
Registry Write
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Does this work?
Code: Select all
Let>BraceLert={
Let>BraceRight=}
RegistryWriteKey>HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,%BraceLeft%374DE290-123F-4565-9164-39C4925E467B%BraceRight%,E:\Downloads
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Or:
Code: Select all
Let>dataToWrite={"{" + "374DE290-123F-4565-9164-39C4925E467B" + "}"}
RegistryWriteKey>HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,dataToWrite,E:\Downloads
Last edited by Marcus Tettmar on Thu Nov 06, 2008 1:35 pm, edited 1 time in total.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Thanks for answers, been busy lately....
Unfortunately none of the suggestions works perfectly
The first suggestion registers %BraceLeft%374DE290-123F-4565-9164-39C4925E467B} in registry, (and a lot of other combinations as I tried to solve the problem). The last suggestion registers correctly, but as with all of my own efforts it generates a error message that Line 2 not appropriate, also in "run hidden" mode.... (Line2 is the RegistryWriteKey> .... line)
Been fiddeling a lot with this, without success, and I used a reg-file and ran this via the script. This works good, but I would really like to have all entries in one place.
Unfortunately none of the suggestions works perfectly
The first suggestion registers %BraceLeft%374DE290-123F-4565-9164-39C4925E467B} in registry, (and a lot of other combinations as I tried to solve the problem). The last suggestion registers correctly, but as with all of my own efforts it generates a error message that Line 2 not appropriate, also in "run hidden" mode.... (Line2 is the RegistryWriteKey> .... line)
Been fiddeling a lot with this, without success, and I used a reg-file and ran this via the script. This works good, but I would really like to have all entries in one place.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
My mistake. This works for me:
Code: Select all
Let>dataToWrite={"{" + "374DE290-123F-4565-9164-39C4925E467B" + "}"}
RegistryWriteKey>HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,dataToWrite,E:\Downloads
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?