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

Author Topic: Batch Counter for Booting Up Windows  (Read 3101 times)

0 Members and 1 Guest are viewing this topic.

Rettsu

    Topic Starter


    Newbie

    • Experience: Familiar
    • OS: Windows 7
    Batch Counter for Booting Up Windows
    « on: November 06, 2014, 03:43:51 AM »
    Hey all, Rettsu here.

    I'm working on a little project of mine that I want to try on my computer, I want to make a batch file that counts up +1 every time I boot up my computer, so after a while I can see how many my computer has been started. But after a few searches on google I couldn't find it at all.
    Can someone help me with this ? :)

    foxidrive



      Specialist
    • Thanked: 268
    • Experience: Experienced
    • OS: Windows 8
    Re: Batch Counter for Booting Up Windows
    « Reply #1 on: November 06, 2014, 03:56:02 AM »
    Put this batch file in your startup group:

    Code: [Select]
    @echo a>>"%userprofile%\desktop\counter.log"
    And use this batch file to give you the current count.

    Code: [Select]
    @echo off
    find /c "a" <"%userprofile%\desktop\counter.log"
    pause

    Rettsu

      Topic Starter


      Newbie

      • Experience: Familiar
      • OS: Windows 7
      Re: Batch Counter for Booting Up Windows
      « Reply #2 on: November 06, 2014, 04:18:18 AM »
      Thanks, it worked!

      Is it possible to actually put the Counter in a certain map on the desktop? I tried to change the location but it would give me a "Batch" file on my desktop.

      "EDIT"
      Nevermind, I found how to do it. I just changed the folders name :)