| | |
Closing a process
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2009
Posts: 2
Reputation:
Solved Threads: 0
How would i close the file then ... I am writing a program to run different powerpoint show depending on the time of day. I want to be able to close 1.pps when its time for 2.pps to run. hope this makes sense!
The idea is to wrap a for loop around the if statment and get it to keep checking what the time is and run the correct pps
C# Syntax (Toggle Plain Text)
if (time.Hour >= 9 && time.Hour < 12) { Process.Start(@"C:\1.pps"); } else if (time.Hour >= 12 && time.Hour < 15) { Process.Start(@"C:\2.pps");
The idea is to wrap a for loop around the if statment and get it to keep checking what the time is and run the correct pps
•
•
Join Date: Apr 2007
Posts: 103
Reputation:
Solved Threads: 17
c# Syntax (Toggle Plain Text)
System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo = new System.Diagnostics.ProcessStartInfo("asdf.exe"); proc.Start(); proc.Close();
Last edited by mariocatch; Aug 14th, 2009 at 11:27 am.
![]() |
Similar Threads
- Detect browser window closing event in Firefox - (JavaScript / DHTML / AJAX)
- open new ie window ina new process (JavaScript / DHTML / AJAX)
- Changed event in fileSystemWatcher (C++)
- Print PDF files using VB 2005 (VB.NET)
- I can only access https websites! (Networking Hardware Configuration)
- how to get the process id for a newly created process using jni (Java)
- how to call command window with VB.NET programme (VB.NET)
- Process.processName (VB.NET)
- Trojan Mitglieder.BO virus (Viruses, Spyware and other Nasties)
Other Threads in the C# Forum
- Previous Thread: Delete an excel row
- Next Thread: SqlBulkCopyColumnMapping NULL values
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





