PDA

View Full Version : Starting Batch File from a foreign VB App


ZeroQ
24th October 2002, 14:04
Hi,

I have a Problem with starting the Batch File from a foreign VB Application.

I start it at this way:

ldProgID = Shell(pD2SPath & "dvd2svcd batch.bat")

When I start the batch file manually with the same settings etc. it works.


does anybody know the answer?

int 21h
24th October 2002, 17:33
What's the error you get?

Tyris
29th October 2002, 21:58
Some things to check:

Does pD2SPath end with a slash? (I assume that's the directory for dvd2svcd)

If the path to the program contains any spaces, it needs quotes around it, so you need to put "" on both sides of the path (so you actually add a quote rather than just end the string. Maybe like this:

ldProgID = Shell("""" & pD2SPath & "dvd2svcd"" batch.bat")

You may also need the full path to batch.bat (along with more quotes).