Thought I should as this here, as it's not necessarily to do with modding. Does anyone know of any good introductory tutorials to creating exe files for simple functions, such as copying the content of one folder to second, and then the content of a third into the first one? and then to run another .exe file for a game?
It would need to be able to reverse that function as well, basicly running the folder copying in reverse order, so a tutorial involving an element of user input would be good, as the user would need to set first where the folders are, and second which functions (Forward or Reverse) they wanted to run.
It would also have to create the second and third folder, and a fourth to keep them in.
As you can probably tell I have no idea what I am talking about as I am pulling these terms out of the air. But you are knowledgeable and wise, so I am sure you have some resources at your disposal.
Thanks, -Lexi
Exe files
Moderator: Moderators
-
- Sergeant Major
- Posts: 230
- Joined: Sat Jun 20, 2015 7:44 am
- Projects :: WARFRONT + Various Mods for Other Games
- xbox live or psn: AlexisVixie
- Location: Glasgow, tumblr.
- Teancum
- Jedi Admin
- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Exe files
What you want to create are batch (.bat) files. These are files that can be created/edited with a text editor, but run like an .exe file. They can do most of what you're talking about. They're too complex to get into here, but there are lots of tutorials on the web.
- Anakin
- Master of the Force
- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: Exe files
Or a cmd file. It's the same as batch files
-
- Sergeant Major
- Posts: 230
- Joined: Sat Jun 20, 2015 7:44 am
- Projects :: WARFRONT + Various Mods for Other Games
- xbox live or psn: AlexisVixie
- Location: Glasgow, tumblr.
Re: Exe files
Thank you both, I've really no idea what I am doing with coding, but I think that I can manage this.
I would like to ask would asking a user to paste the location of their addon folder, as well as the location of the two folders used to hold the mod's own folders and the thing already in addon folder, in a config file be too complex?
I would like to ask would asking a user to paste the location of their addon folder, as well as the location of the two folders used to hold the mod's own folders and the thing already in addon folder, in a config file be too complex?
- Anakin
- Master of the Force
- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: Exe files
Not sure what your exe should actually do when it's done, but why don't you say to the user he should put the bat file in the BF2 directory. That way you needn't ask for that location. Next you search for all files/folders and in that list you search for your folders. Save the path/names in a variable and copy them the way you like.