Hi,
I want to execute this command:
Code:
C:\Prog1\odbcbin "DSN=ZGH DS1" "Select nr from table" > C:\1.txt
The file 1.txt is created with the correct query result. At the cmd promt there is an other info output - perhaps the exe returns an error - I don't know.
Now I want to execute the same command with autohotkey:
Code:
exec := "C:\Prog1\odbcbin ""DSN=ZGH DS1"" ""Select nr from table"" > C:\1.txt"
runwait %exec%
I see that the cmd window opens with the query result too but after it closes the file 1.txt was not created. So I need help for the correct syntax to pipe the output into a file.
Thank You.