If i want to make cmd type in another file like heres a code :
@echo off
start notepad.exe
------------------------------
than i want to make cmd type something inside notepad ... how can i ?
Plz reply fast :) And plz make it simple .. Thx
If i want to make cmd type in another file like heres a code :
@echo off
start notepad.exe
------------------------------
than i want to make cmd type something inside notepad ... how can i ?
Plz reply fast :) And plz make it simple .. Thx
I don't think there is a way to do that. I've tried before.
What are your intentions?
Every man for himself. You trust no one but yourself, if you want something done you do it your self don't rely on others. You watch your own back, you fight your own fights its you against the world.
Originally Posted by Some phag
There is a way to write stuff using CMD, you can use Echo, although that would write stuff inside the CMD prompt... or you could try MSGBOX that will write whateveryou want in little boxes. OR you can use the SendKey command.... not even sure if that still exists! I´ll do some research when i get something i´ll post it in here.
My favorite food is 3.14 :P
Not exactly sure, I have also tried before - depending on what you're planning to do you could use VBScript quite easily:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad"
WScript.Sleep 100
WshShell.AppActivate "Notepad"
WScript.Sleep 500
WshShell.SendKeys "Text Here"
Credit to: InTh33yesOf (for the VBS code)
Yep. Use vbscript for that.
Bookmarks