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
Printable View
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?
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.
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.