Jump to content

Recommended Posts

Posted (edited)

hi friends i need help again.

i need help in following command line.

Run(@ComSpec & " /c " & 'commandName', "", @SW_HIDE)

actuly i want send key srokes in hidden mod in MSDOS.

is there any other way to send key in DOS hidden mon plz tell.

thank u in advance. :)

Edited by sagar
Posted

hi friends i need help again.

i need help in following command line.

Run(@ComSpec & " /c " & 'commandName', "", @SW_HIDE)

actuly i want send key srokes in hidden mod in MSDOS.

is there any other way to send key in DOS hidden mon plz tell.

thank u in advance. :)

Look in _RunDOS()..?
Posted (edited)

please give full script ......i m new.

there are several ways to do that...., if you dont want the results e.g. you want to start a website you can use _RunDOS(). You can also use StdinWrite() and StdoutRead() to get the reasult.... there is also another way to do that using something like this:

Run(@ComSpec & " /c ipconfig > "& @tempdir &'\temp.txt', "", @SW_HIDE)
$rd = FileOpen(@tempdir &'\temp.txt', 0)
$rp = FileRead($rd)
msgbox(0, '', $rp)
FileClose($rd)
Exit

(look in the helpfile for examples)

Edited by Gif

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
×
×
  • Create New...