Windows 8 and 8.1 Forums


Can anyone create this?

  1. #11


    Posts : 2,690
    Windows 3.1 > Windows 10


    Yes Sir.. It is..

      My System SpecsSystem Spec

  2. #12


    United States
    Posts : 3,093
    Windows 8.1 Pro 64-bit


    Quote Originally Posted by SIW2 View Post
    It is exactly what he asked for:
    If they click yes, it logs them off (using "shutdown -l") and if they click no it simply closes the dialog box.
    You the man! Exactly as OP requested, I hope he/she comes back to see it.
      My System SpecsSystem Spec

  3. #13


    United Kingdom
    Posts : 40
    Windows 10 Enterprise 64-bit


    Quote Originally Posted by popeye View Post
    I found this to make a batch file. Should be able to edit command and text to work for log off also:

    @ECHO OFF
    :: This batch file allows the user to choose to shutdown immediately, or cancel and return to Windows
    ::
    CD\
    CLS
    ECHO.
    :LOOP
    ECHO Would you like to shutdown immediately?
    ECHO.
    ECHO Y = SHUTDOWN IMMEDIATELY (WARNING!! Unsaved work will be lost)
    ECHO N = CANCEL and return to Windows
    ECHO.
    SET Choice=
    SET /P Choice=TYPE YOUR CHOICE AND PRESS ENTER:
    IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%
    ECHO.
    IF '%Choice%'=='y' GOTO ShutdownNow
    IF '%Choice%'=='n' GOTO Leave
    ECHO "%Choice%" is not valid. Please try again.
    ECHO.
    GOTO Loop
    :ShutdownNow
    ECHO.
    shutdown /s /t 1

    :Leave
    Exit

    EDIT: Command for log off: shutdown /l = Log off and /f = force
    That's great! Is there any way of modifying this to log off instead of shutdown? Or am I being extremely stupid and this is in fact a log off script (it's just, it mentions shutdown a lot)?
      My System SpecsSystem Spec

  4. #14


    @corriganc

    SIW2 posted a working solution...

    Shutdown is the executable - depends on the arguments you supply (-s to shutdown, -r to restart, -l to logoff)

    Here's another fancy CreateLogoff.vbs (adapted from MS example) that creates a shortcut in start menu.

    .Click image for larger version
    Last edited by Superfly; 03 Apr 2015 at 05:24. Reason: had wrong script attached
      My System SpecsSystem Spec

  5. #15


    United Kingdom
    Posts : 40
    Windows 10 Enterprise 64-bit


    Thankyou all so much (especially SIW2) this is exactly what I have been looking for!
      My System SpecsSystem Spec

Page 2 of 2 FirstFirst 12
Can anyone create this?
Related Threads
Solved Create a ISO from Win8.1 DVD in Installation & Setup
Need help trying to create an ISO of the windows 8.1 dvd. I want to make a bootable USB stick when I go to install it to speed things up and make a backup copy. I can create the ISO using Alcohol 120 but when I use the Windows 7 USB/DVD tool to open the ISO it says it is not a valid ISO file. ...
I'm wanting to create a type of media player app that can pull up and play music and possibly video files (already saved on a given computer) in an aesthetically pleasing layout. I don't have any experience building apps and rather than spending hours learning how I'd like to just pay someone to do...
Solved create 2 bookmark bar in FF in Browsers & Mail
hi guys i use 20 sites every day and use bokkmark bar of firefox for easey access but i can not put all of my sites in bookmark bar.is it possible to add 2 bookmark bar?
Solved cannot create a homegroup in Network & Sharing
hi guys, well i created a homegroup for my 4 pc's, but with the last one i get the message that the Revo user changed the password. How is this possible? A user wanting to join the homegroup cannot change the password......normally. To restart from scratch, i led everyone leaving the...
How create a document in General Support
I have not Office Tools (Words, PPT......) Before I used a free document Template given by Microsoft that I do not find anymore. Anyone tell me how can I create a document in Windows 8 ????? Thanks.
How to create a tutorial? in Chillout Room
Hi. I want to create my own tuturial that show on EightForums Tutorial. How to do this?
Solved Create Icon in General Support
Hello :) Could someone tell me how to create an icon on the desk top in Win 8. Thanks
Eight Forums Android App Eight Forums IOS App Follow us on Facebook