Tag: command line

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 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 run the C# program from Commandline using csc.exe ?

Problem Statement You need to use he csc.exe (C# command line compiler) to compile the Csharp program from Command prompt. Solution Use the command prompt and use the csc.exe to compile and run the program from the command prompt. Follow the below steps to compile and run the C# program from command prompt. 1. Type the program in the notepad and save it as hello.cs…

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…