Is there anything unique for file and folder in windows c#? -


I am working on the files n folder using C # .... I know that the UID for the file There is no way to get it - folders .... So far I was using the full path of the file ... but my problem is changing the name of the file names ... which will replace the UID for the file folder .. Plz is in any way already thanks,

First of all, I think that The parties can get clear feedback if you clearly define what you are working on the "files" means.

No, there is nothing like "UID" for files or directories, but if you want to dynamically monitor the status of files and directories, and if events are moved / changed / deleted Have informed, etc. You can use the net class.

For example, with a dictionary, whose key can be some UID or GUID, or whatever may be, the form dictionary & lt; UID, string & gt;, where string may be the original file name, even if you receive an event from FileSystemWatcher, a second dictionary & lt; UID, string & gt; Update Where its string can be a changed file path:

I'm not actually proposing you especially use dictionaries here, but only Examples of data structures that you use to keep track of certain files by the original name / location and possibly (by changing the name / location) and / or ... if they are deleted, Make copies, etc. Are.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -