After a few more attempts I got there. For completeness of this post and maybe you can explain why...
[1] It only worked when I defined the file name with the other variables outside of the OnBarUpdate method?
[2] It worked for the Cbi.Core.UserDataDir.ToString() but not for Environment.GetFolderPath(Environment.SpecialFolde r.Desktop) in the file path name?
Thanks,
darmbk.
PS The above might simply be because I had some clumsy coding error rather than these being facts about how a NinjaScript should operate.

Comment