C# - Speed code File watcher service

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • Solution Files available here: bit.ly/US89AX
    This is experimental. After the series, I made a quick sample Windows service and full video of the process. This is mostly for "entertainment purposes". Geeks I swear! :)
    Well let me know what you think... 10 minutes of boredom... Help you fall asleep at night? You are welcome!! :)
    Guys please join out Google+ Community. It is great place to find help, not only from me, but from many other programmers!
    Community is called: Learn C# - The Right way
    Google+ Community link: bit.ly/Ya9Xwu
    See you there!
    Thank you for watching! :)

КОМЕНТАРІ • 27

  • @skit555
    @skit555 8 років тому +1

    Ah ah, I had exactly the same bug after the 3 parts tutorial!
    Here's the solution:
    Windows is telling you the service is not installed because the executable is missing and you can't install it again because the service name is already taken.
    > Go to the command window as administrator
    > Write "sc remove "
    And that's it!

  • @rosssquared
    @rosssquared 9 років тому

    This is exactly what I needed. Thanks Fabio!

  • @medinibster
    @medinibster 8 років тому +4

    source files link is not working. do you have a updated link?

  • @lynnn2786
    @lynnn2786 11 років тому

    you sir, are a handsome and funny programmer. What a catch!

  • @tarekhassan9615
    @tarekhassan9615 6 років тому

    Seriously you are Amazing. millions of thanks

  • @robatkinson8581
    @robatkinson8581 10 років тому +1

    Fabio, is there a way to also log the username of the user making the changes?

  • @arkadiuszliebchen1455
    @arkadiuszliebchen1455 9 років тому

    Thank you very much Fabio. It works perfect :)

  • @mehmetyeneryilmaz2579
    @mehmetyeneryilmaz2579 5 років тому

    This is awesome! thanks man, but one thing I also wonder as like you why it didnt triggered eventhough u have changed file name at 5:20

  • @mySKYsource
    @mySKYsource 6 років тому +1

    Создание службы для слежения за изменениями в папке 8:25

  • @emarx1
    @emarx1 8 років тому

    I am stuck at the end: keep getting error that Service1 is not found on computer. How can i solve this? How can i install service1? I cannot find the Service1 on my computer to install it through the command prompt as an administrator.

  • @mehowq
    @mehowq 8 років тому

    Excellent, thank you very much!

  • @freakyfunable
    @freakyfunable 7 років тому

    Extremly useful !

  • @emmanuelanibaba4098
    @emmanuelanibaba4098 5 років тому +1

    I think you are just showing off, u r really good though

  • @kunegunda69
    @kunegunda69 4 роки тому

    Hi Fabio,
    Greate tutorial! colud You publish solution files once again ( Your link is unavailable) ?. Thanks

  • @sunnypro1465
    @sunnypro1465 9 років тому

    You are awesome and this is great tutorial... About the log, is there a way that I can show the log entries in TextArea on Windows application (different application). I don't want to see the Log.txt file every time, so I can have this windows application always running on my desktop as a gadget and it will show all the logs. I don't need the code, just tell me the way to do it.

  • @inkuban
    @inkuban 8 років тому +1

    I think this was great as a refresher or review. But not as a tutorial.

  • @tonacody4100
    @tonacody4100 7 років тому

    hi Fabio, can u give me this source, the link have die.

  • @tangandrew8752
    @tangandrew8752 5 років тому

    thx bro

  • @manojmadhuranga
    @manojmadhuranga 10 років тому

    Greate work...Thanks... (y)

  • @yossalba6464
    @yossalba6464 7 років тому

    hi Fabio, can u give refresh this source, the link above have die

  • @SetsunaKiryuKengan
    @SetsunaKiryuKengan 5 років тому

    Had to play it at 0.25 still this is so messed up I couldn't understand shit.

  • @sanketmudgalkar9500
    @sanketmudgalkar9500 2 роки тому

    Hi I have Created a batch file which add two numbers and takes arguments. i want to run that batch file whenever a file gets added in folder instead of logging the info in text file. i will paste the filewatcher_created handler code here. do we have to do changes in FileWatcher.cs or Logger.cs? This code is from FileWatcher.cs- void _fileWatcher_Created(object sender, FileSystemEventArgs e)
    {
    Logger.Log(String.Format("File Created Path:{0}, name:{1}", e.FullPath, e.Name));
    System.Diagnostics.Process p = new System.Diagnostics.Process();
    p.StartInfo.FileName = "C:\\Users\\LENOVO\\source\
    epos\\AddTwoNumbers\\Debug\\AddTwoNumbers.bat";
    p.StartInfo.Arguments = "2 3";
    p.Start();
    }

  • @abusufyan14
    @abusufyan14 7 років тому

    source files link is not working. do you have a updated link?