detecting file changes in folder when program is not running [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I checked that the folder that's watched by FileSystemWatcher actually does not check or tells the changes in the folder while the program is not running. How can I check the changes in the folder when the program is off? I mean, how can the program tell 'the changes in the folder when the program is off'?

If you want to know that the changes have happened when they happen, you'll need to use a service (see here: https://learn.microsoft.com/en-us/dotnet/framework/windows-services/introduction-to-windows-service-applications).

Related

How to create exe file to Program.cs file while running another program in C# [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am a student and I am during my final project.
In my project I give an option to edit code and run it. The problem is, that I do not know how to create a new exe file after changing the code.
I would be happy if you can help me !!!
Thank you very much!
You can compile code into assemblies and then execute them as such.
This example should cover what I mean:
https://csharp.hotexamples.com/examples/System.CodeDom.Compiler/CodeDomProvider/CompileAssemblyFromFile/php-codedomprovider-compileassemblyfromfile-method-examples.html
You can access the compiled assembly from CompiledResults and run it directly in the current AppDomain like a script of some sorts or you can store it to an .exe

How to select a folder from my computer and store the path of the folder in a textbox in asp.net? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have tried FileUpload, it can select only files and also I cannot get full path of the file when I try with browsers other than Internet Explorer. I think I need an alternative for FolderBrowserDialog for asp.net.
You can't get the full filepath from a file being upload, because it's on the client's computer, the browser has no access to this information, for security.

Error : Not able to copy file from "obj\Debug\" to "bin\Debug\" folder [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
When I debug the project, I get the following error
Unable to copy file "obj\Debug\TestAutomation.dll" to "bin\Debug\TestAutomation.dll". The process cannot access the file 'bin\Debug\TestAutomation.dll' because it is being used by another process.
Getting this error:
I have closed the locked file also from the Process Explorer but still getting the error .
How can I fix it?
I use Windows 8.1

access to the files of bin folder on c# (convert .dll to .cs) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I was working with my PC, and during developing my project the system had restarted, the problem is I had to lost my last code.
So is there any solution to use "last project" with "new bin-folder", my mean is can I combination those files with project ?
Thank you
You should probably have a look at this decompiler and give it a shot:
http://www.jetbrains.com/decompiler/

is there a way to know where is the solution from a published site folder? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have a published website that I need to modify, but could not find the solution to open the project. Is there a file, even in the IIS or in the published website folder that could have the path of where that project is?
There is no way knowing where your solution is other than searching your hard drives for "*.sln"

Categories