Click here to Skip to main content
15,908,264 members
Home / Discussions / C#
   

C#

 
GeneralRe: run time properties in icon Pin
Nick Parker4-Aug-04 5:55
protectorNick Parker4-Aug-04 5:55 
aberger56 wrote:
So the question is, is there a way to have the properties under the desktop icon be something like "myprogram.exe test.ini" or "myprogram.exe live.ini"

In short, yes, your application can take arguments which is why you can write Main as such. I would suggest you look at other options such as extracting the path from a config file.

public static void Main(string[] args)
{
   string path = args[0];
   if(path != null)
   {
   //... continue on.
   }
}


- Nick Parker
My Blog | My Articles

GeneralRe: run time properties in icon Pin
aberger564-Aug-04 6:13
aberger564-Aug-04 6:13 
QuestionC# Socket Problem??? Pin
Korjiro4-Aug-04 5:31
Korjiro4-Aug-04 5:31 
AnswerRe: C# Socket Problem??? Pin
Heath Stewart4-Aug-04 5:52
protectorHeath Stewart4-Aug-04 5:52 
GeneralThumbnail Speed Increase Pin
Gambit_Sunob4-Aug-04 4:27
Gambit_Sunob4-Aug-04 4:27 
GeneralRe: Thumbnail Speed Increase Pin
Nigel Savidge4-Aug-04 5:00
Nigel Savidge4-Aug-04 5:00 
GeneralRe: Thumbnail Speed Increase Pin
Gambit_Sunob4-Aug-04 5:18
Gambit_Sunob4-Aug-04 5:18 
GeneralRe: Thumbnail Speed Increase Pin
Nigel Savidge4-Aug-04 6:16
Nigel Savidge4-Aug-04 6:16 
GeneralRe: Thumbnail Speed Increase Pin
Nick Parker4-Aug-04 5:36
protectorNick Parker4-Aug-04 5:36 
GeneralWeb app not calling Application_End Pin
IrishSonic4-Aug-04 3:46
IrishSonic4-Aug-04 3:46 
GeneralRe: Web app not calling Application_End Pin
leppie4-Aug-04 4:05
leppie4-Aug-04 4:05 
GeneralRe: Web app not calling Application_End Pin
Heath Stewart4-Aug-04 5:20
protectorHeath Stewart4-Aug-04 5:20 
GeneralToday screen component Pin
memsharp4-Aug-04 2:10
memsharp4-Aug-04 2:10 
GeneralRe: Today screen component Pin
Nick Parker4-Aug-04 4:19
protectorNick Parker4-Aug-04 4:19 
GeneralRe: Today screen component Pin
Heath Stewart4-Aug-04 5:12
protectorHeath Stewart4-Aug-04 5:12 
GeneralRe: Today screen component Pin
Nick Parker4-Aug-04 5:42
protectorNick Parker4-Aug-04 5:42 
GeneralRe: Today screen component Pin
Heath Stewart4-Aug-04 5:14
protectorHeath Stewart4-Aug-04 5:14 
GeneralRe: Today screen component Pin
memsharp7-Aug-04 21:48
memsharp7-Aug-04 21:48 
Generaluninstall in pocket pc Pin
memsharp4-Aug-04 2:05
memsharp4-Aug-04 2:05 
GeneralRe: uninstall in pocket pc Pin
Heath Stewart4-Aug-04 5:55
protectorHeath Stewart4-Aug-04 5:55 
GeneralHelp in pocket pc. Pin
memsharp4-Aug-04 2:01
memsharp4-Aug-04 2:01 
GeneralRe: ToolTip in Pocket PC Pin
exhaulted4-Aug-04 3:03
exhaulted4-Aug-04 3:03 
GeneralRe: ToolTip in Pocket PC Pin
leppie4-Aug-04 3:43
leppie4-Aug-04 3:43 
Questionopening a file with internet explorer from C# code? Pin
misterbear4-Aug-04 1:16
misterbear4-Aug-04 1:16 
AnswerRe: opening a file with internet explorer from C# code? Pin
CWIZO4-Aug-04 3:03
CWIZO4-Aug-04 3:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.