Tag: Windows

How to Get the Application’s path in Windows or Console Application in C#?

There are times when you want to retrieve the application’s path where the exe is running to get access to another file or accessing the configuration file etc. Below is a sample program that demonstrates how one can retrieve the Application’s path in Windows or Console Application in C#. How to Get the Application’s path in Windows or Console Application in C#?

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…

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….

Windows Screen shown Sideways? Exploring the Causes and Solutions

Have you ever encountered the perplexing situation where your Windows computer screen suddenly appears sideways? It’s a common issue that can leave you feeling disoriented and frustrated. Fear not, though, as this blog post aims to shed light on the reasons behind this bizarre occurrence and guide you through the steps to set things right. So, let’s dive in and unravel the mysteries of the…

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 Download and Install Visual Studio Code for Windows ?

This article will explain in simple steps on downloading and installing the Visual Studio Code for Windows in Windows 8.1 . How to Download and Install Visual Studio Code for Windows ? Follow the below steps to download Visual Studio Code Editor and install it on Windows PC. 1. Download Visual Studio code for Windows from http://go.microsoft.com/fwlink/?LinkID=534107 .2. This will download the VSCodeSetup.exe in the…

Popular Grep Tools for Windows

Are you looking out for some the Grep Tools for Windows ? . Below is the list of some of the popular Grep Tools for Windows . Popular Grep Tools for Windows Cygwin PowerGREP grepWin: Regular expression search and replace for Windows AstroGrep BareGrep ack! GREP for Windows (2.7.2) Windows Grep – search tool for Windows GNU utilities for Win32 Are there any other Grep…

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…

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…

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 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…