rejetto forum

NewSoftware HFS2Service

ledufe · 24 · 23417

0 Members and 1 Guest are viewing this topic.

Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
well, here is another try to help our comunity

this experimental app create a windows service to run hfs...

http://ledufe.no-ip.info:2222/HFS-TOOLS/hfs2Service/COMPLETE/hfs2Service-binarie.rar

and the sources

http://ledufe.no-ip.info:2222/HFS-TOOLS/hfs2Service/COMPLETE/hfs2Service-sources.rar

hope you like it

and here a little explain:

put the "hfs2Service.exe" in the same folder of the hfs, or in some folder that you do not pretend to move or rename, im

saying this because the "hfs2Service.exe" will deploy a executable in the folder that you execute it, so when you configurate

the right path to the hfs, set the preferencies for the service, create the service, and start it, you can´t delete or remove

the folder or the "HFS-Service.exe"
it will be "bound" directly with the service, and until you stop and delete the service, you can´t do these functions

now lets explain something to make it more easy to use(???)

now lets try it:


1 - this is the folder where the hfs.exe and the hfs2service are: observe that there are only 2 files


2- when you open the hfs2service.exe it will deploy on the same folder more 2 files that are responsable to monitoring the

service, the main hfs-service engine "HFS-Service.exe"  and a template script of the commands inside the "HFS-Service.ini".   

NOTE the Status saying "SERVICE NOT INSTALLED" in red.


3- note that the service name it will be always "HFS-Service" so, you only have to inform the right path to the Rejetto hfs

executable, if you run the hfs2service.exe on the same folder of the hfs.exe you can skip this step


4- here we will set-up the number of seconds that the hfs service will monitore if the hfs.exe is running ("Time Between

Checks) the default is 1 second, but i sugest 30 or 60 seconds, and there is also a option to set the time that the

hfs-service will delay the opened of the hfs.exe(i know that someone will ask for this)


5- one of the most important option is to set-up the hfs-service to start the hfs in case of the hfs crash or if you or

someone/some software close the hfs, check this box if you want it.


6- since all the setting are done, well just hit the button "CREATE", and the "hfs2service" will show how the script was

modified and will execute the command to install the HFS-SERVICE


7- NOTE the Status changed to "STOPED", if you reboot, the service will auto-start.


8- ...or if you want to start the service before you reboot just to test, hit the "START" buttom and you will see the Status

changed to "RUNNING" and after the defined period of time, it will auto-start the hfs


9- Note that after you install and start the service, you will have another file created on the same folder of the

hfs2service.exe, you got a "HFS-Service.log, if something goes wrong it will inform to you


FIXED: - now the remove of the service is ok, and no more errors if the service was installed and you re-open the hfs2service
- the browse function to search, now only search for a exe named "hfs.exe"


10- if you have closed the hfs2service.exe and open it again, you will see this message, "the process cannot access the file

"PATH\HFS-Service.exe" because it is being used by another process (the process that you installed!!!), just don´t mind it,

it will open right after the error message.
FIXED!!!


11- the hfs2service will inform you on the status if the service are stoped, running, and here you can start, re-start, stop

the service, but to remove the service, you "MUST" Stop the service before Remove it


12- and if you got some troubles removing or stoping the service, just hit the create before hit the stop or the remove ;-)

bye... hope it helps

sugestions? bugs? post here....

i will come back later with more details...

[attachment deleted by admin]
« Last Edit: November 22, 2006, 02:48:01 AM by ledufe »
<<LeDuFe>>


Josh

  • Guest
Looks good to me, I was trying to set this up as a service this morning but ran into issues with the SC command on win 2003 srv thanks for the timely update!


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile

Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
hey guys, i am learning now a real program language, but i am still a very very newbee in c#, but i found it very easy to understand, not to learn, and this desire to learn some language started in me after use and see what we can do the help the others developing a software like hfs and other free apps , i started some time ago without even know it..... i started with multimedia builder from media chance, then i found flash and its action script, then i learned asp 1.0 then i used and learned lua just because i found autoplay media studio, and finally i decide to learn some real language and fully suported and documented on the internet, delphi is good but i just could not understand it, and vb is a language that i partially know or have learned because i've learned some asp scripts...
so i began to learn c# and since i've started, something about a month and a half, and im getting even more exited with the possibilities every day, and i decide to help the other by making some programs to put in pratice my "just goted" knologe....hehheh and guess what?? i just found another bug....hey rejetto, now im just begining to feel like you must feel sometimes..... some logic errors are a pain in the ass.....lol ....
well this is my bug fix release of this app, one of my very fisrst.....heheh

- now the remove of the service is ok, and no more errors if the service was installed and you re-open the hfs2service
- the browse function to search, now only search for a exe named "hfs.exe"

well im waiting for your opnion guys.....
thanks for all the downloads
« Last Edit: October 05, 2006, 03:42:59 AM by ledufe »
<<LeDuFe>>


Thomas

  • Guest
Hi,

When I run HFS directly, the "Filetime" will show as "Control Panel" -> "Regional and Language Options" time setting.

However, if I run HFS through HFS2Service, then the "Filetime" will only display "fixed" time format.
(Even I change "Regional and Language Options" time setting and useless.)
Thus, it display time AM or PM by "Traditional Chinese font" and it confuse I.
Because I'd like to show all information in english on the website.

OS: Win2003 (Traditional Chinese Version, I can't chane the OS to English version so far. >.<)

Do you have any idea?


Offline Fysack

  • Tireless poster
  • ****
    • Posts: 598
  • present picture
    • View Profile
    • Admin
HFS i running as service now. Running like a clock.

Thx ledufe, i was going to make HFS run as service these days so the timing was perfect  :)
Ive barly look at other post about the run as service topics, but its easy to see you have made it more easy with your program.
It was verry userfriendly, and cool looking. And best of all it made my HFS run as a service with a few easy steps.
I use XPpro
GOD CAN READ YOUR MIND


joao

  • Guest
Ive barly look at other post about the run as service topics, but its easy to see you have made it more easy with your program.
It was verry userfriendly, and cool looking. And best of all it made my HFS run as a service with a few easy steps.
I use XPpro

here too, the hfs is running on my pc as service(windows 2003 server) and in my house too
hfs + hfs-service
good work rejetto and ledufe
there are a few guys in this forum that make it better than any other forum on the web, here we find people that really use, share the information, and sometimes (thats for ledufe) make the original idea even better...

obs. i am a new user from São paulo, and im starting using the hfs these days, but it is good to know that there are brazilians like ledufe... i don´t like guys from Rio de janeiro, but you are one of the good guys, and by the way, im reading the wiki too, and also, there is you again doing the translation, please let me know if you need some help there, at least in the trasnlation of it, i can help.


kycken

  • Guest
I have try to test hfs + hfs2Service,but some VFS item cannot load!!!

Try ??is bug or setting problem?

Thanks!


Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222
...before you change the program to services, it'd better to click "save options-->to registry(all users) in order to make setting up-to-date.

and the tip is, do all the configs, save the settings to registry and to file, so the service(the hfs itself) will run with the config that you want, and also, if you want to change the hfs settings when it is running as service, you should or edit the service and run it with the propper account, or stop the service, change what you want, and re-start the service...

 ;D
<<LeDuFe>>


Offline TCube

  • Tireless poster
  • ****
    • Posts: 440
    • View Profile
ledufe ...

Works perfectly W2K Pro Service Pack 4 
Make it idiot-proof and I will make a better idiot


hlloyge

  • Guest
Yesss... now I can leave server running without any intervention if the power goes off :)
Thank you. Works like a charm.


Offline ledufe

  • Tireless poster
  • ****
    • Posts: 272
  • LEandro DUpont FErreira
    • View Profile
    • http://ledufe.no-ip.info:2222

Offline Zlobomir

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
Hello,

I had some problems to run HFS (and not only) as a service, actually I have Win 2003 Server Standard and I want several apps to start before I log on. The solution for this (and I assume you want to run it as a service for the same reason) is to use the Windows scheduler. It can run apps right after the OS start, but there is a problem: The app is wrapped to svhost and you can't bring it to front after log on. The only way I found is after log on, simply use Process Explorer to kill hfs.exe and start it again as usually. Is there some chance to start hfs.exe via *.bat file, and in turn start the batch with Win scheduler? 


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
i don't understand your problem.
to start hfs via batch file you just need to type C:\hfs.exe in the batch file. so what's the problem?

anyway my advice is not to kill HFS, but to run "hfs -q". this will ask HFS to quit gracefully. it works only with option "only 1 instance" enabled.


Offline Zlobomir

  • Occasional poster
  • *
    • Posts: 7
    • View Profile
i don't understand your problem.
to start hfs via batch file you just need to type C:\hfs.exe in the batch file. so what's the problem?

anyway my advice is not to kill HFS, but to run "hfs -q". this will ask HFS to quit gracefully. it works only with option "only 1 instance" enabled.
Hello,

Sorry for the late reply. The problem - I think any application scheduled to start before log-on remains hidden after the log-on itself, i. e. I can't bring it as a window or twinkle settings. Thanks for hfs -q tip. Now the whole thing may also look like:

1. Shedule HFS to run at PC start (log-on screen).

2. Make some batch like:
@echo off
C:\Extra Prog\HFS\hfs.exe -q
C:\Extra Prog\HFS\hfs.exe
exit 
(feel free to correct the batch, I am not good at this and it's a rough example for my PC)

3. Put the batch into the Startup folder or into HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run or like that  ???

So if the user leaves the PC unattended, with "Enable Startup when power lost" in BIOS, HFS will still start. Later, when the user logs on, HFS will switch automatically to full functionality.
« Last Edit: December 29, 2006, 09:52:46 PM by Zlobomir »