[Mono-list] shell does not work on Widnwos Vista

Christopher David Howie me at chrishowie.com
Tue Apr 27 14:51:18 EDT 2010


On 04/27/2010 01:17 PM, Stephen Liu wrote:
>> The command prompt does a bit of trickery so that 
>> you can "run" shortcuts.  The Windows APIs Mono uses 
>> to start programs don't do such magic.
> 
> 
> On Window Vista I have created a shortcuts of IE on;
> C:\Program Files\Internet Explorer\iexplore.exe
> 
> rename it as iexplorelnk and put it on;
> C:\Users\satimis\
> 
> 
> Afterwards on "Command Prompt" executing iexplorelnk starts IE.  But on the window of my small program, "shell.exe", it still fails.

Based on what I just told you, this is the behavior I would expect.  The
APIs Mono uses do not know what shell links are.  You cannot run shell
links with Process.Start().

> However following commands;
> 
> cmd
> explorer (Windows explorer)
> calc (calcultor0
> ipconfig
> etc.
> 
> which work on "Command Prompt" also work on my program.  But on the top box of the small window I must type;
> 
> explorer explorer
> calc calc
> ipconfig ipconfig
> etc.
> 
> to make them work.  The command must be repeated otherwise the small window will crash.

Crash how?  (Hint: If something is crashing, it is almost always helpful
to give us a stack trace, otherwise all we can usually do is guess at
what's wrong.)

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers

PGP key:

pub   2048R/CF8338F5 2010-04-14
      Fingerprint: 2B7A B280 8B12 21CC 260A  DF65 6FCE 505A CF83 38F5


More information about the Mono-list mailing list