473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Kill process while save or save as

Hi,

I am working in an application (VB 2005) that has a listview of all running processes and hastheability to close (kill) any active process.
So far, I have been able to kill any process at will that do not requiere further intervention such as iexploere single tabbed and any application that does not requiere "save or save as" using:

For Each instance In myProcess
Next
instance.CloseMainWindow()

My question is, is there any posible way to either bypass the "save" , "save as" or "'cancel" dialog window as well as close all tabs in ieplorer and Firefox or especified to save or save as the file to a temp folder?

An example, when closing up notepad after a new document has been initiated, when trying to close it by the above method will prompt me with this scenario.

Any assistance will be greatly appreciated

Thanks
Eddie
Mar 27 '07 #1
2 1791
channaJ
67
Hi,

I am working in an application (VB 2005) that has a listview of all running processes and hastheability to close (kill) any active process.
So far, I have been able to kill any process at will that do not requiere further intervention such as iexploere single tabbed and any application that does not requiere "save or save as" using:

For Each instance In myProcess
Next
instance.CloseMainWindow()

My question is, is there any posible way to either bypass the "save" , "save as" or "'cancel" dialog window as well as close all tabs in ieplorer and Firefox or especified to save or save as the file to a temp folder?

An example, when closing up notepad after a new document has been initiated, when trying to close it by the above method will prompt me with this scenario.

Any assistance will be greatly appreciated

Thanks
Eddie
Why don't you try Kill() method instead of CloseMainWindow()
That is in your case.

Expand|Select|Wrap|Line Numbers
  1. instance.Kill();
Mar 28 '07 #2
You are right, thanks for the reply. I could have swear I tried that before and did not work.
Newbie honest mistake!

Thanks again,
Eddie
Mar 29 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Bob Swerdlow | last post by:
My application starts up a number of processes for various purposes using: self.popen = popen2.Popen3("/usr/local/bin/python -O "myscript.py") and then shuts them down when appropriate with...
10
by: Fred | last post by:
There is a setting in INIT.ORA that has the unintended side-effect of making sure the ALTER SYSTEM KILL SESSION command has immediate affect. Without this setting, I've seen some instances where...
3
by: pattanawadee | last post by:
Deall All, Could anybody suggestion me How to kill all inherrit processes (sibling child,previous and parent process) in the case I know only child process id and user id, For example I strart...
6
by: Matthew Wieder | last post by:
What permissions must a user have to be able to succesffuly execute a Process.Kill? I can run it with Admin privleges but not with regular user priveleges - I get an "Access is Denied." The...
2
by: touf | last post by:
Hi, I use the folowing code to create a new Excel file using a query It creates an excel file and save it on the disc, but When I double-clic on it (explorer) it open Excel and bloc,(don't display...
0
by: WATYF | last post by:
This is my problem... I have some code that starts a Process and returns it to a variable... (prcBat) At any time while that process is running... I want to be able to Kill it by pressing a...
5
by: Dino Buljubasic | last post by:
My application can allow a user to open a file for viewing by fetching file data from database, creating the file in a temp directory and starting appropriate process (i.e. Adobe or any other...
2
by: ChrisFrohlich | last post by:
I have been trying to use the Office PIA's to write an ASP.NEt page to: 1. Open a template workbook 2. Populate some data 3. Save the file back to the server 4. Quit Excel and free up Memory I...
4
by: Richard Rossel | last post by:
Hi Fellows, I have a problem with process termination. I have a python code that apache runs through a django interface. The code is very simple, first, it creates a process with the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.