Conditional execution of applications in Windows XP
I want to run a program based on condition. For example, I want to launch bitcomet.exe if internet explorer or google chrome does not run automatically. The program should detect if IE or chrome runs; If it is running then start bitcomet.exe else do not begin to bitcomet.exe... Please someone help me with this... Thanking you in anticipation
Learn more about scripts, PowerShell, VB Script, wimic--> http://technet.microsoft.com/en-us/scriptcenter/bb410849
You can use the WMI command-line utility to view the list of running processes.
Suppose you want to check if the process explorer.exe windows runs:String line;
try {}
Process proc is Runtime.getRuntime () .exec ("wmic.exe");.
Entry BufferedReader in = new BufferedReader (new InputStreamReader (proc.getInputStream ()));
OutputStreamWriter oStream = new OutputStreamWriter (proc.getOutputStream ());
oStream .write ("" process where name = 'explorer.exe' ' ");
oStream. flush();
oStream. close();
While ((line = input.readLine ())! = null) {}
System.out.println (Line);
}
Input.Close ();
} catch (IOException ioe) {}
ioe.printStackTrace ();
}See http://ss64.com/nt/wmic.html or http://support.microsoft.com/servicedesks/webcasts/wc072402/listofsampleusage.asp for some examples of what you can get from wmic
Tags: Windows
Similar Questions
-
Screen, screen and application of windows management background
Hello
I am newbie on java and on the development of bb.I find it difficult to understand the screen, screen and how they should be used in an application.
Please don't ' send links to the documentation I've read a lot of this forum, bb pdf guides, articles etc. knowledge base and still don't know how to organize and control the screens of my application.
My application has about 8 windows diferent (or screens): main window, window options, list of items wondows, window detail, window of welcome (on the first run) etc... Currently, I have to start app.java which extends UiApplication, calling either main or windows welcome which extend screen.
1 - How many MainScreens should an app have? 1?
2 - should have a main screen and all others should be screens?
main 3-window and the window between the Options I Don t know how should I do to update the main window after
changing settings in the Options window
4. on the first execution of the Welcome window must be called and will have a "continue" button to call the Options window and after that, it should be called the main window.
Thks in advance!
As a beginner, I think it would be good if you had a book or even a few tutorials, since they usually provide you a load of useful information and fill in a load of blanks. You can find some tutorials here:
http://supportforums.BlackBerry.com/T5/BlackBerry-smartphones-and/CT-p/smartphones
My favorite book is
BlackBerry Java Application Development, beginner's Guide, by Bill Foust.
In any case some answers:
1. as much as you like, screen does not mean only the screen, in this case I think that the principal is used to indicate that it is the screen that is used mostly.
2. no - most of my Applications are actually a combination of MainScreens and PopupScreens.
3 good question and there is no right answer here. Call screen that will follow the on-screen Options, your InitialScreen. So InitialScreen will be making a push for a new Instance of the OptionsScreen. Now he could immediately pop itself the battery display, so it goes. Now when the user leaves your Options screen, your output will be push it another Instance of your InitialScreen. If the new InitialScreen will pick up the last values.
You will find tutorials and books will give you different options.
4. how you navigate between the windows is entirely up to you. do not forget that you push to screen (or screen) on the stack of the display, pop to remove it. You should always have a screen on the stack display or displays a white screen (or the previous content).
Or and the other thing that I would definitely recommend looking at the samples, they push and pop nicely.
Good luck and have fun!
-
Application for Windows OR DAQ are not not in the VS Project Wizard
Hello
I'm new to studio NOR and measurement.
I downloaded the evaluation version and installed the following:
Visual Studio Community edition 2013
niDAQmx 15.0.1
Evaluation of measurement Studio 2015
I have a NI USB-6211 connected and got it in LabView with the niDAQ Wizard.
But in trying to create a new Application of Windows NI DAQ from the Visual Studio wizard, there is no entry for it. I see that:
NEITHER Windows Forms Application
WPF application of ORClass library of NOR.
For c# and VB.
I guess that the Measurement Studio evaluation version is equal to the professional version.
So, how can I create a new Application of Windows NI DAQ in Visual Studio?
Thanks for your suggestions
Kind regards
Crashdog
It seems that the Application of Windows NI DAQ was installed only for .net 4.5.1 and my default has been set at 4.5.
That solves it probably.
See you soon
Crashdog
-
I recently started getting the following message when I start Windows Mail:
The message store has been damaged by an external application to Windows Mail. Windows Mail has been able to successfully recover from this corruption. (0 x 000000000) there are also twop messages in my Inbox "not found" and I can't delete them.
However no identoify not the application Windows and McAfee does not detect any virus.
Try to compact and repair the database.
-
My application get Windows 10 does not work HELP Please
1 - my get app Windows 10 does not work. Whenever I try to run your PC compatibility check it says:
The report is not available now, you can always book your upgrade when it's time to start the upgrade we will run another report to make sure that your PC works with Windows 10
2. when I click on view Confirmation it Says:
YOUR UPGRADE IS RESERVED
There is nothing you need to do now, you will receive a notification on your PC when windows 10 is ready to install.
and it been like this for 4 weeks and nothing happened what should I do to check if the applications on windows 7 runs on windows 10 or not and start the upgrade to windows 10
Please help thanks
Download the media creation tool
Click with the right button on the MediaCreationTool.exe file and then click on run as administrator.
Note: How to check if you are downloaded or installed the update Windows 10 November
How to create an ISO or USB drive.
Select upgrade this PC now and then click Next
or
Task of pre-required
When you make significant changes to your computer for example updated operating system, you must always back up. See the links to resources on the backup by clicking the link for each version of Windows you are using: Windows XP, Windows Vista, Windows 7, Windows 8/8.1
- How to back up and restore your files manually
- How to free up disk space in Windows
- How to: 10 tips before installing Windows 10
- How to: determine if a device application or hardware is compatible with Windows 10
- Will remain the documents and applications, or install app must
then
- How to download official Windows 10 ISO files
- How to: upgrade previous versions of Windows using the file ISO for Windows 10
then
- Turn off (preferably uninstall) your Antivirus utility before you perform the upgrade.
- Reboot several times, and then try again.
- Disable the general USB peripherals (for example - smart card reader).
- If you are using a SCSI drive, make sure you have the drivers available for your storage on a thumdrive device and it is connected. During the installation of Windows 10, click on the advanced custom Option and use the command load driver to load the driver for the SCSI drive. If this does not work and the installer still fails, consider switching to an IDE based hard drive.
- Perform a clean boot, restart, and then try again.
- If you upgrade to the. ISO file, disconnect from the Internet during the installation, if you are connected in LAN (Ethernet) or wireless, disable both, then try to install.
- If you are updated through Windows Update, when download reaches 100% disconnect from the LAN (Ethernet) Internet or Wi - Fi, then proceed with the installation.
- If this does not work, try using the. ISO file to upgrade if possible.
- If you are connected to a domain, go to a local account.
- If you have an external equipment, attached to the machine, unplug them (example, game controllers, USB sticks, external hard drive, printers, peripherals not essential).
-
Original title: Microsoft Fix it diagnosis
I ran Microsoft solve this diagnosis. He gave me a window named csc.exe. Application error, window that says "the application could not start correctly (0xc0000142). Click Ok to close the application. someone knows how to fix this?
Thank you
FOR EXAMPLE
Hello
Thanks for the reply. Until I'm your answer I have restored the laptop to the State of origin, with the possibility of restoring elements that had been added by the user. I'm trying to update windows, etc.. If I get errors or problems I will post them here. Thanks for your detailed response.
Eddie
-
Error 1317 when installing applications on Windows 7 Ultimate
Hello
I get an Error 1317 when you install the application on windows 7 ultimate. Always when the application attempts to create menus. Always the path c:\programData\Microsoft\Windows\Start MenuSome applications if they have a choice to not allow all users on the system to access install ok.
But more recently Adobe reader 9.3 and lighscribe software and graphic editing software all have had this same problem. All these products all say they are versions of windows 7.
I tried to take this path, but it did not help.
Any idea?Hello
Since you've already tried to take ownership of, I suggest you add everyone in the security list and give all permissions for everyone. To do this,
You can follow the steps below and check if it helps.1. When you try to install the program, go to this folder:
C:\ProgramData\Microsoft\Windows\Start Menu
2. right click on the folder and then click Properties.
3. in the Properties window, click on Security tab.
4. now, click Edit , and then click Add.
5. now, type everyone in the box and click OK.
6 then check the full control box.
7. click on apply and then click OK.If you have any software installed on the computer registry cleaning, I suggest you to uninstall the software.
Kind regards
Amal-Microsoft Support.
Visit our Microsoft answers feedback Forum and let us know what you think. -
How to give Admin rights for specific applications in windows 7 Stater
How to give Admin rights for specific applications in windows 7 Stater
I have a problem in Windows 7 Stater PackI do not know where to place the issue or create the question
My problem is that I can give admin access to application specific to Windows 7 stater
in fact I use photon AUNTIE I want to be accessed by a Local user Standard user is not an admin user
Once I click on the icon of Photon to connect it always ask for admin password.
I want to work on a local user without admin password
Please help about this.
Thank you.
Hello
Note: To be logged in as an administrator or enter creditionals administrator account to make changes
Method 1:
The prompt that you get is the setting on your computer user account control. You can change the setting and use them according to your requirements and run programs in the standard account. See the below links for more details-
http://Windows.Microsoft.com/en-us/Windows7/what-is-user-account-control
http://Windows.Microsoft.com/en-us/Windows7/what-are-user-account-control-settings
WARNING: User Account Control (UAC) can help you to prevent your computer from unauthorized changes. It works by asking permission when a task requires administrative rights, such as installing software or changing settings affecting other users. We do not recommend disable user account control. If you turn it off, you must reactivate as soon as possible.
Method 2:
You can even use the steps below and check-
1. right click on the program file , click on Properties.
2. now click on compatibility and select run the program as administrator.
3. now click on change settings for all users and click ok. Now, check to see if the problem resolves.
I hope this helps. Let us know the results
It may be useful
-
Problems to test one of our applications on Windows RCx64 and Office 2003.
original title: incompatibility of ODBC architectureOur current production systems run Windows XP SP2 and Office 2002/2003. We have a few applications that require MDAC 2.8 (03.85.117 ODBC driver Version) and connect to our backend SQL 2000 SP4 on Windows 2003 Server Enterprise. We started in our Windows RC x 64 testgroup / Office 2003 and came to a problem with the following message appears when you try to use one of our applications (MicroEdge GIFTS 6.1). I'm going to guess it's more a problem with the client application then Windows 7, but I want to make sure I cover my bases. ;-) So it's the mistake;
Error occurred while opening database
Technical Support News:
[DatabaseOpen] Error #-2147467259
[Microsoft] [ODBC driver manager] The specified DSN contains a
incompatibility of architecture between the driver and the ApplicationSeems fairly simple to solve, but alas, low version attempts have failed. Windows 7 has a version 06.01.7100 driver. I was wondering if anyone encountered a similar problem and if so you did reslove with magic, a stroke of luck or pure genius.
SHUX
Delete the odbc connection, you have created with the Data Sources (ODBC) administration tool and implemented by using the 32-bit ODBC connection manager.
c:\windows\sysWOW64\odbcad32.exe
It worked for me
Gary Knigge -
I have a Toshiba Satellite C655-S5305 application, running Windows 7. I made a few cds of music there are chandeliers and that they will not play on this computer. They do not play on my computer of husbands, good girls. I think that they are MP3. My cd drive is appearing and showing to work properly, but just read it as a blank CD. To go with this... I am a legal transcriptionist and use a program called FTR player. I downloaded some MP3 audio files and who won't play in my FTR player either, so I think it has something to do with. MP3 files, in the form of .wav files play in my FTR player very well. Any help would be greatly appreciated. Thank you in advance, Jodi
Red flag. CCcleaner. If you used to "clean" your registry database, which can cause problems. CCcleaner is also a good program, but registry cleaners do not help and remove what they think are "unused" entries in the registry that can cause problems later.
Try to download the Real Player and see if that corrects your problem, but if it is not, you may need to restore your computer to the factory settings by your user guide's instructions.
When you got your system back as you, I invite you to buy an external hard drive, and a good backup 3rd party program. You can configure it to automatically do everything in time and frequency of your choice. External hard drives 1 TB are about $85 these days and a very good FREE backup program corresponds to the Easeus todo backup free of charge that you can download from
http://www.todo-backup.com/products/home/free-backup-software.htm . Who can make you save a lot of time and frustration, the next time something like this happens. Sooner or later, it happens to all computers for one reason or another.
Good luck.
-
I tried to download the Microsoft (taken from the Microsoft site) Security Scanner after having pursued despite the warning - not a generally downloaded file...-still the file will not work because according to the next mesg "msert.exe is not a 32 application valid windows. What I am doing wrong?
Without doubt, you have reason to believe that your PC is infected?
If you clean the start-up of the PC you are then able to install from
http://www.Microsoft.com/security/scanner/en-us/default.aspx
-
How to select multiple messages in the messaging application in Windows RT?
How to select multiple messages in the messaging application in Windows RT?
For contact:
1) press the first mail
(2) then drag the 2nd mail left or right a little bit.
Repeat 2) for all other mails you want to select. You can use the same way to deselect.
For the mouse:
Use the ctrl and shift keys, like the Windows desktop version
I don't know if there is a way to make the selection of the beach of 'shift' by touch only.
-
Are there possible ways to check the use of database applications on windows 8?
Original title: use of data
Are there possible ways to check the use of database applications on windows 8?
SB
If by data use you mean internet is used by desktop applications, you must install a 3rd party like net limiter tool.
-
Cannot add attachments in the mail application in windows 8
Hi, I'm very annoyed since 1 month who can't use the mail application in windows 8 pc. There are many questions that deal with windows products, what is this bloody * windows applications. For each new number one month will be triggered. Here are the following questions do deal with... Please inform me the exact date when they will be fixed. 1. I cannot add the attachment in a mail to the Mail app in my windows PC 8. When I click on "join" link it does not show the popup to select files... 2. I can't see online contacts in messenger app in my windows PC 8. When I click "+" button in messenger app, nothing appears. 3 in all new message is received, if clicked on mail desktop app notification opens properly, but in what is highlighting and displaying recent messages not new messages... When this issue is raised in direct support of Microsoft, support members will be just suggest to raise this issue in the forum. but it is of no use. What are all these questions... you publish patches with tested or not? Kindly update the date when they are fixed... Best regards, Surya
Hi Renon,
Root cause found for this problem.Actually, it was due to some changes in the key of register, found a solution with the information in the windows forum. Now, it has been resolved.Thank you for your answers and advice in the windows forum.Kind regardsSurya -
I am still getting error 0x80073cf9 when trying to update windows store applications in windows 8. in particular applications of microsoft Corp. (travel, weather, bing news, sport...)
How can I solve this problem? Help, please.
Check if you have the C:\windows\AUinstallAgent file on time is the most likely the cause of your problem all this register * will not help recreate the directory if missing takes 10 seconds and no technical support
Maybe you are looking for
-
After updating to 38.1.0 Tbird will download is more emails from my two gmail accounts. I have another e-mail account that works very well. When I look at the error console I see "TypeError: tab is undefined chrome://messenger/content/tabmail.» XML"I
-
I created an album shared in iCloud and populated with photos after I had entered to be detailed for each of them. My guests of the shared album can't see data description. I can see it only when I use the Photos on a Mac app and do not see it if I
-
Output of color by the numbers
Hi, I have problems printing with numbers I created a color scheme and it is gorgeous on screen but when I print out it print it different what Miss me? What do I do? Help, please!
-
I want reliable simple tips to decrease the turn of my computer out of time?
Recently, my computer began to take a lot of time to turn off. I use Windows XP Home Edition, including at - it advice to reduce this time?
-
I forgot the password of the only administrator account on Vista
I forgot the password for the administrator account only on Vista and the hidden administrator account does not appear in safe mode. What are my options?