An Idea: Collection of Linux-Utils using Windows Batch


I have been practising programming using Windows batch (*.bat | *.cmd) lately and was wondering how many similar Linux-like utilties that can be made simply via windows batch (with or without external programs, better to use those ones shipped by Windows).

For example, the following simply does what whoami does under Linux Shell, which is to print the current user.

@echo off
:: print current user
echo %USERNAME%

and the pwd can just be simply replaced by the following.

@echo off
:: pwd
cd

There already exists many other tools (e.g. Cygwin), but most of them are in *.exe. Rewriting those by *.bat may be interesting and challenging. This will also show how powerful and useful the batch script is.

The github repro is [here].

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
188 words
Last Post: Set the Color for Console using Windows Batch
Next Post: Group, Label and Functions in Windows Batch

The Permanent URL is: An Idea: Collection of Linux-Utils using Windows Batch

Leave a Reply