Tag: Windows 10

How to delete user account from command line in Windows 10 ?

You can delete a user account from command line in Windows 10 using the net user command and specifying the delete parameters. How to delete user account from command line in Windows 10 ? The syntax for deleting the user from the command line is as follows. net user <username> /DELETE The above command deletes the user from the local system. For example , if…

Adding a WinJS control in JavaScript code in Windows 10 App

You can add the WinJS control to the page in the markup page or from your javascript code. How to add a WinJS control in your JavaScript code for Windows 10 Apps ? Add the element in the markup (HTML page) that will host your control. <div id=”element”></div> In your JavaScript code , retreive the element using the document.getElementById method. var containerElement = document.getElementById(“element”); You…

How to remove user from group using command line in Windows 10 ?

You can use the net localgroup command and specify the /delete parameter to remove the user from a group using command line in Windows 10. The format of the command is as shown below. net localgroup <groupname> <username> /delete How to remove user from group using command line in Windows 10 ? 1. Open command prompt from the elevated administrator mode. 2. Enter the command….

Thread.Sleep equivalent in UWP App

If you are looking for an equivanet for Thread.Sleep method in UWP apps , you can use the Task.Delay method instead. The reason for this is that Task.Delay works like a pause method for the asynchronous call.

How to rename directory from command line in Windows 10 ?

You can rename a directory from command line in Windows 10 using the Rename command. The syntax for renaming the directory is as shown below. Rename <oldname> <newname> How to rename directory from command line in Windows 10 ? Below is an example demonstrating how to change the name of the directory from command prompt. D:\>Rename abundantcode1 abundantcode2 D:\>cd abundantcode2 D:\abundantcode2> The Rename command only…

How to open Documents folder from Run Window in Windows 10 ?

You can open the documents folder from the Run Windows in Windows 10 using the command “Documents”. How to open Documents folder from Run Window in Windows 10 ? Just open the Run window using the shortcut key (Windows + R) and type “Documents” and press the enter key. This should open up the documents folder or directory in Windows 10.

How to add new user account from command line in Windows 10 ?

You can add a new user account in Windows 10 using command prompt using the net user command and passing the right parameter. How to add new user account from command line in Windows 10 ? Following is the syntax of the command to add a new user from command line in Windows. net user <username> <password> /ADD For example , to add a new…

How to shutdown or reboot Windows machine from command line in Windows 10 ?

You can reboot a windows machine or shutdown it from the command line in Windows 10 using some of the built-in commands. How to shutdown or reboot Windows machine from command line in Windows 10 ? To shutdown the windows machine , we can use the following command. shutdown /s Similarly , you can reboot or restart the windows machine using the following command shutdown…

Defining URLs in the UWP hosted Web apps

When developing the UWP hosted Web Apps for Windows 10 , you can define the URLs that your hosted web app can include and exclude . Defining URLs in the UWP hosted Web apps You generally define this in the app package manifest file by setting the Application Content URI Rules (ACURs) as shown below.

How to open Quick Access folder from command line in Windows 10 ?

In Windows 10 , you can use the command userinit to open the Quick access folder in the File explorer. How to open Quick Access folder from command line in Windows 10 ? The Quick Access folder is a kind of favourites that contains the Frequent folders and the recent files that the user has viewed. Example of the usage. D:\>userinit D:\>

How to read file contents from command line in Windows 10 ?

You can use the command “type” in the command line to read the contents of the text file in Windows 10. How to read file contents from command line in Windows 10 ? Lets say , you want to print the contents of the file d:\ac.txt. Below is the command that you will be using. type d:\ac.txt D:\>type ac.txt Welcome to abundantcode.com D:\>

How to open display settings from command line in Windows 10 ?

The display properties can be found in the settings app in Windows 10 which lets the users to configure the look and feel of the windows desktop. For example , you can change the display resolution , change wallpaper or screensaver etc. How to open display properties from command line in Windows 10 ? You can open the display settings screen by right clicking on…

Windows 10 SKU’s

SKU stands for Stock Keeping Unit and below are some of the Windows 10 SKU’s. Windows 10 SKU’s Desktop SKU – This includes the PC , 2 in 1 etc. Mobile SKU –  This includes tablet , phablet and phone. Xbox SKU – This includes Xbox. IoT SKU IoT headless SKU – This includes Rasberry Pi etc. Surface Hub SKU – This includes Surface Hub….

Creating a Button in UWP app by specifying the namespace as one of the attributes of button

You can add a button in your Universal Windows Platform (UWP) app by simply adding the Button tag in the Xaml page. You will notice that the Namespace “http://schemas.microsoft.com/winfx/2006/xaml/presentation” is already referred in the Page element. You can add a button in the UWP app page by specifying the namespace as one of the attributes of button instead of specifying it at the page level….

How to Get the Device Platform in Windows 10 App ?

If you running your App on Windows 10 , you might want to get the device platform from your app for some reasons. If this is the case , you can use the DeviceFamily property defined in the Windows.System.Profile.AnalyticsInfo.VersionInfo class. Below is the sample code snippet demonstrating the usage of this. How to Get the Device Platform in Windows 10 App ? The complete codebehind…

Can you run a Windows 10 Universal Apps on Windows 8.1 ?

This is one of the frequently asked question by most of the developers who are new to Windows 10 App development. Can you run a Windows 10 Universal Apps on Windows 8.1 ? In simple words , NO. The other way around i.e building Windows Phone 8.1 and Windows 8.1 Universal App will ensure that your app will run fine on both Windows 8.1 and…