How will the following Dos instructions written as a batch file

Dear God,

There is a crack software, under the DOS directive is running IARKG.EXE, parameters are 0x1E009, license.txt generation

C:\> d:
D:\cd iar keygen
D:\iar keygen>iarkg 0x1E009 > license.txt

In this process, in the IARKG.exe file and the batch file in the same way, could you tell me how to write a batch file, and can run under win7?
Thank you

Started by Duke at November 30, 2016 - 3:34 AM

"D:\iar keygen\iarkg.exe 0x1E009" > "D:\iar keygen\license.txt"

Posted by Kaye at December 02, 2016 - 4:25 AM

@echo off
echo Press Any Key
"D:\iar keygen\iarkg.exe 0x1E009" > "D:\iar keygen\license.txt"

It is able to generate the txt file, but the inside is empty.

Posted by Duke at December 11, 2016 - 5:00 AM

@echo off
"D:\iar keygen\iarkg.exe 0x1E009" > "D:\iar keygen\license.txt" 2>&1

@echo off
cd /d "D:\iar keygen\"
iarkg 0x1E009 > license.txt 2>&1

Posted by Van at December 17, 2016 - 5:45 AM