Tag Archives: Windows Tutorial

Windows operating systems are particularly common on personal computers and servers.

Open Command Prompt Here

How to open command prompt here from selected folder

After opening the command prompt, you usually have to type the path to the folder with “cd” followed by the directory path. However, there is the possibility to open the command prompt in a certain folder, to do this you go to the desired directory in Windows Explorer, and then type “cmd” in the address bar and press the Enter key.

Open Command Prompt Here from selected folder

The Command Prompt opens in the selected directory path.

If the command prompt is used more often, the PowerShell enabled as the default can be replaced. To do this, go to the settings, under Personalization – Taskbar. Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows key+X. Here switch to Off.

This means that with Windows+X instead of the default of PowerShell, the command prompt now appears.

Open Command Prompt here from selected folder on Windows 11

On Windows 11 it is more easy, in windows explorer press Shift+F10 the context menu opens with the command prompt, which opens in the selected directory.

Command Prompt operation

cmd.exe interacts with the user through a command-line interface. On Windows, this interface is implemented through the Win32 console. With cmd.exe may take advantage of features available to native programs of its own platform. For example. Windows it can use real pipes in command pipelines, allowing both sides of the pipeline to run concurrently. As a result, it is possible to redirect the standard error stream. (COMMAND.COM uses temporary files, and runs the two sides serially, one after the other.)

Multiple commands can be processed in a single command line using the command separator &&.

When using this separator in the Windows cmd.exe, each command must complete successfully for the following commands to execute. For example:

C:>Command1 && Command2 && Command3

In the above example, Command B will only execute if Command A completes successfully. The execution of Command C depends on the successful completion of Command B. To process subsequent commands even if the previous command produces an error, the command separator & should be used. For example:

C:>Command1 & Command2 & Command3

TAR and Curl in Windows for Linux user

TAR and Curl in Windows: Learn more about TAR archiving on Windows 10 and 11. Use TAR and ZIP files to back up your data.

TAR is still the most popular tool for archiving data on Linux, but now it is available on Windows. The TAR (Tape ARchiver), which is still very popular and widespread today, as a very common command for Linux users to back up data and directories, it compresses on request also with the help of gzip or bzip2. The name was originally formed from tape archiver, as used to back up data to tape drives.

How to use C:\> tar -xf on Windows

Use TAR and Curl in Windows

Linux users will be happy about the possibility of being able to use TAR under Windows, because Microsoft also provides the command for Windows 10, where TAR is onboard from build 17063.

TAR also extracts ZIP files

Interesting and unexpected is also that tar of Windows 10 also extracts ZIP files. Which formats for compression will continue to be supported is not yet known at this time. There are also a large number of tools that also support tar, which also have a graphical interface, such as the free 7-Zip.

The tar help is displayed with call the option help.

C:\> tar -help
Usage:
  List:    tar -tf <archive-filename>
  Extract: tar -xf <archive-filename>
  Create:  tar -cf <archive-filename> [filenames...]
  Help:    tar --help

TIP

In Windows 10 and Windows 11 you will find another tool that is popular and widespread among Linux users. Microsoft delivered cURL almost unnoticed, in the context of release updates. cURL (Client for URLs) is a command line program for transferring files that has long been included in many Linux distributions.

Tar and Curl are coming to Windows

Starting with Insider Build 17063, we are introducing two command-line tools to the Windows toolchain: curl and tar. It took a long time, I know. We’d like to recognize the people who built and maintain tar and curl – fantastic open source tools used by millions of people every day. Let’s take a look at two powerful ways these tools make developing on Windows an even better experience.

Basic components of the toolbox

Tar and Curl are staples in a developer’s toolbox. Starting today, these tools are available for all Windows SKUs via the command line. And yes, they are the same tools you have come to know and love! If you are not familiar with these tools, here is an overview of how they work:

Windows TAR

Tar: is a command line tool that allows a user to extract files and create archives. There was no way to extract a file from cmd.exe outside of PowerShell or with installing software. We are correcting this behavior :) The implementation we ship in Windows uses libarchive.

Windows Curl

Curl: is another command line tool that allows transferring files to and from servers. So, for example, you can download a file from the Internet.

Command line file transfers

Now it is possible to do more than just file transfers via the command line. But also extract files in formats other than .zip (such as .tar.gz). PowerShell already offers similar functionality (it has Curl and its own file extraction utilities). Microsoft recognizes that there may be cases where PowerShell is not readily available or the user may wish to remain in cmd.