C
Csaba Gabor
I have a situation which doesn't seem that strange, but I can't figure
out a way around it. I have one file type (ASSOC .php=PHPFile) which I
would like to run one way if it is invoked from the command prompt:
FTYPE PHPFile="c:\php.net\php.exe" "%1" %*
and slightly differently if it is invoked from Explorer:
FTYPE PHPFile="c:\php.net\php-win.exe" "%1" %*
The problem is that this FTYPE acts globally so I can't execute it on a
per command window invocation basis (in other words, make a change
local to that command window session). So the way out that I see is to
have that FTYPE be a conditional to cover both cases. Is that even
possible? It'd be great if someone could show me how.
Thanks,
Csaba Gabor from Vienna
By the way, is there a difference between "%L" and "%1" above? All of
my tests (invoking on file names with spaces, either in or out of
quotes) on my Win XP Pro system showed the same behaviour. Ex: "test
me.php", and I had test me.php show its argv.
out a way around it. I have one file type (ASSOC .php=PHPFile) which I
would like to run one way if it is invoked from the command prompt:
FTYPE PHPFile="c:\php.net\php.exe" "%1" %*
and slightly differently if it is invoked from Explorer:
FTYPE PHPFile="c:\php.net\php-win.exe" "%1" %*
The problem is that this FTYPE acts globally so I can't execute it on a
per command window invocation basis (in other words, make a change
local to that command window session). So the way out that I see is to
have that FTYPE be a conditional to cover both cases. Is that even
possible? It'd be great if someone could show me how.
Thanks,
Csaba Gabor from Vienna
By the way, is there a difference between "%L" and "%1" above? All of
my tests (invoking on file names with spaces, either in or out of
quotes) on my Win XP Pro system showed the same behaviour. Ex: "test
me.php", and I had test me.php show its argv.