[Ticket#: 200402251000459] Re: Windows XP file recognition?
Mark Brownell
gizmotron at earthlink.net
Fri Feb 27 11:42:58 EST 2004
Can someone clear this up for me?
Enterprise Users - "Up-and-running, plus 10-incident in-depth support
package" So I ask my first in-depth support question and I get this:
On Thursday, February 26, 2004, at 01:50 PM, Runtime Revolution
Support wrote:
> Mark,
>
> Have you tried asking your question on the mailing list? Also, Ken Ray
> has
> some hints about this on his web site at
> <http://www.sonsothunder.com/metacard/tips/file004.htm>. I've also
> written
> handlers that do what you want, and I just parse the contents of the $1
> variable; I wrote it for versions of Windows before XP but I haven't
> heard any
> complaints from XP users.
>
> Unfortunately, without a support contract, we aren't supposed to
> answer this
> type of question. About all I can do is give you a gentle shove in the
> right
> direction. Or you could purchase a one-time support incident from the
> web
> store. I'm pretty sure you'll get responses on the list, though --
> others have
> solved this in the past.
>
> Jacque
>
> Mark Brownell <gizmotron at earthlink.net> wrote:
>
>> Hi,
>>
>> From the docs:
>>
>> $ - Keyword
>>
>> "Gotcha: On Windows XP systems, individual arguments passed on the
>> command line are placed in separate variables ($1, $2, and so on) only
>> if they are quoted on the command line. Otherwise, all arguments are
>> placed in the $1 variable."
>>
>> I'm trying to solve file recognition in Windows XP and I was searching
>> for the recommended way of getting the path to a file to load and run
>> in Windows XP during startup. I discovered that on my Windows XP
>> machine the registry settings for Revolution are quoted differently
>> for
>> .rev files than the recommended way of setting the registry. There are
>> some added quotes in some of the key settings.
>>
>> My question is, what is Rev doing and what is the proper way to get
>> the
>> file path on a Windows XP from the registry? I'm trying to get
>> double-clicked files to open in Windows XP while starting my
>> standalone
>> app. I'm having trouble with the information that is returned when I
>> use $1. I'm currently getting multiple paths that would need to be
>> parsed and "~" thrown into the section of the path that I need. Does
>> Revolution use a special handler to accommodate file recognition for
>> Windows XP verses other Windows OSs?
>>
>> I would like to see an example or the actual handlers for setting the
>> registry and the calls made to the registry in those handlers for
>> Revolution. The reason is they work for Revolution. I've been stuck on
>> this for weeks. I never wanted to ask support for help but now I've
>> gone ahead and done it.
>>
>> Thanks,
>>
>> Mark Brownell
>>
>>
>
>
>
> Jacqueline Gay
> --
> Runtime Support Team ~ http://www.runrev.com
> Runtime Revolution ~ User-Centric Development Tools
> --
Recommended way produces this:
Data: "C:\Program Files\Intuition\Intuition.exe %1"
The way Rev does it for itself would end up looking like this for my
files:
Data: "C:\Program Files\Intuition\Intuition.exe" "%1"
Notice the quotes that are different. Not all arguments are quoted like
this though on my XP system.
Double-click works for Rev by opening my .rev files on XP. I'm
wondering what Rev does different for Windows XP Pro that is different
than all the recommended suggestions that I have tested. When I change
my registry settings to look like Rev's registry setting the
recommended $0 & $1 calls don't produce a usable path to my file.
'UNLESS', they are successfully parsing the correct file path out of
all the information returned in $0.
I wonder what other Windows users are seeing in their regEdit settings
for Revolution. Since this is the only place I see file recognition
working properly on XP Pro for rev standalone applications this is
where the answer or solution must display itself. Perhaps other
standalone applications have been proven to open during file
recognition (double-click) on Windows XP Pro
Thanks,
Mark Brownell
More information about the use-livecode
mailing list