Windows 8 and 8.1 Forums

Can anyone create this?

  1. #11

    Posts : 2,612
    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 : 34
    Windows 8.1 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:

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


    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


    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 : 34
    Windows 8.1 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?

Similar Threads
Thread Forum
Create a ISO from Win8.1 DVD
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. ...
Installation & Setup
Can I pay someone to create a Windows 8 app for me?
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...
Software and Apps
create 2 bookmark bar in FF
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 it possible to add 2 bookmark bar?
Browsers & Mail
cannot create a homegroup
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...
Network & Sharing
How create a document
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.
General Support
How to create a tutorial?
Hi. I want to create my own tuturial that show on EightForums Tutorial. How to do this?
Chillout Room
Create Icon
Hello :) Could someone tell me how to create an icon on the desk top in Win 8. Thanks
General Support

Eight Forums Android App Eight Forums IOS App Follow us on Facebook