1.

Solve : creating a shortcut - script language?

Answer» <html><body><p>I KNOW that "rundll32.exe shell32.dll,SHExitWindowsEx 1" can be used in a<br/>batchfile to close WinMe; what line would RESTART rather than CLOSE WinMe ?rundll32.exe shell32.dll,SHExitWindowsEx <em><strong>flag</strong></em><br/><br/>where <em><strong>flag</strong></em> is one, or a combination of, the following numbers:<br/><br/> 0 - LOGOFF<br/> 1 - SHUTDOWN<br/> 2 - REBOOT<br/> 4 - FORCE<br/> 8 - POWEROFF<br/><br/>These values can be added. Example: reboot = 2 and force = 4 so a forced reboot = 6<br/><br/>NOTE: Using the FORCE option can cause programs to lose <a href="https://interviewquestions.tuteehub.com/tag/data-25577" style="font-weight:bold;" target="_blank" title="Click to know more about DATA">DATA</a>.<br/><br/>LOGOFF - Shuts down all running <a href="https://interviewquestions.tuteehub.com/tag/processes-21463" style="font-weight:bold;" target="_blank" title="Click to know more about PROCESSES">PROCESSES</a>, then logs the user off.<br/><br/>POWEROFF - Shuts down the system and turns off the power. The system must support the power-off feature.<br/><br/>REBOOT - Shuts down the system and then restarts the system.<br/><br/>SHUTDOWN - Shuts down the system to a point at which it is safe to <a href="https://interviewquestions.tuteehub.com/tag/turn-767121" style="font-weight:bold;" target="_blank" title="Click to know more about TURN">TURN</a> off the power. All file buffers have been flushed to <a href="https://interviewquestions.tuteehub.com/tag/disk-244471" style="font-weight:bold;" target="_blank" title="Click to know more about DISK">DISK</a>, and all running processes have stopped.<br/><br/>FORCE - Forces processes to terminate. When this flag is set, Windows does not query running applications to inform them that Windows is shutting down. This can cause the applications to lose data, therefore, you should only use this flag in an emergency.<br/>Thank you.</p></body></html>


Discussion

No Comment Found