1.

Solve : How to avoid complete path?

Answer»

I have defined a batch file log.bat that basically takes a string as INPUT and displays the same string but with the timestamp as output

For example. if i call it USING

log hello world

then output will be

20080521::14:13:35 hello world

I am using it at number of locations in number of batch files. So i have placed it at common location.

Now to call it i am to use complete path.

Is there any WAY that i could AVOID giving complete path and call it by just SPECIFYING batch file name e.g. log.


Learn about the PATH variable, and then place your batch file in one of the folders included in that variable.



Discussion

No Comment Found