Please help me run an external command from VB6:
I need to run the command
java –jar run.jar
Under the following directory:
C:\Program Files\MY_SW_PROD\last\Java_sw
run.jar
is inside the java_sw
directory but my VB6 application is not.
I have the following code but it doesn't work because I am not inside the java_sw
directory:
Shell Environ("COMSPEC") & " /c java –jar run.jar", vbNormalFocus
How do I change to the correct directory C:\Program Files\MY_SW_PROD\last\Java_sw
, so that I will able to run the run.jar
file?
Remark - ChDir isnt working on WIN XP !