简体   繁体   中英

How to export a file to a specific location using java code

我正在为我的Minecraft Mod制作安装程序,我想使之成为一个实例,当您单击按钮时,它将从所选文件中获取.jar文件,然后将其放置在Minecraft目录中,即“ C:\\ Users” \\\\ AppData \\ Roaming.minecraft \\ mods“您将如何做?

File.copy(Path from,Path to,options);

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