Actually in thinking about it, you wouldn't need to feed the script the directory your in.
You could just tell the .bat file to do a CD command which will give you your directory, put it into a variable, parse it, and there you go.
I have some programs at home where I do something similar but instead I ping computers to see if they're alive or dead by grabbing a string from the results of the ping command.