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! :)
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!
This is exactly what I needed. Thanks Fabio!
source files link is not working. do you have a updated link?
you sir, are a handsome and funny programmer. What a catch!
Seriously you are Amazing. millions of thanks
Fabio, is there a way to also log the username of the user making the changes?
Thank you very much Fabio. It works perfect :)
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
Создание службы для слежения за изменениями в папке 8:25
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.
Excellent, thank you very much!
Extremly useful !
I think you are just showing off, u r really good though
Hi Fabio,
Greate tutorial! colud You publish solution files once again ( Your link is unavailable) ?. Thanks
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.
I think this was great as a refresher or review. But not as a tutorial.
hi Fabio, can u give me this source, the link have die.
thx bro
Greate work...Thanks... (y)
hi Fabio, can u give refresh this source, the link above have die
Had to play it at 0.25 still this is so messed up I couldn't understand shit.
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();
}
source files link is not working. do you have a updated link?