Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can i hide some exe file?

How can i hide some exe file?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontools
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    novachen
    wrote on last edited by
    #1

    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.

    A M T 3 Replies Last reply
    0
    • N novachen

      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.

      A Offline
      A Offline
      Antti Keskinen
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • N novachen

        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.

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • N novachen

          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.

          T Offline
          T Offline
          Terry ONolley
          wrote on last edited by
          #4

          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.


          Have you answered an MTQ? Check out the stats!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups