Batch File String Functions?
Posted on 2005-04-18
Is there any way I can get the containing folder and the filename (without the extension) using a batch file?
I'm trying to write a batch file to open Java programs I'm writing. I'm using NetBeans to write the programs, but from what I can tell, there's no way to open a class file and have it automatically execute in NetBeans. So I'm trying to write a batch file or something that I will associate with class files.
I need the batch file to do something like this:
Say the file I opened is "E:\Programming Files\Java\SwingCalc\SwingCalc.class"
It will do this...
CD "E:\Programming Files\Java\SwingCalc\"
If this can't be done with a batch file, is there any way I could do this using a VB script or something else that's built into windows?