My Windows Shell Finally Done!!!

This is a discussion on My Windows Shell Finally Done!!! within the C++ Programming forums, part of the General Programming Boards category; I have finally finished my Windows Shell, "Slanshell." Please try it out and provide feedback! Thanks in advance!!...

  1. #1
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605

    My Windows Shell Finally Done!!!

    I have finally finished my Windows Shell, "Slanshell." Please try it out and provide feedback! Thanks in advance!!

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    94
    How? There's no attachment.

  3. #3
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    Whoops!!! Heres the Attachment
    Attached Files Attached Files

  4. #4
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    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
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  5. #5
    Unregistered
    Guest

    Can I see the source code.

    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.

  6. #6
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    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
    Code:
    #inlcude <iostream.h>
    #include <windows.h>
    int main()
    {
    cout<<" This Program Lists The Directory of C:\\";
    system("Dir C:\\");
    }
    return 0;
    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...
    Last edited by civix; 07-23-2002 at 01:47 AM.
    .

  7. #7
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    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.

  8. #8
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    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.

  9. #9
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    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

    Code:
    while(!finished)
    {
       display_prompt();
       get_user_input();
       system(userinput);
    }
    what's the point in that?

    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.

  10. #10
    Sir Mister Insane Sako Klinerr1's Avatar
    Join Date
    May 2002
    Posts
    608
    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.
    Email: Klinerr1@nc.rr.com || AIM: MisterSako || MSN: sakotheinsane@hotmail.com

    -the shroom has spoken

  11. #11
    Registered User
    Join Date
    Jun 2002
    Posts
    267
    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

    Code:
    while(!finished)
    {
       display_prompt();
       get_user_input();
       system(userinput);
    }
    what's the point in that?

    anyways. good onya for doing whatever it is you did.

    Cheers
    U.
    A reason for making a shell would be to create an alternative, practically easier, way of using OS commands.....

  12. #12
    Unregistered
    Guest

    NO NO NO

    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.

  13. #13
    Unregistered
    Guest

    One More Question?

    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

  14. #14
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    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.
    .

  15. #15
    Registered User
    Join Date
    Jul 2002
    Posts
    3
    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

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06:05 PM
  2. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  3. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM
  4. How come this only works in Windows nt/2000?
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 08-30-2002, 06:54 PM
  5. shutting down windows
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 01-02-2002, 11:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21