Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Scheduler
 

Scheduler

Hi All,

I need your help,

I am creating an applicaiton - File Scheduler

Which opens a file on perticular time in Full Screen (Maximize) Mode.

File canbe ofany extension. like (PPS, SWF, AVI, etc...).

i am confuse while opening a file. How can i open a file from my C# Application.??? with assiociate software.

with fulll screen mode....

please help me for solving this.

Thanks

Hemant

Hemant_shah  Thursday, August 23, 2007 6:18 PM

Hi Hemant,

Based on my understanding, you want open any file with associated software in full screen model, right? If so, I think the System.Diagnostics.Process Class will help you achieve this. This class provides access to local and remote processes and enables you to start and stop local system processes. Try the following code:

Code Snippet

Process p = new Process();

ProcessStartInfo info = new ProcessStartInfo(@"D:\01.gif");//change to you file path

info.WindowStyle = ProcessWindowStyle.Maximized;

p.StartInfo = info;

p.Start();

Hope this helps.
Best regards.

Rong-Chun Zhang  Wednesday, August 29, 2007 2:22 AM
Hi Santosh.

If the problem is just about the schedule; try to use the task schedule from Windows SO.
I have the same situation at the company that I work for. And it works fine for me Smile

Vagner Santos

DotNetCon  Saturday, December 29, 2007 7:47 PM

Hi Hemant,

Based on my understanding, you want open any file with associated software in full screen model, right? If so, I think the System.Diagnostics.Process Class will help you achieve this. This class provides access to local and remote processes and enables you to start and stop local system processes. Try the following code:

Code Snippet

Process p = new Process();

ProcessStartInfo info = new ProcessStartInfo(@"D:\01.gif");//change to you file path

info.WindowStyle = ProcessWindowStyle.Maximized;

p.StartInfo = info;

p.Start();

Hope this helps.
Best regards.

Rong-Chun Zhang  Wednesday, August 29, 2007 2:22 AM

Hi Rong,

I would like to schedule my service. The exact question is :

I want my windows application to run automatically each day at 1pm. This application should be automatically triggered....daily....so can you give me some idea in doing this ..............

Santosh5  Friday, December 28, 2007 4:55 PM
Hi Santosh.

If the problem is just about the schedule; try to use the task schedule from Windows SO.
I have the same situation at the company that I work for. And it works fine for me Smile

Vagner Santos

DotNetCon  Saturday, December 29, 2007 7:47 PM

Hey,

I want it to be done programatically. I want to write a service. I dont want to use OS Scheduler.

thanks

santosh

Santosh5  Thursday, January 03, 2008 8:19 PM

In terms of building blocks I would use a timer set to fire every second and then iterate though some kind of list with datetimes and the related action.Maybe there are other more refined ways of doing this (like setting up an arraylist of structs, each one holding a timer and and a file to open, and the timer's interval set to the nest time this file will open...?), but that's a pretty straightforward and simple way to accomplish this.

/Urban

cuj74  Tuesday, February 12, 2008 11:05 AM

You can use google to search for other answers

Custom Search

More Threads

• How to get the directory (folder) on which user has done right click
• Some sort of class error
• How to get control value from one project to other project
• Terrarium Setup Help
• Pocket PC Client and accessing the server version on GotDotNet
• IssueVision:Why I can't sign in?
• Server Not Responding Work Around
• Using Managed SPY++ techniques for MenuClick
• CType(resources.GetObject(), Boolean) in Windows generated code
• Problem with Concurrency Checking