|
C:\>at xx:xxpm /every:th cmd /c "Start /dC;\Progr~1\rksupport Shutdown.exe /L /Y /C"
**********
are you sure ??? is this bad typing on your or my part - isnt it supposed to be
... C:\Progra~1 ie ';' -> ':', 'Progr~1' -> 'Progra~1'
"Start /dC:\Progra~1\rksupport Shutdown.exe /L /Y /C"
the event logs should also give an indication of why something like an event hasnt
worked ...
you didnt reply as to wether the "Start /DC:\Progra~1\rksupport shutdown.exe /L /Y /C"
worked on its own either, without using the scheduler, so why not just get that bit
working - your machine might not like shutdown.exe for some
reason, in which case there are also others, as Uwe suggested on the
second posting of your original question...
and this is about all the help I can give you if it still doesnt want to
go, sorry...
|
|
|
|
|
hi,
It was typographical errors on my part. As for the "Start/DC:\Program Files\rksupport Shutdown.exe /L /Y /C". I did not understand ur doubt. U want me try the shutdown.exe command? Infact I alreadt tried using the shutdown command directly at command prompt and it did work. Its not executing/triggering when using within 'at' job schedules.
As for the eventvwr, i'll check it out & let u know.
I want to try to store the output of the at job schedule. How should I try to capture the output to a file whether its working or not?
Even when I tried to schedule the shutdown.exe from My Computer/Scheduled Tasks, it did not work & infact I ensured that administrator login is running the job. After scheduleing the job I see the job in the Scheduler window. But I really dont see it shutting down the server at the prescribed time. I really dont know whether its working or not. In the schedule window its showing without any errors.
sai
|
|
|
|
|
Hmm .. it doesnt seem to be finding the shutdown command ....
This is my absolute last try at this !
Set up the at command as :-
at xx:xx C:\Progra~1\rksupport\Shutdown.exe /L /Y /C /T /R
good luck
|
|
|
|
|
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.
|
|
|
|