cmd.exe + normal functions work together

Hi all,

I would like to make a program, it will work with cmd.exe.
if i write, "func X" it will run X function, if i write any cmd command, it will work like normal cmd.exe

C:\Users\alican>func X
this will implement my function, and i dont like to get warning from cmd.exe "it is not valid....."

does anyone has some ideas how can i do it?

one more thing i was curious, i didnt want to open new thread for it, do we use Pipe, to communicate between 2 exe or do communicate between 2 process in same exe? or to communicate between process and function?

thanks a lot
Topic archived. No new replies allowed.