Hey you know in linux you can type "ls" in a shell and it will exec the ls script that lists files/folders blah blah. Anyways, you can call that in any dir.

I wrote a c++ file that does the same thing as 'cat' in linux, but I want to be able to call 'cat myfile.txt' anywhere within the windows shell cmd / command.com and it will execute my program.

Is there any possible way to do this? Does it have something to do with the registry / PATH or a windows-like bin?

Yes, I know there are *nix shell ports for win32 out there, but I'd like to use my own scripts.