set classpath other directory in the hierarchy
there are two directories
C:\a\b C:\a\c
well iam in say directory
c:\a\b
when i do a set c开发者_运维技巧lasspath=%cd%
the directory C:\a\b gets assigned to the classpath variable
but i want to assign C:\a\c to classpath
How can i do that ?
If you need to set classpath to sister directory of the one you are currently in, you can use this:
# Say you are in C:\a\b
$ set classpath=%cd%\..\c
This will set classpath to folder c
that is in the parent folder of you current directory (i.e. sister folder).
How about:
set classpath=C:\a\c
?
If you wanted to assign two directories, you could separate them with a semi-colon:
set classpath=C:\a\b;C:\a\c
精彩评论