How can i hide some exe file?
-
I am working on a project that will need some command line exe act as a important role. But i don't like my client know those exe. Merging those tools all into a program will cost too much time. is there any tool can hide them but i can still run them from main program.
-
I am working on a project that will need some command line exe act as a important role. But i don't like my client know those exe. Merging those tools all into a program will cost too much time. is there any tool can hide them but i can still run them from main program.
If you want to hide disk files programmatically, you basically have two options: 1. Use of 'ShellExec' and the 'attrib' command to set file hide/show flags 2. Use direct manipulation of the file system. I only know how to fetch file attribute flags from FILEINFO structure, but I don't know how to set them. See MSDN & The Internet for examples. Naturally, the final option would be to take the actual .exe file and include it to your executable as a resource. Then you could execute the tool as necessary by using ShellExec and the 'res://' path identification. I am unsure of how this ultimately works, but you might wanna try it out. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.
-
I am working on a project that will need some command line exe act as a important role. But i don't like my client know those exe. Merging those tools all into a program will cost too much time. is there any tool can hide them but i can still run them from main program.
SetFileAttributes
will allow you to set a file to be hidden. Of course, the user can still enable the 'Show hidden files and folders' option in Explorer. -
I am working on a project that will need some command line exe act as a important role. But i don't like my client know those exe. Merging those tools all into a program will cost too much time. is there any tool can hide them but i can still run them from main program.
You could use a quick and dirty method of naming the file something other than .EXE and then have your program rename the file before invoking it.