Scripting - Need Help with 'Object.CommandParameters'

Hi everybody,

When I try to get/set the .Command property of a shortcut object, it works fine, but when I try to do the same with the .CommandParameters property, it raises an error saying that the object doesn't handle this property.

Is anyone has fixed it already ?

Thx
6,421 views 3 replies
Reply #1 Top

Which version of DesktopX are you using and which language have you set it to use?

I made a test Shortcut object here that works fine with the following code:

Code: vbscript
  1. Sub Object_OnScriptEnter
  2.   'The root of my partition is <EM>e:</EM>, just for clarification
  3.   Object.Command = "e:\program files\Internet Explorer\iexplore.exe"
  4.   Object.CommandParams = "<A href="https://www.wincustomize.com/">https://www.wincustomize.com</A>"
  5. End Sub

-Mike
[Stardock Support]

Reply #2 Top
Ok sorry, I Was wrong in the code...

It works well with your syntax : Object.CommandParams

In fact, I used before Object.CommandParameters, because that's what I saw in the DX Online documentation : Here

It seems to be a mistake...

Thank you
Reply #3 Top

Ah, glad to hear that works and thank you for pointing that out! I will let the developers know.

-Mike
[Stardock Support]