Vbs shell, open in predefined directory

Hi,

I need a vbs script opening DOpus in a predefined folder.

The following code works fine and opens c:\programs:

Shell "explorer c:\programs"

However, I want to open the folder in DOpus, not Windows Explorer!

Putting in dopus.exe instead of explorer ends up in DOpus opening in the root directory (c:), i.e. ignoring the parameter.

Thanx and best regards
Jens

"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe" /Open "C:\programs"

Hi nudel,

thanks, that helped.

However, I had to take out the two quotation marks in the middle to make it work. I now have:

Shell "C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe /Open C:\programs"

Thanks again
Jens

I would keep the quotes in to avoid problems. In VBScript you can use two double-quotes to get quotes inside a string (itself in double-quotes, obviously):

Shell """C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe"" /Open ""C:\programs"""

Right I've done it that way now. Thanks for your advice.
Regards
Jens