# Currently
I can
- Run/RunWait aaa\bbb\ccc\xxx.bat
- Or Use ComSpec to run single line batch as shown below
Code: Select all
CMD_Run("start C:\")
CMD_Run(User_CMD){
Run, %ComSpec% /c %User_CMD%, , Hide
}
I wonder if there is a way to run batch codes embedded into ahk?
I suppose it should look like
Code: Select all
Local_String =
(LTrim
cd c:\
delete a.txt
pause
}
CMD_Run_MultiLines(Local_String)
- calling external batch files make it a little difficult to manage source code
- as it require that the batch files path be maintained...
- I wish to keep calling bat by mistake(I use launcher like Everything to find scripts, and sometimes call the batch files by mistake)
Thank you