Code: Select all
set "File=microsoft azure TTS.ahk" ; Code of a .bat file
d:\Utilidades\Everything\es.exe %File% > h:\OutFile.txt
Code: Select all
Run, %comspec% set "File=microsoft azure TTS.ahk" /k && d:\Utilidades\Everything\es.exe %File% > h:\OutFile.txt /k
I find myself with another difficulty. Ideally, the variable %File% was defined in AutoHotkey, but the following code does not work:
Code: Select all
File="microsoft azure TTS.ahk"
run, d:\Utilidades\Everything\es.exe %File% > h:\OutFile.txt
(If the RunCMD() viewtopic.php?f=6&t=74647&start =200 function is used, but not if it is suitable for the problem you are facing, you should not create the code to make it work)
------
For "Everything" to read environment variables, ask on the "Everything" forum itself https://www.voidtools.com/forum/viewtopic.php?p=51625#p51625