MS-DOS

Delete a file in Windows cmd

To delete a file in Windows cmd, we use the del batch command. The delete command provides many very useful options to be in control of the deletion process. How to delete a file with Windows cmd? The main option that i suggest to use is the deletion confirmation. This way you are able to control one last time which file top delete. Please

MS-DOS

Change current directory and drive in command line

When using the command prompt to navigate in the windows systems. Ether on laptops, desktops or on servers, it’s very convenient to list the folders and to navigate inside the folder structure. Indeed, with one command MS-DOS allows to change folder or drive. How to change the current directory in MS-DOS with the cd command? Indeed, to use the cd command line, use this

MS-DOS

Display the current directory path in cmd

How to display the full path of the current directory in Windows command prompt ? Simply use the cd command and the current path is displayed in the prompt. How to display the full path of the current directory in cmd ? When using batch files it becomes much useful to reuse the current location path. Especially when scripting dynamic actions using variables. Directly

MS-DOS

Create a text list of files in a folder in cmd

How to create a list of files and insert it into a text file with a simple command in Windows? It pretty easy, you need to add in the command to redirect the output of the dir batch comand. How to create a list of the files contained in a folder into a text file with a Windows command ? For example, to list

MS-DOS

List files recursively in folders and subfolders in cmd

Per default, the dir dos command list all files and folders within a given folder, but not recursively. To display a complete of files and optionally folders within all the subfolders, use the dir command options as follows. How to list all files a folder recursively in command line ? With a ms dos prompt, to list all the files inside a folder. To

MS-DOS

List files in folder with cmd

When it comes to listing huge directories in Windows, it’s mandatory to use scripting to avoid a tremendous manual work. Automation is key here, with very simple bash commands windows system can do all the work. How to list all files in a folder with a Windows command line? Use the dir command line to display the full list of files inside a specific

MS-DOS

Copy recursively files and folders in cmd with xcopy

To copy a single file or multiple files recursively with the Windows command prompt, use the xcopy command. The xcopy command is very similar to the copy command but it handles recursion and has many other options mainly related to recursion. How to recursively copy files and folders with windows cmd? Indeed, when copying a large number of files and folders, it is useful

MS-DOS

Copy a file to another folder in cmd command line

To copy a file to another folder in cmd command line, use the dos copy command in a Windows prompt. Two main options allow users to copy files in Windows command prompt or batch scripts. The options are the copy and the xcopy commands. Of course, it is always possible to copy files and folders using the Windows system graphic user interface, but it’s