can i create a bat file and run it as a windows services? can you point me out thanks
Last edited:
My Computer
System One
-
- OS
- windows 8
Can I create a .bat file and run it as a service? Can you help me out ? Thanks.
Can I create a .bat file and run it as a service? Can you help me out ? Thanks.
Define "service".
A scheduled task is not a Windows Service. Although, since the Task Service is a service, your batch file becomes a child of a service...
We're not mind readers, so if he would post back we could get some idea of what he wants to do.
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.
IExpress is InstallShield Express, it's for creating installation programs. It's not something that converts batch files into executables.
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.
IExpress is InstallShield Express, it's for creating installation programs. It's not something that converts batch files into executables.
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.
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.
[COLOR=#000000][FONT=Arial][HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run][/FONT][/COLOR]
%appdata%\Microsoft\Windows\Start Menu\Programs\Startup
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:
How to Add an Application to Startup Using the RegistryCode:[COLOR=#000000][FONT=Arial][HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run][/FONT][/COLOR]
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.
%appdata%\Microsoft\Windows\Start Menu\Programs\Startup
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.