![]() |
|
#1
|
|||
|
|||
|
Hey
I want to write a really simple batch file and was wondering if anyone could help? Basically I have written some code, and one of the parameters I want to pass to the code is the current working dirrectory of the batch file. So, say I have a batch file called run.bat, and its in:- C:\Documents and Settings\J\My Documents\ I want to pass that dirrectory to my program, like this:- java Main "C:\Documents and Settings\J\My Documents" I know if I do cd I get the current working dirrectory, so i guess its something like this:- Code:
java Main $cd$ thanks |
|
#2
|
|||
|
|||
|
Quote:
Code:
java Main %*
__________________
I think I am a signature, therefore I exist! I believe a higher being has me as a signature... |