I have finally finished my Windows Shell, "Slanshell." Please try it out and provide feedback! Thanks in advance!!
I have finally finished my Windows Shell, "Slanshell." Please try it out and provide feedback! Thanks in advance!!
.
How? There's no attachment.
hmmm.... thats not bad
though the interface is not quite that efficient for browsing through a hard drive or doing file operations
ill wait for version 2
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
I would like to see the source code, if you don't mind of course.
I have been having several problems in displaying directories,
file names, and navigating within them. Basically I was wondering if you wouldn't mind if I learned how to do this using your source as an example.
If yes, thanks much, if not. I understand.
actually unregistered dude, i used internal DOS commands to do this...if someone disassembled it, they would find almost nothing but cout and system calls. The way i got my program to run DOS commands internally is: system calls. almost any system call will compile, but not all of them will work. See, if you used
that is the same command used to display the directory of drive C used in DOS..I think you will understand after that..and hope it helps...Code:#inlcude <iostream.h> #include <windows.h> int main() { cout<<" This Program Lists The Directory of C:\\"; system("Dir C:\\"); } return 0;
Last edited by civix; 07-23-2002 at 01:47 AM.
.
then how is it "your" shell if all you've done is pass commands to DOS?
Quidquid latine dictum sit, altum sonatur.
Whatever is said in Latin sounds profound.
Isn't that what a "shell" is?
Webster's defines a "shell" as the following:Computer Science: A program that works with the operating system as a command processor, used to enter commands and initiate their execution.
I guess the reason i said that is that usually shells are coded using execv() (or another member of the exec() family).
otherwise it'd be too easy to write a shell
what's the point in that?Code:while(!finished) { display_prompt(); get_user_input(); system(userinput); }
anyways. good onya for doing whatever it is you did.
Cheers
U.
Quidquid latine dictum sit, altum sonatur.
Whatever is said in Latin sounds profound.
it is nice but you need to include commands such as dir c:\\ /p or its something like that so dos displays text tilll the bottom of the page and then waits for user to press enter then continue. and you need to be able to browse through folders and files.
A reason for making a shell would be to create an alternative, practically easier, way of using OS commands.....Originally posted by Uraldor
I guess the reason i said that is that usually shells are coded using execv() (or another member of the exec() family).
otherwise it'd be too easy to write a shell
what's the point in that?Code:while(!finished) { display_prompt(); get_user_input(); system(userinput); }
anyways. good onya for doing whatever it is you did.
Cheers
U.
civix,
I need to be able to access files in a gui I am writing.
I need to be able to navigate within directories and drives.
unless you can do this with system calls then what I need is not what you said.
thanks for your info, and your attempt at helping me.
why include windows.h in your prog, does it use functions which require windows support. cuz cout and system calls work fine without window.h
Yep, my shell...Passes commands to DOS, makes life much easier...im probably gonna put a format option in version 2...(Know what's funny? Yesterday i reformatted my backup computer and blowed the hard drive clear out of it. Now all its drives and its motherboard along with modem are sitting in my dresser drawer ) Oh, i could try to do better, but I am not that advanced yet. I just thought i'd give system maintainence a shot...(looks like I failed, LOL!) But it's only really designed to make DOS life easier. But believe me, there will be many more thingy-type things in 2.0!
Oh, I just instinctively put iostream.h and windows.h in all of my projects.
Last edited by civix; 07-23-2002 at 11:28 PM.
.
I used the shell it is a good interface, but when I went to exit back to windows from the main menu it foze my win98se machine