Pass command line parameters

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

3,503 views 6 replies
Reply #1 Top
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 sales@stardock.com might be in order to make sure you are licensed correctly for commercial use.
Reply #2 Top
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.
Reply #3 Top
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?
Reply #4 Top
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.
Reply #5 Top
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.
Reply #6 Top
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.