command line parsing problem
hello,
i tried to convert a mmf1.5-program, which was assigned to the *.wav extension and played a sample
by double clicking a wav-file in explorer.
this was done with the command line extension and a "get element x of command line" condition:
the second element was the *.wav-path and could easily played by one line in the event editor.
problem in mmf2:
the inbuild command line does support only predefined options like /a, /b, not a unknown whole path of a file.
so its impossible to get a path without a lot of string parsing.
is there a workaround or a new command line extension for mmf2?
thanks,
quinto
Re: command line parsing problem
use the special object and get the command line from that... what you want is the string without the app path, so (you will need to work it out for MMF): mid(commandline, len(appdrive$ + appdir$ + appname$) + 5, len(commandline) - len(appdrive$ + appdir$ + appname$) + 5))
you might need to change the 5 to 3 if the app is not double quoted, eg. C:\app.exe instead of "C:\app.exe" or increade it to remove the space, etc.