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:30:58
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:
01161588
Views:
13
>>
>>Oh no problem. Since I use it often I created shortcut in quick launch area like this:
>>Start\All Programs\VS2005 ...\VS .Net tools\VS commadn prompt
>>Instead of clicking there click and drag with right mouse button on to quick launch area. When it asks choose "Copy here".
>
>Now, when I run command csc mytest.cs I get error:
>
>(11,10) error CS0103: The name "sw" does not exist in the current context.
My bad:

StreamWriter sw = new StreamWriter(@"c:\temp.txt");
sw.WriteLine("Hello");
sw.Close();

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
Reply
Map
View

Click here to load this message in the networking platform