简体   繁体   中英

Execute txt file into an exe file to be executed by a windows batch

The title is a bit confusing, so I'll explain better here. I need to open an exe file with some launch options contained in the txt file, the most simple solution is to drag the txt file above the exe, and it'll launch. My question is, is there a method to do this by a batch file?

What i did without success:

START program.exe
START launchoptions.txt
...(Things that aren't influencing)

the most simple solution is to drag the txt file above the exe, and it'll launch

When you drag-drop a file onto an application in Explorer it does nothing more than to pass the file name as argument to the program, therefore your solution is simply:

START program.exe launchoptions.txt
...(Things that aren't influencing)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM