Windows Embedded Standard (WES)

WES: Using Diskpart from a Batch File
I recently needed to create and format a disk partition from a batch file. To make this more fun, I needed to run the batch file from a USB disk which mounted as the D drive, but I needed the new partition to be the D drive when finished. in the interest of full disclosure, there are other ways to do this, but I wanted to do it from a batch file because I was doing other things from batch files at the time – so this method fit in. I started this by doing running diskpart and learning what could do ......

Posted On Thursday, July 17, 2014 8:17 AM | Comments (0)

WES: Changing System Sounds from the Command Line
This article will discuss how to disable the system sounds via the registry. I know that the title is change system sounds, but trust me if you can disable the sounds, you can also change them. For this article, I will change the registry using a batch file. My customer requirements are: Disable system sounds Disable the start up sound Once I disabled the sounds, the customer changed the requirement to include setting the sounds scheme, so we will do that also. Starting with disabling the system ......

Posted On Tuesday, July 15, 2014 10:44 PM | Comments (0)

WES: Rotate Display
As part of my continues set of articles about setting up WES, the following shows how to rotate the display from a batch file – don’t get too excited, first we will need to write an application to do it. The reason that I want to do this from a batch file is that in the end, I want a set of batch files that will install drivers, like the display driver, and do some configuration of the system. So this is just one step on my adventure. Note that this Article originally will target Windows 7. Given ......

Posted On Monday, July 14, 2014 1:41 PM | Comments (0)

WES: Changing Power Settings from the Command Line
I am working on a kiosk type system right now – really, it is a kiosk. So we want the user to feel like the system is running all of the time, and the power settings to turn off the display hinder that. The settings are readily available in the control panel, but that isn't very convenient. I want to control them from batch file which would help remove the human error problem. My first attempt was to start the power control panel from the command line – at least this reminded me that I needed to ......

Posted On Tuesday, June 24, 2014 2:52 PM | Comments (0)

WES: Disabling the Taskbar
There has been plenty written about replacing the Explorer Shell to disable the taskbar, but what if you want the Explorer Shell, but don’t want the taskbar? This article will show how to disable the taskbar at runtime from your application. I have tested this on Windows XP and Windows 7, both embedded and non-embedded. So there are some things that we need to do, and some that are optional: 1. Hide the taskbar. This just makes it less visible while the system boots before you disable it from your ......

Posted On Tuesday, June 24, 2014 12:01 PM | Comments (0)

WES: Use Command Line to Disable a Service
I have been working with a customer who needs to be able to disable services in WES 7. They want to do this after using IBW to install WES. So, how can we manage services from the command line? The answer is use SC.EXE, the service control manager. SC.EXE is capable of doing many things, but since all we need to do is disable a service let’s focus on that. Well, let’s also shutdown the service, which may not really be necessary except that it will let us see what the systems does with the service ......

Posted On Tuesday, June 24, 2014 10:45 AM | Comments (0)

Windows XP: Displaying Battery Status in C Sharp using a C++ DLL
Download the Complete Battery Monitor Source Code See Windows XP: Overview of Battery Monitor Series for a description of the folder in the source code. This is article number 5 in a series of articles about monitoring batteries in Windows XP. In Windows XP: Monitoring Batteries in C Sharp I presented a C# class that can be used to get information about the system batteries. In Windows XP: Monitoring Batteries in C++ I presented a similar C++ class. Then in Windows XP: Displaying Battery Status in ......

Posted On Tuesday, March 2, 2010 3:56 PM | Comments (0)

Windows XP: Displaying Battery Status in C++
Download the Complete Battery Monitor Source Code See Windows XP: Overview of Battery Monitor Series for a description of the folder in the source code. This is article number 4 in a series of articles about monitoring batteries in Windows XP. So far, I have presented a C# class (Windows XP: Monitoring Batteries in C Sharp), a C++ class (Windows XP: Monitoring Batteries in C++) and a C# (Windows XP: Displaying Battery Status in C Sharp) application. In this article, I will present three different ......

Posted On Tuesday, March 2, 2010 2:42 PM | Comments (1)

Windows XP: Displaying Battery Status in C Sharp
Download the Complete Battery Monitor Source Code See Windows XP: Overview of Battery Monitor Series for a description of the folder in the source code. Earlier I promised applications that use the WMI Win32_Battery class to display battery status. I started this series of articles with C# (Windows XP: Monitoring Batteries in C Sharp) so I will start with a C# application. For those of you who know me, I am not a user interface developer and will leave fancy GUIs to those of you who are better than ......

Posted On Thursday, February 25, 2010 3:46 PM | Comments (0)

Windows XP: Monitoring Batteries in C++
Download the Complete Battery Monitor Source Code See Windows XP: Overview of Battery Monitor Series for a description of the folder in the source code. This is the second in series of articles about monitoring batteries in Windows XP. In the first article, Windows XP: Monitoring Batteries in C Sharp, I showed how to use the Windows Management Instrumentation (WMI) to get battery status for multiple batteries using C#. Now what I didn’t tell you was that we found a potential bug in the .NET Framework ......

Posted On Tuesday, February 23, 2010 1:04 PM | Comments (0)

Windows XP: Monitoring Batteries in C Sharp
Download the Complete Battery Monitor Source Code See Windows XP: Overview of Battery Monitor Series for a description of the folder in the source code. I was working with a customer last week who needed to get the battery charge remaining percent for two batteries. How hard could that be? I did a quick search and found that GetSystemPowerStatus() returns the charge remaining for one battery. Which is, well, useless for a multi-battery system. Some more searching turned up the Windows Management ......

Posted On Monday, February 22, 2010 2:47 PM | Comments (1)

Windows Embedded Standard (WES): Remote Debugging using MSVSMON.exe
Debugging an application remotely on a WES system running WES requires a little setup. The following presents steps for setting up the remote system and the application environment for remote debugging using MSVSMON.exe. 1. Have your system administrator do one of the following on the WES system: a. Add the WES system to the domain give the system a name, in this case use WES-DEVICE. You will need to log onto the WES system using your domain username and password. b. Add an account on the WES system ......

Posted On Tuesday, July 28, 2009 9:23 PM | Comments (3)