Please check my work here

(imported topic written by jcsUTSW)

I’m missing something. I’ve got to be close but I can’t figure it out.

waithidden cmd.exe /C echo “this is my new text” >> {(value “Path” of key “HKLM\SOFTWARE\IBM\ADSM\CurrentVersion\BackupClient” of registry as string & “\dsm.opt”)}

I’m trying to append a new line of text at the bottom of the file that’s located in that registry path + the file name.

Any ideas where I’m going wrong?

Thanks

(imported comment written by jcsUTSW)

I tried changing HKLM to HKEY_LOCAL_MACHINE and still no luck.

(imported comment written by jessewk)

maybe you need quotes around the curly brace b/c the path will have a space in it for Program Files?

waithidden cmd.exe /C echo “this is my new text” >> “{(value “Path” of key “HKLM\SOFTWARE\IBM\ADSM\CurrentVersion\BackupClient” of registry as string & “\dsm.opt”)}”

(imported comment written by jcsUTSW)

Well that doesn’t seem to be working either.

I do appreciate the help though.

Any other ideas?

(imported comment written by SystemAdmin)

Does the path your getting out of the registry end with a “”? You may now have two slashes if your adding “\dsm.opt”.

-Paul

(imported comment written by BenKus)

Hey jcs,

I just tried it with a similar expression on my system and it seemed to work fine… if you look in the agent log, does it give an error? Also, you might try to troubleshoot with the “Fixlet Debugger” to see if you action works…

Ben