Click here to Skip to main content
15,920,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Netware Purge command Pin
Dave Kreskowiak24-Nov-04 1:37
mveDave Kreskowiak24-Nov-04 1:37 
GeneralRe: Netware Purge command Pin
Ranoush26-Nov-04 19:53
Ranoush26-Nov-04 19:53 
GeneralRe: Netware Purge command Pin
Dave Kreskowiak27-Nov-04 1:37
mveDave Kreskowiak27-Nov-04 1:37 
QuestionSilent installation? Pin
charleslau285523-Nov-04 20:44
charleslau285523-Nov-04 20:44 
AnswerRe: Silent installation? Pin
Ranoush23-Nov-04 21:26
Ranoush23-Nov-04 21:26 
GeneralRe: Silent installation? Pin
Anonymous24-Nov-04 16:12
Anonymous24-Nov-04 16:12 
GeneralPrinting through Windows Service Pin
Aqeel Baig23-Nov-04 20:40
Aqeel Baig23-Nov-04 20:40 
GeneralRe: Printing through Windows Service Pin
Dave Kreskowiak24-Nov-04 1:35
mveDave Kreskowiak24-Nov-04 1:35 
GeneralClass Object Initialization Timing Issue from ActiveX Server (EXE Server) in VB Pin
Steve Pullan23-Nov-04 13:51
Steve Pullan23-Nov-04 13:51 
GeneralSending mouse click signals Pin
Rylogy23-Nov-04 12:24
Rylogy23-Nov-04 12:24 
GeneralRe: Sending mouse click signals Pin
Purple Monk23-Nov-04 22:24
Purple Monk23-Nov-04 22:24 
Generalfill combo box with table items Pin
jlawren723-Nov-04 12:19
jlawren723-Nov-04 12:19 
GeneralRe: fill combo box with table items Pin
Pablo.ar24-Nov-04 2:56
Pablo.ar24-Nov-04 2:56 
GeneralRe: fill combo box with table items Pin
jlawren724-Nov-04 4:40
jlawren724-Nov-04 4:40 
GeneralRe: fill combo box with table items Pin
ccotton33324-Nov-04 6:51
ccotton33324-Nov-04 6:51 
Generalvb.net, textbox connected with database Pin
Member 149603823-Nov-04 8:32
Member 149603823-Nov-04 8:32 
GeneralRe: vb.net, textbox connected with database Pin
jlawren723-Nov-04 12:36
jlawren723-Nov-04 12:36 
GeneralRe: vb.net, textbox connected with database Pin
Anonymous2-Dec-04 14:28
Anonymous2-Dec-04 14:28 
GeneralRe: vb.net, textbox connected with database Pin
Member 14960382-Dec-04 14:31
Member 14960382-Dec-04 14:31 
GeneralIssue with Keyboard Handling Pin
rascalot23-Nov-04 5:31
rascalot23-Nov-04 5:31 
GeneralListview Pin
Paps223-Nov-04 4:44
Paps223-Nov-04 4:44 
GeneralRe: Listview Pin
Pablo.ar24-Nov-04 3:02
Pablo.ar24-Nov-04 3:02 
GeneralProcesses Pin
cwayman23-Nov-04 3:13
cwayman23-Nov-04 3:13 
Hey,

Is there a way to check if an application is running in the Task Manager? and if it is kill it before starting my own custom process?

I have the following function which sends a file to a printer but it opens up the application (e.g. MS Word) and sends the print command before closing it again.

Private Sub SendFileToPrinter()

     Dim startinfo As New ProcessStartInfo
     startinfo.FileName = strFullFilePath

     startinfo.Verb = "print"
     startinfo.WindowStyle = ProcessWindowStyle.Hidden

     Process.Start(startinfo)

 End Sub


The problem is that sometimes it doesnt exit the application fully and it is still running in the background.

Is the a way to get the location of the application .exe file that is running from the MIME type of the file, and then close it?

thanks for your help

Chris
GeneralRe: Processes Pin
Carlos Cruz Espino24-Jan-05 11:41
Carlos Cruz Espino24-Jan-05 11:41 
GeneralHTTP Upload Pin
Purple Monk23-Nov-04 2:46
Purple Monk23-Nov-04 2:46 

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.