so lets say I have a program with icon I set it in my project properties. but after running the application it drops itself to specific directory using copy or move or Read All Bytes method but i want the icon of the application gets removed in that new particular directory. maybe using filestream? I don't know how but if you know a way programmatically or anything else that would be great. (its .net application C#)
CodePudding user response:
You can set the Hidden
attribute on the "dropped" file in the target directory using the File.SetAttributes
method. Its documentation even contains an example code doing exactly that: https://docs.microsoft.com/en-us/dotnet/api/system.io.file.setattributes
Note that the Windows File Explorer (as well as other alternative file managers) can be configured to also show hidden files. But a casual and unsuspecting user is unlikely to do that and won't cotton on to whatever your program is trying to do there...
CodePudding user response:
You seem to want the icon to be removed, but you also want it to not be hidden and to be still there and visible (according to your comment to another answer). In other words, you seem to want a superposition of the icon's existence/presence. This is not possible with traditional conventional computers, but perhaps using a quantum computer might help.