Dos shell


 
Thread Tools Search this Thread
Operating Systems Linux Dos shell
# 1  
Old 07-06-2009
Lightbulb Dos shell

Dear all, I am trying to write a unix shell with C++ that is similar to Windows command line. I planned to call it Dosh (DOS-sHell).That means you can directly run dos or win32 console programs with it. It will be distributed according to the license g GPL. Any advice? (This is my first c++ program other than hello world)
I will post the link later for downloading an Alpha version.

Last edited by elgarteo95; 07-06-2009 at 09:38 AM..
# 2  
Old 07-06-2009
Quote:
Originally Posted by elgarteo95
Dear all, I am trying to write a unix shell with C++ that is similar to Windows command line. I planned to call it Dosh (DOS-sHell).That means you can directly run dos or win32 console programs with it. It will be distributed according to the license g GPL. Any advice? (This is my first c++ program other than hello world)
I will post the link later for downloading an Alpha version.
Good. I have a question? Will it run on an enviornment like cygwin or on UNIX? how you are planning to handle COM or DLL calls?
# 3  
Old 07-06-2009
Do you want to write a UNIX-like shell for Windows? In that case, Korn Shell and Bo(u)rne Again Shell are available for Windows.
Or do you want to write a command.com/cmd.exe -like interpreter for UNIX? Because I can't think of anyone scripting on UNIX missing the "syntax" of that.

Or do you, which I think more possible, want to write a tool for UNIX that behaves similar to command.com/cmd.exe, and also has the ability to run DOS/Win32 programs? In that case you might want to take a look at Wine for your emulation layer, since UNIX and Windows are not binary compatible.

But I do already like your proposed name (especially the casing), as that's what cmd.exe always felt like to me.
# 4  
Old 12-28-2009
Everyone, that's really tricky for a newbie to C++.
I think I will make a basic shell on linux, but no win32 compatibility yet.
For example, if i type "del a.bin" into the shell, it will run "rm ./a.bin" for u.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert for command from DOS to SHELL

Well, this command has served me quite well under DOS for %%X in (*.txt) do COMMAND however in linux it just outputs: "./install.sh line 1: '%%x': not a valid identifier. Ideas ? Thanks in advance (2 Replies)
Discussion started by: pasc
2 Replies

2. Shell Programming and Scripting

Converting DOS Batch file to Shell Script

Hi, This is my DOS Batch file. @echo off echo "Program Name :" %0 rem echo "Next param :" %1 echo "Next param :" "Username/Password" echo "User Id :" %2 echo "User Name :" %3 echo "Request ID ... (4 Replies)
Discussion started by: Rami Reddy
4 Replies

3. Shell Programming and Scripting

Setting Variables WITHIN For Loop in DOS Command Shell

I'm wondering if any of you could lend an assist with a small problem. First, I'm under the impression I need to use Delayed Environment Variable Expansion (DEVE), based on other things I've read across the web. Summary: trying to use command shell (cmd.exe) in XP sp3 (if that's relevant) to... (4 Replies)
Discussion started by: ProGrammar
4 Replies

4. UNIX for Dummies Questions & Answers

Unix shell, Dos batch

Is the unix shell script equivalent to dos batch command? Thanks (2 Replies)
Discussion started by: zhshqzyc
2 Replies

5. Shell Programming and Scripting

execute shell file on DOS prompt

I have installed cygwin on my computer having windows 2003 server as operating system. The following command works fine on DOS console: bash launch_update.sh Is there any way, that i could run the above shell file, just by typing its name on DOS prompt, in the same way as batch files are... (1 Reply)
Discussion started by: mmunir
1 Replies

6. Shell Programming and Scripting

bash shell script and ms-dos

Hi... I need your help..... I would like to create a bash shell script, which it could someway to stimulate the MS DOS to accept and do the most basic commands of MS DOS... (1 Reply)
Discussion started by: space13
1 Replies

7. Windows & DOS: Issues & Discussions

rediretion and pipes in DOS shell cmd interpreter

Hello, I am trying to accomplish the following. Send the output of a command to the screen (this happens by default) as well as capture the output of the screen to a log file. How can this be achieved in DOS command interpreter syntax. Any ideas/suggesstions/indicators are greatly... (2 Replies)
Discussion started by: jerardfjay
2 Replies

8. UNIX for Dummies Questions & Answers

Unix Emulator for DOS Shell

would like to have ls, wc -l, etc all availble in this silly dos shell I'm stuck in thanks! (1 Reply)
Discussion started by: robersh
1 Replies

9. Shell Programming and Scripting

Converting Shell script to Dos batch files

Hi friends! I am having some simple shell script files to build postgresql database and all. Now i want to convert those scripts to dos batch scripts(to run on windows XP/2000/NT) because there is no need of unix emulation for latest release of postgresql. Please somebody help me. (1 Reply)
Discussion started by: darwinkna
1 Replies

10. Shell Programming and Scripting

Shell script to create a DOS-like Menutiem

Dear all, Greetings ! I am writing in order to pick your brains on an issue I have. If you remember in good old MS-DOS, one was able to change the autexec.bat and config.sys files so as to enable various configuration menus. I used it in order to have my PC (486 DX 66MHZ) run games with all... (2 Replies)
Discussion started by: bionicfysh
2 Replies
Login or Register to Ask a Question