Re: MY own version of CMD
Creating your own version of CMD would be quite a task that would for the most part be pretty pointless. As they say no since in trying to re-invent the wheel. You can of course use shell to launch the existing CMD from VB. You could also write a console app that would take input from the user and shell to the given program which would handle a lot of what CMD does but all you would really be doing is provided the user with a different interface CMD would still be doing the work.
I would advise a different project for learning.
Re: MY own version of CMD
Thats what i am looking to do just provide a different interface for CMD within my program, but i want it to look like an embedded console.
Re: MY own version of CMD
Look in your help file at the Shell() function
Re: MY own version of CMD
So you want your console to return results?
That would be a LOT harder.
Re: MY own version of CMD
OK would it be easier to some how embed the cmd into part of my program is that possible.
Re: MY own version of CMD
There is a SCRIPTING engine, that you might be able to call. Of course, then you run into PERMISSION problems on new OS's
Re: MY own version of CMD
OK what about an interface that looks like CMD but just pass the request to CMD and then displays the results. In effect like a cmd emulator.
Re: MY own version of CMD
Well, One-Note does it, so it *IS* possible. Just type 2 + 2 = and it displays the results below. Terrible security risk, if someone tries DEL *.*
Re: MY own version of CMD
yes but I am sure that i can put in to place some kind of filter to stop that. And also permissions in place to access the CMD.
Re: MY own version of CMD
The idea is to NOT let the user alter the project, only EXECUTE the code. Pre-program ALL commands that are allowed, and let them enter parameters. That would be better, and you can test to see if it works.
Re: MY own version of CMD
Re: MY own version of CMD
Quote:
Originally Posted by
dglienna
The idea is to NOT let the user alter the project, only EXECUTE the code. Pre-program ALL commands that are allowed, and let them enter parameters. That would be better, and you can test to see if it works.
This reminds me of my Computer studies day's at school...
Having the Basic background from the C64, GWBasic was a breeze and i was miles ahead of the rest of the class... I spent two days writing a GWBasic Emulator in GWBasic... and one day before class started i loaded it on ALL the Pc's and started it.. so when class started, everyone thought they were working in GWBasic...
I wrote all the functions in just like GWbasic, even got most of the error's in.. LOAD would load a project (into my Emulator), code edit's were accepted, and lines sorted accordingly (Those where the days of numbered lines of code), SAVE would save the file as a STD GWBasic project file.. LIST Listed the code...
However if you tried to RUN your code...:eek: ... I had several versions that did different things.. Well they all flushed your code (so it was lost if you did not SAVE)
#1 : Return a Memory error and wait for next command.. (but you still in emulator)
#2 : Just freeze up the system....
#3 : Emulated the Drip virus, and have the letters on screen slowly drip off the screen..
#4 : Clear the Screen and have a ball bounce around the screen...
#5 : Report a Syntax Error on the first line, and wait for next command..
Boy ... those were the day's ...
Re: MY own version of CMD
Fake dialup connection reset. Modem dials, prints two lines, waits for password.
Had a computer science TEACHER that fell for it once...
Re: MY own version of CMD
Quote:
Originally Posted by
GremlinSA
This reminds me of my Computer studies day's at school...
Having the Basic background from the C64, GWBasic was a breeze and i was miles ahead of the rest of the class... I spent two days writing a GWBasic Emulator in GWBasic... and one day before class started i loaded it on ALL the Pc's and started it.. so when class started, everyone thought they were working in GWBasic...
Boy ... those were the day's ...
Quote:
Originally Posted by
dglienna
Fake dialup connection reset. Modem dials, prints two lines, waits for password.
Had a computer science TEACHER that fell for it once...
Hmm, glad I didn't have you guys in one of classes! :p LOL! :D
Re: MY own version of CMD
Hmm Hannes... I'm coming to your School soon ..
Never know what tricks i have planned...:D