Hello,
I am new to VB programming, using the Visual Studio Express 2010 IDE, and I am having a problem.
I have a VB program that writes a batch file to allow me to run a line of the following format:
java <my class file> [options]
I then run the batch file using the Shell() routine in VB.
When I do this it says it cannot find <my class file>. However if I run the same batch file from a dos prompt it works.
Can anyone explain why it works in a dos prompt but not in the Shell function?
And if you can also suggest any solutions I would be most grateful.
Thank you for your time.
I am new to VB programming, using the Visual Studio Express 2010 IDE, and I am having a problem.
I have a VB program that writes a batch file to allow me to run a line of the following format:
java <my class file> [options]
I then run the batch file using the Shell() routine in VB.
When I do this it says it cannot find <my class file>. However if I run the same batch file from a dos prompt it works.
Can anyone explain why it works in a dos prompt but not in the Shell function?
And if you can also suggest any solutions I would be most grateful.
Thank you for your time.