Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Things to Program  (Read 10014 times)

0 Members and 1 Guest are viewing this topic.

Ocalabob



    Rookie

    Thanked: 4
    • Experience: Familiar
    • OS: Windows 7
    Re: Things to Program
    « Reply #15 on: June 14, 2013, 07:50:05 PM »
    Maybe I was too brief. :)

    Code: [Select]
    ::Devcon_Reboot.bat
    ::@echo off
    C:\"Program Files (x86)"\O2Micro\Oz600\Devcon Reboot

    Lemonilla



      Apprentice

    • "Too sweet"
    • Thanked: 70
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 7
    Re: Things to Program
    « Reply #16 on: June 14, 2013, 08:38:44 PM »
    Code: [Select]
    shutdown /r

    Code: [Select]
    REM this one saves your applications
    shutdown /g
    Quote from: patio
    God Bless the DOS Helpers...
    Quote
    If it compiles, send the files.

    Ocalabob



      Rookie

      Thanked: 4
      • Experience: Familiar
      • OS: Windows 7
      Re: Things to Program
      « Reply #17 on: June 14, 2013, 09:09:17 PM »
      @Lemonilla
      I was trying for something more esoteric just for fun. Your solutions are more 'real world'. Hat tip! :)

      Salmon Trout

      • Guest
      Re: Things to Program
      « Reply #18 on: June 14, 2013, 11:26:47 PM »
      @Salmon Trout
      Batch file using WIN 7.

      Code: [Select]
      C:\"Program Files (x86)"\O2Micro\Oz600\Devcon Reboot
      foxidrive? :)

      Devcon is a Microsoft command line utility that is not a standard part of Windows; you have to download it. It is a developer tool, a command line equivalent of Device Manager, and I should think that used carelessly by someone with little knowledge or sense of responsibility it could seriously disrupt a computer. However you can reboot the computer with no need for extras in one line like this:

      Code: [Select]
      @shutdown /r /t X
      where X is the number of seconds you want to wait before rebooting, 0 (zero) being immediately.

      foxidrive



        Specialist
      • Thanked: 268
      • Experience: Experienced
      • OS: Windows 8
      Re: Things to Program
      « Reply #19 on: June 15, 2013, 04:10:58 AM »
      beaten by page 2 :)

      Squashman



        Specialist
      • Thanked: 134
      • Experience: Experienced
      • OS: Other
      Re: Things to Program
      « Reply #20 on: June 15, 2013, 05:15:19 AM »
      @Salmon Trout
      Batch file using WIN 7.

      Code: [Select]
      C:\"Program Files (x86)"\O2Micro\Oz600\Devcon Reboot
      foxidrive? :)
      Why wouldn't you just use the SHUTDOWN command.

      Salmon Trout

      • Guest
      Re: Things to Program
      « Reply #21 on: June 15, 2013, 05:43:05 AM »
      Why wouldn't you just use the SHUTDOWN command.

      Welcome to the chorus...

      foxidrive



        Specialist
      • Thanked: 268
      • Experience: Experienced
      • OS: Windows 8
      Re: Things to Program
      « Reply #22 on: June 15, 2013, 07:56:37 AM »
      Code: [Select]
      ::Devcon.exe from microsoft
      @echo off
      Devcon Reboot

      There wouldn't have been any comment if the path wasn't there and the point it was from Microsoft was made. :)

      After all, this thread is about figuring out different ways to write batch files... :)