Can someone tell me how to make my script callable in any directory?
My script simply returns the number of files in a directory. I would like it to work in any dire
All of those operating systems should support a PATH environment variable which specifies directories that have executables that should be available everywhere. Make your script executable by chmod +x and place it into one of those directories (or add a new one to your PATH - I have ~/bin for instance).
I don't know how to make new kinds of files directly executable on Windows, though, but I guess you could use a .bat file as a proxy.