I am using batch script to invoke java application. Java app takes an absolute file path as an argument.  

I need my batch script to be invoked with the relative or absolute path of the file as an argument and then to pass the absolute path of the file for java execution. Example:

Running script `myscript` from location `c:/folderA`

```
myscript  folderB/file.txt  
myscript  c:/folderA/folderB/file.txt

```

should be able to get full absolute path `c:/folderA/folderB/file.txt` in both cases.
How do I do that?  

Just to be as much concrete as possible: I need only BATCH SCRIPT code to retrieve absolute file path string after passing either relative or absolute path to ti as an argument. Not the actual part when I invoke the java app with it.