Does the idea of a Windows command prompt replacement program pique anyone's interest? There are many desktop replacement programs and it seems that plenty of people like them. They don't do much for me because I don't really use the desktop.
I would be a big fan of the Windows command prompt but it just seems crippled and obsolete. The syntax tends to be awkward and extensibility is minimal. If you want to add your own command you have an option between the batch file, which seems to be the clumsiest "programming language" there is, or write an entire executable to serve the purpose of that single command. Most importantly, it is just plain ugly. Hence, the need for a replacement.
I have already begun to write a command prompt replacement, but I'm wondering just how much interest there would be, and if there is interest, would anyone has any suggestions or criticisms. The syntax is... unique... a mixture of different languages with the goal of being simple to write, simple to interpret, and concise. It has the added bonus of being able to create and manipulate .Net objects through the command line (in a manner similar to the Immediate window in Visual Studio). Commands are primarily function calls rather than shell commands, and functions would be provided to accomplish common shell commands. It could be docked as an appbar (like the task bar) so that it is always at your finger tips.
This is a sample of what you might type into the prompt (this is all subject to change, though):
I would be a big fan of the Windows command prompt but it just seems crippled and obsolete. The syntax tends to be awkward and extensibility is minimal. If you want to add your own command you have an option between the batch file, which seems to be the clumsiest "programming language" there is, or write an entire executable to serve the purpose of that single command. Most importantly, it is just plain ugly. Hence, the need for a replacement.
I have already begun to write a command prompt replacement, but I'm wondering just how much interest there would be, and if there is interest, would anyone has any suggestions or criticisms. The syntax is... unique... a mixture of different languages with the goal of being simple to write, simple to interpret, and concise. It has the added bonus of being able to create and manipulate .Net objects through the command line (in a manner similar to the Immediate window in Visual Studio). Commands are primarily function calls rather than shell commands, and functions would be provided to accomplish common shell commands. It could be docked as an appbar (like the task bar) so that it is always at your finger tips.
This is a sample of what you might type into the prompt (this is all subject to change, though):
Code:
[COLOR=Green]/ This is a comment. /
/ Delete a file.
You can use "escaped strings" and 'unescaped strings'.
Exclamation marks identify functions.
/
[/COLOR]!Del('C:\Windows\ThatFileImDeleting.txt');
[Color=Green]/ Change directory.
There will probably be shortcuts for very
common commands like this.
/[/Color]
!CD("System32");
[Color=Green]/ Get text from the user, and display the text in all caps.
The assignment operator is a colon.
/[/Color]
$text: !GetLine();
$text: !ToUpper($text);
!WriteLine($text);
[Color=Green]/ Play with .Net objects. This adds a world of
already existing functionality to the prompt.
The carat identifies a handle (as it does in
C++/CLI). The asterix is the instantiation operator.
/[/Color]
^myForm: *System.Windows.Forms.Form();
^myForm.Text: "Holy great goodness! A Form!";
^myForm.ShowDialog();