File System

Change Directory cd somedirecotryname cd .. List Directory Contents dir Move File move c:\somefolder\myfile1.txt c:\somefolder\myfile2.txt Copy File xcopy c:\somefolder\myfile1.txt c:\somefolder\myfile2.txt Delete File del Make Directory md c:\test Remove Directory rd c:\test  

Read More

Encode/Decode Strings

HtmlEncode Enabling HttpUtility for projects By default your app probably can’t see “System.Web.HttpUtility”.  You need to include a reference to System.Web. Right-click your project in the Solution Explorer > Add Reference > Assemblies > Framework > Scroll to System.Web and enable it Comma separated strings Convert comma separated string to a list Convert a list […]

Read More

Add Profile

Resources https://technet.microsoft.com/en-us/library/f435edbe-1d50-4774-bae2-0dda33eaeb2f#bkmk_wlanAddProfile Add A New WiFi Profile Create the WiFi profile xml file and save it somewhere An example valid WPA2-PSK profile <?xml version="1.0"?> <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"> <name>MY_WIFI_PROFILE_NAME</name> <SSIDConfig> <SSID> <name>MY_WIFI_SSID</name> </SSID> <nonBroadcast>false</nonBroadcast> </SSIDConfig> <connectionType>ESS</connectionType> <connectionMode>auto</connectionMode> <MSM> <security> <authEncryption> <authentication>WPA2PSK</authentication> <encryption>AES</encryption> <useOneX>false</useOneX> </authEncryption> <sharedKey> <keyType>passPhrase</keyType> <protected>false</protected> <keyMaterial><MY_WIFI_PASSWORD</keyMaterial> </sharedKey> </security> </MSM> </WLANProfile> The command to add it […]

Read More

Delete Profiles

Delete All Existing WiFi profiles (Doesn't matter if one is in use or if there are none, just use this command: netsh wlan delete profile name=* interface=*  

Read More

Enter key calls method

Pressing enter in a text box calls a method private void txtPingAddress_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) btnPing_Click(this, new EventArgs()); }  

Read More

Ping

Ping isn't currently provided by the API (at the time or writing), but can be acheived via the command line – see here.

Read More

Executing Command Line Commands

Enable Command Line Before you are able to execute Command Line commands you need to enable them for the default user in just the same way as you have to before they are permitted in the default IoT CoreDefaultApp Enable them as shown here. Executing Command Line Strings Programatically //************************************************* //************************************************* //********** EXECUTE COMMAND LINE […]

Read More

Enabling Command Line

SSH and PowerShell connections can use the command line at will, because they have requried administrator log in to create the connection.  However if command line access is not enabled for the default user you will get the following error for any command you try to run on the command line using the device itself […]

Read More