Windows 8 and 8.1 Forums


can i create a bat file and run it as a service?

  1. #11


    Posts : 6
    windows 8


    Quote Originally Posted by David Bailey View Post
    We're not mind readers, so if he would post back we could get some idea of what he wants to do.
    This is what i plan to do. Disable LLC on NCP4206 chip found in many GPU. I have the batch file done. but i like to have a .bat file or some .exe to run when windows load to desktop. instead doing it manually. in some case run it take time and the little sec in doing it need's to be cut.

      My System SpecsSystem Spec

  2. #12


    Harrisonburg, Va.
    Posts : 10,488
    Windows 8.1.1 Pro with Media Center


    Quote Originally Posted by kevin2005 View Post
    Quote Originally Posted by David Bailey View Post
    We're not mind readers, so if he would post back we could get some idea of what he wants to do.
    This is what i plan to do. Disable LLC on NCP4206 chip found in many GPU. I have the batch file done. but i like to have a .bat file or some .exe to run when windows load to desktop. instead doing it manually. in some case run it take time and the little sec in doing it need's to be cut.
    Thanks for posting back.

    Windows has a built in Wizard for creating .EXE files.
    Open RUN and type in:

    iexpress.exe

    And click OK.

    It might be what you are looking for.
      My System SpecsSystem Spec

  3. #13


    Posts : 1,925
    Windows 8.1 Pro


    IExpress is InstallShield Express, it's for creating installation programs. It's not something that converts batch files into executables.
      My System SpecsSystem Spec

  4. #14


    Posts : 835
    Win 8.1 Pro


    Quote Originally Posted by Mystere View Post
    IExpress is InstallShield Express, it's for creating installation programs. It's not something that converts batch files into executables.
    that's true, but it can work, however, I have not used it myself as a start up app in Windows 8.
    It creates an self extracting executable that works fairly well.

    I would not look at trying to run this as a service. There is no reason to do that.

    The issue you may run into is when the driver loads vs. when the batch file runs during startup
    You MAY need the batch to wait and run at a specific time after startup,, Delayed a bit.

    Best thing to do is,,

    Create a start up task in task scheduler
    I would do this,, Set the Triggers at startup and Delay 30 sec.
      My System SpecsSystem Spec

  5. #15


    Posts : 6
    windows 8


    Quote Originally Posted by David Bailey View Post
    Quote Originally Posted by kevin2005 View Post
    Quote Originally Posted by David Bailey View Post
    We're not mind readers, so if he would post back we could get some idea of what he wants to do.
    This is what i plan to do. Disable LLC on NCP4206 chip found in many GPU. I have the batch file done. but i like to have a .bat file or some .exe to run when windows load to desktop. instead doing it manually. in some case run it take time and the little sec in doing it need's to be cut.
    Thanks for posting back.

    Windows has a built in Wizard for creating .EXE files.
    Open RUN and type in:

    iexpress.exe

    And click OK.

    It might be what you are looking for.
    I won't work it only extract files.

    Quote Originally Posted by Mystere View Post
    IExpress is InstallShield Express, it's for creating installation programs. It's not something that converts batch files into executables.
    This

    Quote Originally Posted by Tepid View Post
    Quote Originally Posted by Mystere View Post
    IExpress is InstallShield Express, it's for creating installation programs. It's not something that converts batch files into executables.
    that's true, but it can work, however, I have not used it myself as a start up app in Windows 8.
    It creates an self extracting executable that works fairly well.

    I would not look at trying to run this as a service. There is no reason to do that.

    The issue you may run into is when the driver loads vs. when the batch file runs during startup
    You MAY need the batch to wait and run at a specific time after startup,, Delayed a bit.

    Best thing to do is,,

    Create a start up task in task scheduler
    I would do this,, Set the Triggers at startup and Delay 30 sec.
    I did that and it does work well , but I still need to find out how I can enable the bat file to work on windows load. in just add to registry and some easy task.
      My System SpecsSystem Spec

  6. #16


    Posts : 835
    Win 8.1 Pro


    can you post the code in your batch file?
      My System SpecsSystem Spec

  7. #17


    Orbiting the Moon
    Posts : 2,975
    Windows 10 x64


    Quote Originally Posted by kevin2005 View Post
    but I still need to find out how I can enable the bat file to work on windows load. in just add to registry and some easy task.
    Create an entry for it in the registry here:
    Code:
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
    How to Add an Application to Startup Using the Registry

    Or

    Put the bat file in the Startup folder:
    Code:
    %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
    It should do it, but If these two possibilities work only with exe files, simply make a self-extractable exe (with, already mentioned iexpress.exe) that runs the bat after extraction.

    WinRAR and 7-Zip archiving tools can also make self-extractable files.
      My System SpecsSystem Spec

  8. #18


    Posts : 6
    windows 8


    Quote Originally Posted by Hopachi View Post
    Quote Originally Posted by kevin2005 View Post
    but I still need to find out how I can enable the bat file to work on windows load. in just add to registry and some easy task.
    Create an entry for it in the registry here:
    Code:
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
    How to Add an Application to Startup Using the Registry

    Or

    Put the bat file in the Startup folder:
    Code:
    %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
    It should do it, but If these two possibilities work only with exe files, simply make a self-extractable exe (with, already mentioned iexpress.exe) that runs the bat after extraction.

    WinRAR and 7-Zip archiving tools can also make self-extractable files.
    Hey Hopachi, I have created the .exe file it does run on windows load
    Code:
    %appdata%\Microsoft\Windows\Start Menu\Programs\Startup
    works but i get this message in the end I really don't know what is causing it. any input ?

    Click image for larger version
      My System SpecsSystem Spec

  9. #19


    Portsmouth Hants
    Posts : 772
    Windows 8.1 Pro with Media Center


    Don't know if this will help. Command.com is the DOS command, which runs the .bat file rather than cmd.exe which is the NT cmd executable. Try saving the batch file with a .cmd extension, rather than .bat.
    I guess you can add the path to your user temp folder in your environment variables.
    Last edited by fafhrd; 16 Sep 2013 at 07:05.
      My System SpecsSystem Spec

  10. #20


    Posts : 6
    windows 8


    Quote Originally Posted by fafhrd View Post
    Don't know if this will help. Command.com is the DOS command, which runs the .bat file rather than cmd.exe which is the NT cmd executable. Try saving the batch file with a .cmd extension, rather than .bat.
    I guess you can add the path to your user temp folder in your environment variables.

    Hey Hopachi
    I nailed it. I found a software called "Exescript" it can make any bat into .exe file with a lot options to choose from. Now I can run my .exe file on windows load in background so no warning or popup window. It does work flawless.
    I just add the .exe I to startup folder and let the magic runs.

    Thanks for all replay.
      My System SpecsSystem Spec

Page 2 of 3 FirstFirst 123 LastLast
can i create a bat file and run it as a service?
Related Threads
I am currently using ubuntu 14 I installed it to dual boot with windows 8.1 but something went wrong on install and I deleted / corrupted my Windows 8.1 install before I made a recovery disk. Asus say that they cannot send a recovery disk because they only have them available for Windows 8 not...
Hello - It seems Windows 8.1 hates me, and my search indexing service is not running. I have checked services and it shows stopped. When I try to run the service, it says "Windows could not start the Windows Search service on Local Computer. Error 2: The system cannot find the file specified."...
How to Create and Attach a VHD or VHDX File in Windows 8 This tutorial will show you how to create a fixed or dynamically expanding VHD or VHDX file any size you like saved to where you like, and to attach/mount it as a drive in the Computer window for all users in Windows 8. You must be...
Since 2 days ago I've noticed that I cannot create a new folder with File Explorer by any way possible. Using the taskbar or the SHIFT + Ctrl + N. Even when saving projects with Save File as... and trying to use the "New Folder" text string button does not create any folder. Using CMD prompt or...
Any free software which does the trick - create an ISO files from the files on a CD? Basically, reverse of burning. I'm on Windows 8
Hi, I have win8 Enterprise. when i connection to internet two service with names service host: Network service and service host: local system download automatically, i thought that it relate to windows update but automatic update is off and my windows is up to date. what is the problem? what can i...
Unable To CREATE THE OS FILE! in Installation & Setup
I just bought the Window 8 Pro yesterday. In the Window 8 upgrade assistant, I choose the '' Install by creating media'' > '' IOS File'' . After saving the download location, theres a message saying '' WE COULD'NT CREATE THE IOS'' The message told me to restart the setup and try again, which I did...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook