Click here to Skip to main content
15,913,758 members
Home / Discussions / C#
   

C#

 
AnswerRe: Copying the current executing program to destination Pin
Douglas Troy23-May-09 8:10
Douglas Troy23-May-09 8:10 
GeneralRe: Copying the current executing program to destination Pin
Rajdeep.NET is BACK23-May-09 17:20
Rajdeep.NET is BACK23-May-09 17:20 
AnswerRe: Copying the current executing program to destination Pin
DaveyM6923-May-09 8:42
professionalDaveyM6923-May-09 8:42 
GeneralRe: Copying the current executing program to destination Pin
Rajdeep.NET is BACK23-May-09 17:10
Rajdeep.NET is BACK23-May-09 17:10 
GeneralRe: Copying the current executing program to destination Pin
Dave Kreskowiak23-May-09 17:26
mveDave Kreskowiak23-May-09 17:26 
GeneralRe: Copying the current executing program to destination Pin
DaveyM6923-May-09 22:58
professionalDaveyM6923-May-09 22:58 
GeneralRe: Copying the current executing program to destination Pin
Rajdeep.NET is BACK24-May-09 0:04
Rajdeep.NET is BACK24-May-09 0:04 
GeneralRe: Copying the current executing program to destination Pin
DaveyM6924-May-09 0:45
professionalDaveyM6924-May-09 0:45 
I sincerely hope you're not writing anything 'nasty'. The path will not change while the program is running so this is a one time check, you can store the result in a static variable if needed.

Instead of sleeping, better to use a Timer and run the File.Copy when needed in a Tick or Elapsed event handler (depending on what type of Timer you use). If the Copy takes longer than the Interval of the Timer you will run into serious problems so set that property very carefuly and include some checking.

Why do you need to do this by the way? Before offering you any more help, I'd like to be sure of your intentions.

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

AnswerRe: Copying the current executing program to destination Pin
fly90423-May-09 11:00
fly90423-May-09 11:00 
GeneralRe: Copying the current executing program to destination Pin
Rajdeep.NET is BACK23-May-09 16:44
Rajdeep.NET is BACK23-May-09 16:44 
GeneralRe: Copying the current executing program to destination Pin
Dave Kreskowiak23-May-09 17:27
mveDave Kreskowiak23-May-09 17:27 
GeneralRe: Copying the current executing program to destination Pin
fly90424-May-09 0:10
fly90424-May-09 0:10 
QuestionConversion of visio files(.vsd) to .pdf files Pin
NarVish23-May-09 6:42
NarVish23-May-09 6:42 
AnswerRe: Conversion of visio files(.vsd) to .pdf files Pin
Douglas Troy23-May-09 7:09
Douglas Troy23-May-09 7:09 
QuestionDisplaying the output of a console application in a windows form. Pin
neoflame23-May-09 4:48
neoflame23-May-09 4:48 
AnswerRe: Displaying the output of a console application in a windows form. Pin
Luc Pattyn23-May-09 5:06
sitebuilderLuc Pattyn23-May-09 5:06 
GeneralRe: Displaying the output of a console application in a windows form. Pin
neoflame23-May-09 5:56
neoflame23-May-09 5:56 
GeneralRe: Displaying the output of a console application in a windows form. Pin
Luc Pattyn23-May-09 6:02
sitebuilderLuc Pattyn23-May-09 6:02 
AnswerRe: Displaying the output of a console application in a windows form. Pin
Luc Pattyn23-May-09 6:06
sitebuilderLuc Pattyn23-May-09 6:06 
GeneralRe: Displaying the output of a console application in a windows form. Pin
neoflame23-May-09 10:11
neoflame23-May-09 10:11 
GeneralRe: Displaying the output of a console application in a windows form. Pin
Luc Pattyn23-May-09 10:19
sitebuilderLuc Pattyn23-May-09 10:19 
GeneralRe: Displaying the output of a console application in a windows form. Pin
neoflame23-May-09 11:04
neoflame23-May-09 11:04 
AnswerRe: Displaying the output of a console application in a windows form. Pin
Luc Pattyn23-May-09 11:25
sitebuilderLuc Pattyn23-May-09 11:25 
GeneralRe: Displaying the output of a console application in a windows form. Pin
neoflame23-May-09 11:32
neoflame23-May-09 11:32 
GeneralRe: Displaying the output of a console application in a windows form. Pin
Luc Pattyn23-May-09 11:37
sitebuilderLuc Pattyn23-May-09 11:37 

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.