Hello I took on to a little side project today
It's a program that copies files from one folder to another to simplify playing a hotSeat game via dropbox
Now I need to copy a file called Medieval2.preference.cfg
public void setMultiplayer() throws Exception{
Path origin = Paths.get(System.getProperty("user.home"), "Dropbox", "MTWMultiplayer","propertyFiles","multi.cfg");
Path destination = Paths.get("C:\\Program Files (x86)\\Steam\\steamapps\\common\\Medieval II Total War\\medieval2.preference.cfg");
Files.copy(origin, destination, REPLACE_EXISTING);
}
public void setSingleplayer() throws Exception{
Path origin = Paths.get(System.getProperty("user.home"), "Dropbox", "MTWMultiplayer","propertyFiles","single.cfg");
Path destination = Paths.get("C:\\Program Files (x86)\\Steam\\steamapps\\common\\Medieval II Total War\\medieval2.preference.cfg");
Files.copy(origin, destination, REPLACE_EXISTING);
}
this code doesn't work and I've got a feeling it's because of the double extension in medieval2.preference.cfg
Is there a way to solve this problem? Thanks in advance