Labels

September 28, 2015

Sending commands to cmd in Autohotkey

we can send direct commands to cmd thru autohotkey and can get our work done at cmd level.
To send the command we can use the following code:

run cmd.exe
WinWait, ahk_exe cmd.exe
; to make some time difference in the execution of next line
Send cd Desktop{Enter} ; it will change the current directory to the Desktop.

No comments: