How can i load a program autimatically when windows loaded
-
i programmed a program and i want it to be loaded autimatically when windows load. how can i do it in C# ?
-
i programmed a program and i want it to be loaded autimatically when windows load. how can i do it in C# ?
-
i programmed a program and i want it to be loaded autimatically when windows load. how can i do it in C# ?
This has nothing to do with C#. There are two Startups. When Windows load, you would have to write your app as a windows service. Or, when the user logs in, you can put a shortcut in either of the Startup folders, or the command line in the Run key in the registry.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
This has nothing to do with C#. There are two Startups. When Windows load, you would have to write your app as a windows service. Or, when the user logs in, you can put a shortcut in either of the Startup folders, or the command line in the Run key in the registry.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007I tried what u said and i got that the directory of the StartUp folder exist in Application.StartUp;
String dir = Application.StartUp;
but how can i store the shortcut of the program or how i build an *.job file? -
I tried what u said and i got that the directory of the StartUp folder exist in Application.StartUp;
String dir = Application.StartUp;
but how can i store the shortcut of the program or how i build an *.job file?I've never heard of a "job" file. Nothing in Windows ever uses one. To create a shortcut is very easy. click and hold the mouse of your .EXE file and drag it away, while holding the Ctrl key down. Notice the little black arrow in one corner if the icon? Let go of the mouse and you've created a shortcut to that .EXE.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
I've never heard of a "job" file. Nothing in Windows ever uses one. To create a shortcut is very easy. click and hold the mouse of your .EXE file and drag it away, while holding the Ctrl key down. Notice the little black arrow in one corner if the icon? Let go of the mouse and you've created a shortcut to that .EXE.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007i know how to use it menually. but how can i do it by C#. i mean how can i create a shortCut by C#? but if you entered to the StartUp directory, there is a *.job files. these files containing a details which relevant to activating the program, when and where.....:(
-
i know how to use it menually. but how can i do it by C#. i mean how can i create a shortCut by C#? but if you entered to the StartUp directory, there is a *.job files. these files containing a details which relevant to activating the program, when and where.....:(
-
Job files are used by the scheduler, they are for running a program at a set date and time. As for creating a shortcut, yet again google provides the answer: http://www.google.co.uk/search?hl=en&q=create+shortcut+c%23&meta=[^]
:-D Beat me to it!
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
:-D Beat me to it!
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007