|
HI ,
Anybody have any ideas were i could find this tool (IIS Exception Monitor). or something similar??
Is it any good - i have a random problem were my main site just stops responding to any requests and when i try to stop the service (net stop w3svc) it fails to restart forcing me to reboot the machine to fix it.
|
|
|
|
|
|
Hi
I have a batch file that calls an executable to perform some pausing and resuming of services during a backup process. My question is there a way to have some error reporting in the batch file say a "script error" or something along those lines. Thanks in advance.
|
|
|
|
|
In my opinion, you may plan you code what to do when it will running. For example your code have 5 actions to perform, so at the end of each section you should write any code to output to the file to inform that it is running successfully. So when your batch file run it will output to the file or append to the file (base on what you specify) if the action in your code is running successfully, but if you write anything wrong and your code stop running unexpectly it won't write any result to the file (the file that you specify the path and file name). So you might know where the code is reach it process.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Hi there !
I would request for your esteemed opinion, in case you feel this could be of help in my context.
I have a peculiar problem. It goes as follows -
I have got a multithreaded windows ( windows 2000 ) app running.
I am using a CreateEvent() to create an event object. It goes like this -
CreateEvent(NULL, // no security attributes
TRUE, // manual reset event
FALSE, // not-signalled
"RASNOTIF_EV");
Subsequently using OpenEvent(), in the following manner -
RasEvnt = OpenEvent (SYNCHRONIZE | EVENT_MODIFY_STATE, FALSE, (LPCTSTR)"RASNOTIF_EV");
Now, on rare occassions the above OpenEvent call fails and the GetLastError retirns a value of 2; => ERROR_FILE_NOT_FOUND
I came across the following info in this context -
"The last parameter indicates the name of a kernel object. You cannot pass NULL for this parameter;
you must pass the address of a zero-terminated string.
The functions search the single name space of kernel objects attempting to find a match.
If no kernel object with the specified name exists, the functions return NULL and GetLastError returns 2 (ERROR_FILE_NOT_FOUND). "
In the context of the Windows 2000 API call OpenEvent, I seek to understand as to what might be causing this ? And, if this is because of an error at Kernel level because of whatever reasons - is it possible that the system reboots owing to this ?
Please share your esteemed thoughts on this critcial issue I am facing.
Thanks !
Please respond to -
s6_shah@yahoo.com
|
|
|
|
|
If you're trying to use the same event from two (or more) threads in the same app, simply use the same handle. Keep the handle in a global location, or pass it into the ThreadProc.
If you're trying to use the same event from two (or more) different apps (or instances of the same app), you'd typically call CreateEvent in each app's code. If you need to know whether this call actually created it, call GetLastError immediately after CreateEvent succeeds. If this call created the object, it will return 0 (ERROR_SUCCESS). If the object already existed, it will return ERROR_ALREADY_EXISTS.
I've never used OpenEvent.
I suspect the problem you're running into is some form of race condition - either the creator hasn't created it yet, or the other apps have quit and there are no handles open to it, so the kernel deletes it.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hi, does anyone have a script that will let me query a AD OU and then list any accounts that are locked?
Thanks
Andrew
|
|
|
|
|
The information from here[^] will list all user account in active directory. The script from scripting center[^] might help you more idea.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
My hard drive start to make a worring noise, so I decided to put in another drive and use Norton Ghost to clone the original hard drive.
The original hard drive was 80GB and the new one 120GB.
But when I first put in the second drive(jumper set to slave) the PC failed to boot. I checked the connections etc but only got it to work when I place the original cable into the Master drive and the spare connector connector in the slave drive.
My question is "Does it matter what connector you use for each drive"?
e.g. Original setup just the single drive (set as Master)
Motherboard----------<connector>----------<master>
This did not work
Motherboard----------<master>----------<slave>
But this did
Motherboard----------<slave>----------<master>
|
|
|
|
|
I would like give you some idea: Remove your 80GB hard drive then connect your 120GB drive and set jumper to master and detect in your CMOS. If it is working it mean that when you connect with 80GB you might set wrong jumper or did not configure properly in CMOS. But if you connect only 120GB and it is not working it might be your mainboard do not support the size of the hard disk drive. As far as I know each mainboard must have it limitation for other component when working together. Try to check your mainboard manual, how high the maximum capacity of hard disk drive that it will support.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
I have both drives present on my computer and have cloned my other drive - not tested it yet.
The question was to do with the cable; I though it did not matter which way it was connected.
e.g.
original situation
<motherboard>--------<spare>-------------<old drive="">
now this did not work!
<motherboard>--------<old drive="">-------------<new drive="">
but this did
<motherboard>--------<newdrive>-------------<old drive="">
Are they anythink special with the cable (I thought it did not matter the way you connected the hard drives.
|
|
|
|
|
Ok, If you think it is become the cable, try to change the new cable from the other machine.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
sweep123 wrote:
But when I first put in the second drive(jumper set to slave) the PC failed to boot. I checked the connections etc but only got it to work when I place the original cable into the Master drive and the spare connector connector in the slave drive.
My question is "Does it matter what connector you use for each drive"?
In hard drives I've installed, I've noticed jumper settings for "cable select." If your origonal hard drive was set up for cable select, then your first attempt would have put two slave drives in your computer, but your second attempt would have correctly made your first hard drive a master.
In short, if "cable select" means the obvious, then the cable connectors can matter if one of the drives is configured that way.
Nathan Holt
|
|
|
|
|
How do you uninstall a Windows Service without the service's binary. For instance,
installutil -u MyService.exe
Fine, as long as you have the binary. Now, what if you don't? I'm asking because Oracle Universal installer screwed up half way during the installation process and it left some installed Windows Services on my system which I can't uninstall...
btw, there IS A TOOL that can do this. I've done this some two years ago, but I can't remember what this is and where to get it... damn...
Norman Fung
|
|
|
|
|
|
|
HI
Acctually i am using win2000 server and I have a FTP Folder in which a remote computer places some word files.So I want to copy those files from that ftp folder to some other folder in the same drive.But the "select all" comand is not working and i have to copy/past all files one by one.Please mail me the soluution.Its urgent.
BYE
Prepare yourseld for the life after death.God bless you.
|
|
|
|
|
Click the first file. Hold the Shift key down and click the last file. All files in between should then be selected. Right click on the highlighted area and choose Copy. Right click the destination folder and select Paste.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
Roger, Is it possible to copy the file in FTP folder via the command prompt? I think if it is possible the owner of the question copy it via MSDOS prompt.
A thousand mile of journey, begin with the first step.
APO-CEDC
Save Children Norway-Cambodia Office
|
|
|
|
|
Of course it's possible - see COPY /? for instructions. But I'm curious about what the poster reports, that Select All doesn't work. I'm running Win2K Server, have a ftproot folder full of files, and Edit/Select All works perfectly. I'm the Admin on this box, though, and the poster may not have sufficient privileges to select and move files on the machine. A chat with whoever is responsible for the server might clear things up.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
|
Hi,
Im wondering if anyone can tell me how I can go about running 2 or 3 separate bacth files using some sort of timer feature. For eg. Run batchfile1 -> when batchfile1 finished -> run batchfile2 etc... The batch files are dependant on each other so one cant start unless the other one finishes. Any help would be greatly appreciated.
Thanks
|
|
|
|
|
Batch files can be chained. There used to be a CHAIN command, but it may be defunct now. At the end of each batch file, as the last statement, add the name and extension of the next batch file to be executed in the sequence. If you must run unattended, use the AT command to run the first in the series at the scheduled time.
"If it's Snowbird season, why can't we shoot them?" - Overheard in a bar in Bullhead City
|
|
|
|
|
call batchfile1.cmd
call batchfile2.cmd
|
|
|
|
|
Just write another batch file that calls the batch files you need in the correct order.
call Batch1.cmd
call Batch2.cmd
call Batch3.cmd
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|