|
hi,
Let me apologise for the delayed response.
I tried the last resort what u gave but in vain. Nevertheless I found out one thing, I really dont know whether its going to help me or us in anyway. WHat I noticed is when I gave the at command without any options then it worked. But when I tried to give options then it is not working. Firstly the command what I gave which worked is "At 7:00pm CMD /C "Shutdown.exe /L /Y /C /R"".
Secondly when I tried to add options such as "/every:we" then I cant get it work. So this is the present scenario at my end. Anything missing from my end?
Any new suggestions?
I dont know if the above information is anyway useful to u or not?
Just wanted to share my thoughts with u. Cos u have been sincerely trying to help me out.
SAI
|
|
|
|
|
hi there again,
I got it worked. I just was lazy to check whether it worked with "/Every:M,T,W,T,F,S". Now it is working fine with the given options. Earlier I gave the "/Every:Mo,Tu,We.." So it didnt work.
But whats surprising is that why it doesnt workout with "Start /DC:\Program Files\rksupport\Shutdown.exe /L /Y /C".
Now can u help me how to write a script and execute it? I want to send all the users connected a message 10 minutes and 5 min before shutting down the server.
SAI
|
|
|
|
|
Hi all,
I have a servive that laucnh a third party program. When the system shuts
down, I try to use my service control handler to process the
SERVICE_CONTROL_SHUTDOWN request from the system for terminating the
launched program (by using TerminateProcess func), but it doesn't work and
the system pop up some message that says "OleMainTreadWndName cannot respond
to End Task Request". It seems the third party program gets hang! I then try
to use SetConsoleCtrlHandler() to setup a handler routine to catch the
CTRL_SHUTDOWN_EVENT and terminate the process a bit ealier than the
SERVICE_CONTROL_SHUTDOWN request, but it doesn't work either. Now I try to
add up the CTRL_LOGOFF_EVENT and terminate the process at this event, then
there is no error message shows up. It seems to me that I need to terminate
the process ealier, at the time my service receive the CTRL_LOGOFF_EVENT.
But the problem is, if user just log off, but not shut down the system, the
process gets terminated! Anyone know some way so that at the time I receive
the CTRL_LOGOFF_EVENT, I also know whether the system is going to shut down
or not?
Thank you for your help,
Rocky Lee
|
|
|
|
|
What kind of a third party program is it?
I haven't tried this, how about posting a message to the third party program using "PostMessage(...)" with the WM_QUIT parameter when you get the shutdown message from the SCM?
|
|
|
|
|
Hello,
I'd like to replace the default Windows 95/98 logon dialog.
Any help is welcome
best regards,
greg
|
|
|
|
|
Windows uses 3 bitmap files which are named as Logo.sys, logow.sys and logos.sys with a resolution of 320x400. Replace these files with ur files but with resolutiion
|
|
|
|
|
Windows uses 3 bitmap files which are named as Logo.sys, logow.sys and logos.sys with a resolution of 320x400. Replace these files with ur files but with resolutiion
|
|
|
|
|
Windows uses 3 bitmap files which are named as Logo.sys, logow.sys and logos.sys with a resolution of 320x400. Replace these files with ur files but with resolutiion
|
|
|
|
|
Is it possible to get the current CPU load/usage just as in the TaskManager ?
|
|
|
|
|
In regsistry there is a hidden branch - hkey_perfomance_data. Just read key values from it
|
|
|
|
|
Thanx. But how do you read/view hidden keys ?
|
|
|
|
|
Try sth like this below:
HKEY hKey = 0;
TCHAR vendorData [64];
DWORD data = 0;
DWORD dataSize = 0;
LONG result = ::RegOpenKeyEx(HKEY_LOCAL_MACHINE,
_T("Hardware\\Description\\System\\CentralProcessor\\0"), 0, KEY_QUERY_VALUE, &hKey);
if(result == ERROR_SUCCESS)
{
//get Mhz:
result = ::RegQueryValueEx(hKey, _T("~MHz"), NULL, NULL,(LPBYTE)&data, &dataSize);
if(result == ERROR_SUCCESS)
PROCESSOR IS data MHZ
else
IT IS UNKNOWN (fe: W9X)
//get the vendor data:
dataSize = sizeof (vendorData);
result = ::RegQueryValueEx(hKey, _T("VendorIdentifier"), NULL, NULL, (LPBYTE)vendorData, &dataSize);
}
RegCloseKey (hKey);
The above code works for me, but only on NT systems.
|
|
|
|
|
Where Can I Find this Windows Version for download (the Release version)
on a web site or a good no RATIO FTP site, PLZ !
BLaZe
ICQ # 110244345
email : mpblaze@iquebec.com
|
|
|
|
|
Hi,
I am working with an application that has to run 24x7. I would like to be able to monitor system resources within the applicatin so that I can signal it to shut down if resource levels become critical. I have had a look at things like WMI etc but am unsure as to how to go about this. Any tips would be much appreciated.
Bruce
|
|
|
|
|
24x7? On Windows ME? You must be kidding
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
You should be able to get system information with (I think...) GetSystemInfo(...). There are also calls to get resource information etc.
There was an article I read somewhere about someone using Windows 98 in a 24x7 configuration. If only I knew where I read it. It is going to take a fair number of 24 hour days to make sure that the system is stable to last a few 24 hour days. The author of the article went through about 4 different hardware combinations before he managed to get stable drivers for his system.
I did a project in the past with Windows 98 and it would last about a week before needing to be restarted. Fortunately it just hung and the UI froze so our customers would simply restart their PC when it happened.
"Harland Pepper, would you stop naming nuts" - Harland Pepper
|
|
|
|
|
I admit this is a shameless plug for my product.
Check out MemWatcher at www.matrixsoftware.com. It may help your Win9x machine run longer without running out of resources. I use it to keep my 98 PC running for days without rebooting. Of course, you may be better off running NT/2K.
In all fairness, there's a competing product called MemTurbo (wwwmemturbo.com), but I find mine more useful and somewhat easier to use. I'm about to release a new version (free to existing users) in a few days.
Thanks,
/ravi
|
|
|
|
|
24 x 7 on a Win9x (that includes WinMe) is a non starter. There is an internal
timer that rolls around on day 49. When this happens the box freezes.
The resource limit on Win9x is 2GB, so if you have any sort of systematic leak
of handles or related resources, you will hit that hard limit sooner or later.
I'd recommend doing this work on WinNT.
Stephen Kellett
--
C++/Java/Win NT/Unix variants
Memory leaks/corruptions/performance/system problems. UK based.
Problems with RSI/WRULD? Contact me for advice.
|
|
|
|
|
Doh! Did I write 2GB, I think I meant 2MB.
Stephen Kellett
--
C++/Java/Win NT/Unix variants
Memory leaks/corruptions/performance/system problems. UK based.
Problems with RSI/WRULD? Contact me for advice.
|
|
|
|
|
For some resean ,I need CASL compipler.
Please send it to me if you are not busy.
Thank you at first.
My Email is : risking@21cn.com
I am so foolish
So don't laugh at me
|
|
|
|
|
Is there a possibility to measure the CPU time of a C++ program part under Windows NT, similar to exploiting the processing report files in the directory /proc under Solaris?
Thanks!
|
|
|
|
|
Check out the PDH functions in the Platform SDK under Base Services\Performance Monitoring.
--Mike--
http://home.inreach.com/mdunn/
The Signature, back by popular demand: Buffy. Pajamas.
|
|
|
|
|
|
Take a look at GetThreadTime() and GetProcessTime() API calls ( they are NT-only).
"Harland Pepper, would you stop naming nuts" - Harland Pepper
|
|
|
|
|
I have an application that is scheduled to run on the Windows Scheduler. It has been doing a good job running on NT 4.0 Server with all the SPs.
The story on Windows 2000 Server is slightly different. Sometimes it works. Sometimes it runs and at the end of the application it crashes, and sometimes it runs and then hangs at the end (as in it shows as running on the scheduled tasks forever even after it has done its job).
The application is quite simple in itself. It takes some input parameters from the commandline and then based on the command line in creates one of three COM objects that do some stuff.
in order to try and catch the problem I ended up installing VC++ 6.0 on one of the 2000 servers. Voila! The problem vanished. I obviously cannot go about installing VC++ on all of my servers.
Any clues?
Thanks
|
|
|
|