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 _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
