JavaScript is required to use Bungie.net

服务提示
明日《命运2》将暂时下线以进行定期维护。点击此处查看最新的命运服务器和更新状态。

离题

浏览大量随机讨论。
9/28/2016 4:13:24 PM
2

Bat file help! If you have knowledge, help!

OK, so I want to run a class file I programmed with java through a bat file. I have the first bat file, WordGame.bat [spoiler]@echo off java WordGame[/spoiler] That works. The second one runs the first one Interview.bat [spoiler]WordGame[/spoiler] That works. This is my folder setup: [spoiler]-Interview ----Bin (folder) -------Scripts (folder) ----------WordGame.java ----------WordGame.class -------WordGame.class -------WordGame.bat -------Interview.bat ----StartInterview.bat [/spoiler] I want the "StartInterview" to run "Interview", but I also want it to work when I send the files to my friend. So I can't do "cd C:\...\Interview\bin" then "Interview", I have to find a way so the bat file reads the file in the separate folder, but doesn't require like a specific path. (If my friend uses it, then it will be in a different path) The reason I don't need a path for the others is because they are all in the same folder. Thanks! Screenshots: https://goo.gl/89EQ1k

发贴语言:

 

遵守游戏礼仪。发送贴子前请花点时间阅读我们的行为准则 取消 编辑 创建火力战队 贴子

查看完整话题
你没有权限查看此内容。
;
preload icon
preload icon
preload icon