Tag: Windows 10
How to mark a file as read-only from command line in Windows 10 ?
You can set a file to a read-only mode from the command line by using the command attrib and passing in the parameters like the read-only mode and the name of the file. The format of this command is as follows attrib +R <Name of the the file> How to mark a file as read-only from command line in Windows 10 ? For example ,…
How to embed Rectangle inside a Button in Windows Store App using C#?
Below is a sample code demonstrating how to embed a Rectangle inside a Button in Windows Store App using C#?. How to embed Rectangle inside a Button in Windows Store App using C#? The Xaml page with the Grid named “Panel” looks like the one shown below.
How to Check if a file exists in Windows Storage in UWP ?
Do you want to know if a file exists in the Windows Storage from your Universal Windows Platform (UWP) app ?. Below is a sample code snippet demonstrating how to do it. How to Check if a file exists in Windows Storage in UWP ?
How to Open Network Connections from Command line in Windows 10 ?
You can use the ncpa.cpl command to open the network connections from command line in Windows 10. How to Open Network Connections from Command line in Windows 10 ? Just open the command window and type ncpa.cpl and press the enter key to open the network connections dialog. Alternatively , the ncpa.cpl command can also be used in the Run window. Press Windows + R…
How to delete folder from command line in Windows 10 ?
You can delete a directory or folder using the command “rmdir” from commandline in Windows 10. How to delete folder from command line in Windows 10 ? The syntax for deleting the folder in windows 10 is rmdir <name of the directory> Incase you want to delete the non-empty folder , you can use the parameter /s for the rmdir command. Below is an example…
How to create a file from a Command line in Windows 10 ?
There are two command that you can use to create a file from a command line in Windows 10. These include – echo – fsutil How to create a file from a Command line in Windows 10 ? The fsutil command can be used to create a file by specifying the size but if you need to write a data to the file during its…
How to add entries to ResourceDirectory in Windows 10 UWP Apps using C# ?
Below is a sample code snippet demonstrating how the entries can be added to the ResourceDirectory in Windows 10 UWP application using C#. How to add entries to ResourceDirectory in Windows 10 UWP Apps using C# ?