Jump to content

Output to CMD Console


James
 Share

Recommended Posts

Local $var = "Test"

ConsoleWrite("var=" & $var & @CRLF)

; Running this in a text editor which can trap console output should produce "var=Test"

That would output data to the console of SciTE, are you looking to output commands from an actual cmd console? Or to a console?

Link to comment
Share on other sites

Output TO console ?

Try this...

Run (@Comspec & ' /C SOME COMMAND', '', @SW_HIDE)

How can you have it run more then one command in the same dos window?

Right now I have it run something a dos box pops up goes away and then another one pops up goes away etc... how can I have one come up run all the stuff and then go away like normal batch files.

Link to comment
Share on other sites

How can you have it run more then one command in the same dos window?

Right now I have it run something a dos box pops up goes away and then another one pops up goes away etc... how can I have one come up run all the stuff and then go away like normal batch files.

You can write a batch or cmd file or use special characters like &, &&, || to pass multiple commands. For more info view following link

http://technet2.microsoft.com/WindowsServe...3.mspx?mfr=true

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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