≡ Menu

Schedule Automatic shutdown

If you are running some application or downloading something on your system, and it's going to take a while, do you want to just wait on that to be completed before you go away? Would not it be nice to have the system shutdown automatically after all your tasks are done? This post shows exactly [...]

If you have installed MinGW tools on your system and are trying to run gcc from command prompt, you might get this error - 'gcc' is not recognized as an internal or external command. This post explains how we can fix this problem once for all. The first step is to check what all you [...]

How to open command prompt

This post explains how to open a command prompt on any Windows system. Irrespective of whether you are using Windows 7 / Windows 10 / Windows 8, all the below explained methods should work. For that matter, it should just work fine in the version that would succeed windows 10(command prompt has not changed from [...]

Chrome can be launched from Run window by running 'chrome' command. If you need to launch it from command prompt, we can run 'start chrome' Note that 'chrome' command works only from Run and it can't be used from CLI. C:\>chrome 'chrome' is not recognized as an internal or external command, operable program or batch [...]

This post explains how to create files with unique names from batch files.  We would need this when we are running some script which writes data into files and each time you need to name the file uniquely so that there's no conflict with the previously created files. One commonly used technique for unique names [...]

How to find large files

In Windows, if one wants to find which files are consuming most of the space on the disk, it can be found easily using explorer. Just sort list of the files based on the size attribute. But what if we need to find the large sized files from command line? How can we do this? [...]

Delete files from command line

This post explains how to delete files from command prompt on Windows computers. Before we start to look at the syntax of 'del', note that this command can delete only files, it can't delete folders. Run del command with the name of the file to be deleted, you are done! del filename You do not [...]

This post explains how to get current date and time from command prompt or in a batch file. Below is a sample batch script which gets current date and time Datetime.cmd @echo off for /F "tokens=2" %%i in ('date /t') do set mydate=%%i set mytime=%time% echo Current time is %mydate%:%mytime% When we run the above [...]

This is a common error we would encounter while working with windows command prompt. It means that there's something wrong in the arguments passed on to the command. Reasons could be any of the below. Not passing the right parameters to the command. For example, Rmdir command expects the directory name to be provided. Not [...]

'Windows Search' helps to find files, programs and emails easily on the computer. To use this, we just need to click on start button and start typing the search words in the search box. This feature is enabled by Windows Search service, which indexes the files on the computer for a faster search experience. If [...]