|Hi, i tried searching for hours and have seen this bought up a few times on this forum however the responses don't exactly help me, as for what i need done, or if they do don't explain how to implement them to my needs.|
Anyway, i need the following done:
Firstly, i will request the user to input the wanted file name with set /p Mapname=Enter name here:
Then i will need to implement it into this file:
BOLD objects are reference
<Archive Name="MyTestMap" DefaultCompression="Buffer" DefaultRoot="ROOT" ArchiveFile="Mods\%Mymap%.sga">
<IncludeRule Extensions="dds,camp,info,scar,scenario,scenariomarker,xml,api,scar,lua,nis,atmospherepreset" MinSize="-1" MaxSize="-1" />
<CompressionRule Extensions="dds,camp,info,scar,scenario,scenariomarker,xml,api,scar,lua,nis,atmospherepreset" MinSize="-1" MaxSize="-1" CompressionType="Stream" />
<TOC Name="Art" Alias="DATA" RelativeRoot="Data\" />
<Directory Name="Data\MAPS" />
The ROOT section has to be replaced with a path no matter where they installed the required app.
Default is "C:\Program Files\Steam\SteamApps\common\BnZ\
So Root, or whatever is already inbetween the two " " needs to be replaced with the root directory.
I request this because i always see apps or batch files that seem to know where a program is installed no matter where it is. i.e Default is C:\Program files\Hello , however the user really installed it on D:\Files\Help\Coding
%Mymap% needs to be replaced with the Users input
However, assuming something different is there i need it to replace once again what ever is inside the quote marks " "
But only replace that part, and ensure the .sga is still there.
Hope i made sense.
Hope what needs to be done can be done.
Prior thanks for any help. ill keep my eyes peeled.