Solved

How can I determine .NET CF version using (or not using) cgacutil.exe without a popup answer?

Posted on 2011-03-09
4
843 Views
Last Modified: 2013-12-27
Hi,

I want to get the .NET CF version off of several thousand CE 5.0 devices at our remote facilities. Using a tool we have, I can send them all dos-like scripts and have them report back. I want to use cgacutil.exe to get the answer, but instead of reporting to stdout or a file, the utility pops up a message box with the answer(s). Is there a command line option for cgacutil.exe that will let me redirect the output? I can't have all of the devices popping up that window. It would be a support nightmare.

I'm open to other ways to grab the information as well as long as I can execute them on a command line and need no end-user intervention.

Thanks,
Bret
0
Comment
Question by:FOS-Bret
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:hjgode
ID: 35091253
Hello

your code might just check the registry for the noted CF version and pull that: http://bytes.com/topic/net/answers/764450-check-compact-framework-version-registry

Or you go on and write a tool to read version (GetFileVersionInfo()) from mscoree.dll or one other essential CF runtime DLL.
0
 

Author Comment

by:FOS-Bret
ID: 35097740
Thanks, but I really need a way to check without having to deploy an application first. I'd like to do it with a command line utility that already exists on the device. That's why I'm looking at cgacutil.exe. I'd settle for a simple listing of that utility's command line options, but I can't even find that.
0
 
LVL 16

Accepted Solution

by:
hjgode earned 125 total points
ID: 35098220
I am sorry but I fear there is no such cmdline option to have cgacutil or any other existing tool of the standard windows mobile tool set to dump the CF version into a file.

As you wrote your are using a global tool to execute scripts remotely, these mobile management tools most offer a way to read registry values and do something with them (store in file or send to management server). They even provide a way to send down applications and start them remotely.

soti example: http://www.soti.net/mc/help/content/manager/CustomData.htm
wavelink avalanche cannot do so directly and needs a package build with a tool to retrieve reg key.

Are you talking about SOTI, WaveLink or similar remote management tool? It would be easier to help you, if we know the name.

regards

Josef
0
 

Author Closing Comment

by:FOS-Bret
ID: 35098651
We're using a specialized branded version of the SOTI product (Psion Teklogix Mobile Control Manager.) I'll take a look at the documentation you referenced. I'm sure we can get something done there. I was just hoping for a small script type solution. Thanks for your time. I appreciate it.
-Bret
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question