3

I've developed a Java program which does the same task as the ls command in Linux.

After developing it, I was thinking about using it as a command in the DOS prompt.

Does Windows allow this? If it is possible, then which settings do I have to change for it in order to get it working?

c:>ls 
the output of the program "java ls"
slhck
  • 235,242

1 Answers1

2

Yes, just make a batch file and adjust the PATH environment variable so as to include the directory, where your batch file is stored.

wnrph
  • 3,715
  • 1
  • 28
  • 39