Jump to content

Hide Cmd when launching Console


Recommended Posts

Posted

i use console as a gui replacement for "cmd.exe" but in order 4 console 2 work, since its just a shell, it needs 2 launch cmd first

how can i make a script so it runs hidden instead of flashing up then hidden..

im kinda autoitscript novice :P

i need 2 pass "directory" parameters 2 it..

;Part Of Console.inf

HKCR,Directory\Shell\ConsoleHere\command,,,"%01%\console.exe -c ""/k cd /d """"%1"""""""

AutoIT Script

Run("console.exe", "", @SW_HIDE)

so now when i compile my script, my problem is i need 2 run Autoitscript.exe -c ""/k cd /d "%1"

if this doesnt make sense its cuz im tired & cant explain myself verywell :P

  • 3 weeks later...

Posted

Im surprised there is less interest in a command shell replacement.

Console is a very nice cmd shell replacement.

Has someone figured out how to auto-hide the cmd.exe window when its started?

And is there a way to make console open instead when I run 'cmd' ?

Posted

If you need more CMD replacements, check out the kiX and nircmd utils - google for details. Prolly that is suitable to directly launch another program from scripts.

Posted

Run('C:\Program Files\Console\console.exe -c "/k cd /d ""' & $CmdLine[1] & '"""', "", @SW_HIDE)

save as console.au3 & compile using autoit

:)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...