Error in shell32.dll

S

Steve

I have couple of bat files which I used to access from a desktop short cut
when my XP machine got troublesome, or I wanted a quick log off.

These no longer respond but produce an error message.



force-shutdown.bat

rundll32.exe shell32.dll,SHExitWindowsEx 6


force-shutdown.bat

rundll32.exe shell32.dll,SHExitWindowsEx 9



Error message

Error in shell32.dll

Missing entry : SHExitWindowsEx



XP Home machine with SP2 and fully up to date with all recommended updates
(set to auto)


Can some one advise what the problem may be and a fix?

Thanks

Steve
 
G

Guest

Steve,

The exported function existed in the Win98/ME version of Shell32 but does
not exist in the XP version of Shell32. You can still shutdown XP using a
batch file containing this:

shutdown -s -f -t 1
 
S

Steve

John Hensley said:
Steve,

The exported function existed in the Win98/ME version of Shell32 but does
not exist in the XP version of Shell32. You can still shutdown XP using a
batch file containing this:

shutdown -s -f -t 1
Thanks for that John

Is it possible that the function carried over into XP and persisted until
after I put in SP2?

What do the switches -s -f -t control?


Steve
 
G

Guest

Steve,

The -s specifies shutdown, the -f specifies forcing running programs to exit
without warning and -t specifies number of seconds before shutting down.
Running shutdown without any arguments will give a description of all of the
switches available.
 
S

Steve

John Hensley said:
Steve,

The -s specifies shutdown, the -f specifies forcing running programs to
exit
without warning and -t specifies number of seconds before shutting down.
Running shutdown without any arguments will give a description of all of
the
switches available.
Thanks for your help.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top