Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute to a C# exe fails - Access is denied
Message
From
12/10/2006 17:42:18
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01161572
Message ID:
01161596
Views:
21
>The ShellExecute works on my pc.
>
>here is my code in VFP:
>
>
>declare long ShellExecute in "shell32.dll" ;
>	long hwnd, string lpszOp, ;
>	string lpszFile, string lpszParams, ;
>    string lpszDir, long nShowCmd
>
>ShellExecute(0,'Open','c:\temp\mytest.exe',0,0,1)
>
>
>I get no errors and the file test.txt is created.

It worked!!!??? OK. Would you make sure if that file is not a left over from running that exe in command window. Or:

? ShellExecute(0,'Open','c:\temp\mytest.exe',0,0,1)

If it prints over 32 it's fine (and I would start to think what could I have done for it not to work:)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform