admin管理员组文章数量:1405314
I'm trying to create a portable bat file that can open a ROM inside of an emulator regardless of drive letter.
I could create a shortcut using '"M:\Emulator\melonDS\melonDS.exe" M:\ROMs\Black\black.nds'
, but the letter drive would be randomized depending on what computer I put it into, and I'm not sure how to do this in a batch file.
To remove the emulator from the question, suppose I want to write a batch file that opens a specific text file on a SD card with a random drive letter in Notepad. I could hard-code the path into the batch file:
start "c:\windows\system32" notepad.exe M:\example_file.txt
But this assumes a specific drive letter. How could I make the bat file portable?
本文标签: automationOpen file on removable drive with EXE using BATCH fileStack Overflow
版权声明:本文标题:automation - Open file on removable drive with EXE using BATCH file - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744232771a2596417.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论