Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
Questionhelp file Pin
alok217126-Nov-07 23:44
alok217126-Nov-07 23:44 
Answerrepost after 39 minutes. Ignore this post Pin
J4amieC26-Nov-07 23:50
J4amieC26-Nov-07 23:50 
AnswerRe: help file Pin
Colin Angus Mackay27-Nov-07 0:03
Colin Angus Mackay27-Nov-07 0:03 
GeneralRe: help file Pin
alok217127-Nov-07 0:27
alok217127-Nov-07 0:27 
GeneralRe: help file Pin
Colin Angus Mackay27-Nov-07 1:06
Colin Angus Mackay27-Nov-07 1:06 
GeneralRe: help file Pin
alok217127-Nov-07 1:43
alok217127-Nov-07 1:43 
GeneralRe: help file Pin
alok217127-Nov-07 1:43
alok217127-Nov-07 1:43 
QuestionHow to write a single purpose app with no processing output? Pin
michal.kreslik26-Nov-07 23:41
michal.kreslik26-Nov-07 23:41 
Hello,

what is the best way on how to write a single purpose app with no processing output in C#?

For the sake of an example, let's say that your app's only task is to rename a file (given as the parameter) to "foo" and then exit.

If I code this as a console app, I'll get a console window that opens during the (however short) execution.

I can also code this as a windows app, but then I'd have to set the main form's .Visible property to false upon start. That doesn't look like the most professional way on how to accomplish this task, apart from the fact that referencing and loading System.Windows.Forms etc is very inefficient if I'm not going to use these libraries anyway.

Then again, if I code this as a windows service, this app can't be started from the command line.

Anyone have any thoughts?

Thanks,
Michal
AnswerRe: How to write a single purpose app with no processing output? Pin
Colin Angus Mackay26-Nov-07 23:56
Colin Angus Mackay26-Nov-07 23:56 
GeneralRe: How to write a single purpose app with no processing output? Pin
michal.kreslik27-Nov-07 0:06
michal.kreslik27-Nov-07 0:06 
GeneralRe: How to write a single purpose app with no processing output? Pin
michal.kreslik27-Nov-07 0:21
michal.kreslik27-Nov-07 0:21 
AnswerRe: How to write a single purpose app with no processing output? Pin
blackjack215027-Nov-07 0:43
blackjack215027-Nov-07 0:43 
Questioncell formatting Pin
arkiboys26-Nov-07 23:35
arkiboys26-Nov-07 23:35 
QuestionError in Master Page Pin
John.L.Ponratnam26-Nov-07 23:28
John.L.Ponratnam26-Nov-07 23:28 
AnswerRe: Error in Master Page Pin
pmarfleet27-Nov-07 1:15
pmarfleet27-Nov-07 1:15 
QuestionHow to implement an own MD5 algorithm Pin
cman8026-Nov-07 23:26
cman8026-Nov-07 23:26 
AnswerRe: How to implement an own MD5 algorithm Pin
Colin Angus Mackay26-Nov-07 23:51
Colin Angus Mackay26-Nov-07 23:51 
AnswerRe: How to implement an own MD5 algorithm [modified] Pin
Anthony Mushrow27-Nov-07 0:11
professionalAnthony Mushrow27-Nov-07 0:11 
AnswerRe: How to implement an own MD5 algorithm Pin
Dave Kreskowiak27-Nov-07 8:53
mveDave Kreskowiak27-Nov-07 8:53 
Questionhelp file Pin
alok217126-Nov-07 23:05
alok217126-Nov-07 23:05 
AnswerRe: help file Pin
Colin Angus Mackay26-Nov-07 23:50
Colin Angus Mackay26-Nov-07 23:50 
QuestionAnybody knows the best hide/change my IP address software? Pin
sivaramireddy p26-Nov-07 23:04
sivaramireddy p26-Nov-07 23:04 
AnswerRe: Anybody knows the best hide/change my IP address software? Pin
Colin Angus Mackay26-Nov-07 23:48
Colin Angus Mackay26-Nov-07 23:48 
AnswerRe: Anybody knows the best hide/change my IP address software? Pin
Dave Kreskowiak27-Nov-07 8:55
mveDave Kreskowiak27-Nov-07 8:55 
Questioncheange background image with setting Pin
sara_136326-Nov-07 22:42
sara_136326-Nov-07 22:42 

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.