Posts tagged ‘DOS’

Get random numbers under BASH and DOS

Both Linux Bash and Windows DOS support random number generation. The random number is ‘stored’ in a system environment variable named “RANDOM” (I believe this variable links to a script to generate the actual random numbers on both systems), use it in the same way as you use other ENV variables.  E.g.

Continue reading ‘Get random numbers under BASH and DOS’ »

Equivalent of “which” in Windows Command Shell Pankaj Kumars Weblog

如果想要知道一个程序或命令在Windows操作系统上的全路径,请使用下面这个脚本,它和Linux的which命令一样。

Continue reading ‘Equivalent of “which” in Windows Command Shell Pankaj Kumars Weblog’ »