For this semester we are coding in Assembly and I have all the files required. But the only problem is I would like to create a .bat file that prompts for a file name.
as of right now I have a .bat file as follows
cd C:\Documents and Settings\Owner\Desktop\myASM\Software
ml /c /coff /Zi example.asm
link /debug /subsystem:console /entry:start /out:example.exe example.obj io.obj kernel32.lib
The first line set the command prompt within the correct folder for operation.
The second line compiles the .asm file into an .obj file.
The third line takes the .obj file and produces a .exe file.
How can I set variables in .bat files to prompt me for input? Or is this possible?
Question
Crunch
For this semester we are coding in Assembly and I have all the files required. But the only problem is I would like to create a .bat file that prompts for a file name.
as of right now I have a .bat file as follows
The first line set the command prompt within the correct folder for operation.
The second line compiles the .asm file into an .obj file.
The third line takes the .obj file and produces a .exe file.
How can I set variables in .bat files to prompt me for input? Or is this possible?
Thnx
Link to comment
Share on other sites
7 answers to this question
Recommended Posts