Code Monkey home page Code Monkey logo

runhiddenconsole's Introduction

RunHiddenConsole

Created executable can be renamed to powershellw.exe or pwshw.exe (or any other console-flashing-window) and put next to the corresponding assembly. Calls to the added assembly will be sent to a new instance of the target assembly, which is explicitly started without creating a window. Thus these flashing windows should be avoided.

You can find all the magic in Programm.cs

Logging

I have added a (cleaned up) copy of simple log (https://www.codeproject.com/Tips/585796/Simple-Log) for debugging puropse. When there is a crash in the tool you should find a log-file next to your *w.exe called *w.exe..log which contains some hopefully usefull messages.

If you need to change the log level of the tool, you can add a "*w.exe.config", and with the default values as seen in app.config in the repository. Then just update the LogLevel app-setting as you desire.

Future Points

  • Input stream from file and output stream to file, if requested. Please tell me how you would like to use this. It would probably require a config file alongside the assembly to configure which parameters define the inputs and outputs
  • Windows Eventlog logging. Might be required by som orgs. But no complaints so far.

Keywords

silent, script, hidden, console, window, command, commandline, hide, pwsh, cmd, powershell, bash, pwshw, cmdw, powershellw, exe

runhiddenconsole's People

Contributors

seidchr avatar vittel avatar azure-pipelines[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.