Reputation: 3
I am trying to convert a very simple manual CMD process into a BAT file. So I am a pretty new but I am trying to piece together a manual cmd window process into a nice bat file for one click use for another user.
overview: my .exe file has to be opened as the same time as you give the name of the input file and the name of the desired output file.
Current process in CMD window looks like this:
C:/.../..../.../compute_upid.exe Input_Name.csv Output_Name.csv
Any idea on what commands in the bat file I can use?
here is what I have tried...
@echo off
set /p "input=INPUT.csv: "
set /p "output=OUTPUT.csv: "
C:/.../..../.../compute_upid.exe "%input%" "%output%"
Upvotes: 0
Views: 91
Reputation: 1677
If it's only that line, your .bat file will just be
@echo off
C:\path\to\file\compute_upid.exe Input_Name.csv Output_Name.csv
Remember, a batch file is just a list of statements to execute.
Upvotes: 1