VOGONS


First post, by ddraig

User metadata
Rank Newbie
Rank
Newbie

Hello,
Im trying to use the windows scripting host's WScript.Shell object's run and exec methods to launch a vlp file directly, but to no avail.
I check out this thread for answers:
VDMS from other apps

but I still cant determine if 1. its possible to use WSH to run a vlp directly.
and 2. if not, then how do I find the ~..vlp.ini file which is generated by by aunchpad?
I could use this file as 'dosdrv -i:myini.ini' to launch then.

thanks for any help. This is for a frontend Im using out of a web browser.
-G

Reply 1 of 3, by ddraig

User metadata
Rank Newbie
Rank
Newbie

decided to take a look in the registry to see what happens when you click on 'run with vdms' option.
found this, which the shell executes:
"%VDMSPath%\VDMSRun.pif" %1

so I presume when you double click on the .vlp file (for Blood in this case) this runs where the %1 parameter is the blood.vlp file?

Reply 3 of 3, by Guest

User metadata

well used a ShellExcute utility to run the vlp file, but Im getting the ShellExcute method's error number 5 returned, that the operating system will not permit the file to be run.
Looks like a permissions/sharing problem.
I even used 'runas' in a bat file for this exe to run as the local admin.
This has nothing to do with WSH and looks to be a deeper permissions problem.

looks like there isnt much info on how I can take my custom blood.vlp shortcut info and apply it to a simple 'dosdrv -i:myvdms.ini' shortcut in the forums.