Registry Write

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
nowind
Newbie
Posts: 10
Joined: Thu Jul 10, 2008 11:51 am

Registry Write

Post by nowind » Fri Oct 31, 2008 8:56 pm

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.....

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Oct 31, 2008 9:00 pm

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!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Nov 06, 2008 12:38 pm

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?

nowind
Newbie
Posts: 10
Joined: Thu Jul 10, 2008 11:51 am

Post by nowind » Thu Nov 06, 2008 1:05 pm

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.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Nov 06, 2008 1:35 pm

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?

nowind
Newbie
Posts: 10
Joined: Thu Jul 10, 2008 11:51 am

Post by nowind » Thu Nov 06, 2008 10:38 pm

Thank You

Now it works, maybe I can fix some other strings like this one as well....

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts