Pass command line parameters

Thursday, September 20, 2007 by KoolCamel | Discussion: DesktopX

Hello all,

I have created a menu system widget that uses a text file to generate shortcuts I want to appear on the users desktop.  The text file is located on a network share so I can easily modify any items I want displayed on their desktops.  The issue is I want to use this for different groups which all have different application needs.  Is it possible to launch a widget and have it interpret and pass an argument that tells the widget which text file to use.  I could then set group policy to autostart the application with the appropriate menu system. For example "run c:\scripts\wksmenu.exe P:\wksmenu\scripts\hourly.txt"

I have come up with some workarounds, but at the cost of some flexibilty.  Any suggestions???

ZubaZ
Reply #1 Thursday, September 20, 2007 9:51 PM
The text file is located on a network share so I can easily modify any items I want displayed on their desktops.
Not sure on the scripting . .but an email to [email protected] might be in order to make sure you are licensed correctly for commercial use.
KoolCamel
Reply #2 Friday, September 21, 2007 10:17 AM
I am licensed for two copies of the professional version. Is creating an application to run on a desktop violation of the pro license agreement? If I was doing a shell replacement or something like that I would think it might infringe upon the Enterprise version. Anyway, thanks for the question, I will follow up with sales to verify compliance.

As a side note, if things shake out with sales, I have decided to just read the machines OU membership inside my main script and call which file to read based off of that.
ZubaZ
Reply #3 Friday, September 21, 2007 10:23 AM
I have decided to just read the machines OU membership inside my main script and call which file to read based off of that.
Very cool fix!

I don't mean to scare you away and I really don't know if it's an issue.  Best to make sure early though, right?
KoolCamel
Reply #4 Friday, September 21, 2007 10:58 AM
Thanks, awaiting their reply, when I get this thing closer to done (regardless of their answer) I will submit it here. I think this little menu is doing some very cool things with cloning, object placement, and vbscript in general. Also be good to get some feedback on any ways to increase efficiency and hopefully help someone else out with scripting.
SirSmiley
Reply #5 Friday, September 21, 2007 4:55 PM
I think it's your terminology, as I've seen this answered before.

Are you building/deploying a gadget to distribute to each user?
If the answer is yes than you're fine.

If you're loading desktopX onto more than one system with out an enterprise license than obviously it's a violation.
Skarny
Reply #6 Saturday, September 22, 2007 6:12 PM
I think desktopX can get the system user name by WMI.
See here:
https://www.stardock.com/products/desktopx/documentation/DX-sbs-5.asp
Then you could get the gadget itself to call the correct file as options.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01