Audiosoft Forums Last active: Never
Not logged in [Login - Register]
Go To Bottom

Printable Version | Subscribe | Add to Favourites   Post new thread Poll:
Author: Subject: potential problems using ejukebox in my car project
paradoxni
Junior Member
**




Posts: 16
Registered: 6-17-2004
Member Is Offline

posted on 7-13-2004 at 08:37 AM Edit Post Reply With Quote
potential problems using ejukebox in my car project

Im planning on an in-car pc and touchscreen system for playing music etc. Now my ultimate plan was to use ejukebox as it is amazing! however whilt planning my system I have come across some problems which may mean I have to abandon the ejukebox idea :( :( :(

Basically the in-car pc is powered using the car battery with a power regulator which detects igntion etc. and starts up and shuts down the pc as needed. When the car ignition is turned off the pc is sent a signal to begin shutdown, power remains on to the system for a set time (e.g. 30 secs, 1min etc.) to enable windows to shutdown properly before power is removed from the PC.

The problem I see is that sometimes ejukebox remains as a running process even after closure, sometimes running for several mins or more, therefore windows will not shutdown in the required time and the PC will be shut down hard by removal of the power. Im guessing this is likely to corrupt my ejukebox database. Is ther any way round this problem? is it possible to stop ejukebox from running as a process after closing it?
View User's Profile View All Posts By User U2U Member
steve_f
Junior Member
**




Posts: 50
Registered: 6-1-2004
Member Is Offline

posted on 7-13-2004 at 12:56 PM Edit Post Reply With Quote
why not have the system hibernate instead?
View User's Profile View All Posts By User U2U Member
sidartha
Junior Member
**




Posts: 19
Registered: 5-19-2003
Member Is Offline

posted on 7-13-2004 at 04:35 PM Edit Post Reply With Quote
Windows 2k and XP (maybe others?) have a command line program called task kill... You can run it like this from a batch file or DOS shortcut: taskkill /IM ejukebox.exe.

Anyone see any problems in doing this to ejukebox?


Here is some documentation on the app.



Description
The ability to perform tasks from a system's command line allows those tasks to be used in batch files. This recipe describes several uses of taskkill to terminate Windows processes.


Directions
If you know the name of a process to kill, for example notepad.exe, use the following command from a command prompt to end it:


taskkill /IM notepad.exe

This will cause the program to terminate gracefully, asking for confirmation if there are unsaved changes. To forcefully kill the same process, add the /F option to the command line. Be careful with the /F option as it will terminate all matching processes without confirmation.

To kill a single instance of a process, specify its process id (PID). For example, if the desired process has a PID of 827, use the following command to kill it:


taskkill /PID 827

Using filters, a variety of different patterns can be used to specify the processes to kill. For example, the following filter syntax will forcefully kill all processes owned by the user Quinn:


taskkill /F /FI "USERNAME eq Quinn"

The following table shows the available filters and their use.


Filter Name Valid Operators Valid Value(s)
----------- --------------- --------------
STATUS eq ne RUNNING | NOT RESPONDING
IMAGENAME eq ne Image name
PID eq ne gt lt ge le PID value
SESSION eq ne gt lt ge le Session number.
CPUTIME eq ne gt lt ge le CPU time in the format
of hh:mm:ss.
MEMUSAGE eq ne gt lt ge le Memory usage in KB
USERNAME eq ne User name in [domain]user
format
MODULES eq ne DLL name
SERVICES eq ne Service name
WINDOWTITLE eq ne Window title

eq: equals ne: not equal
gt: greater than lt: less than
gt: greater than or equal le: less than or equal
View User's Profile View All Posts By User U2U Member
Post new thread Poll:

Go To Top

Audiosoft Home | Download EJukebox for Windows | Register EJukebox
©2019 Audiosoft Network. All rights reserved.
[queries: 16]
HTML5 Color Picker for CSS Opacity
Short Url Service with Stats