i´m NOT good at commandline batches (the language in windows commandline prompt)
What i need:
A batch Copyandziplibrary.cmd which i place on desktop. I´ll drop a filename.jar via D&D to this batch.
So the 1. Parameter will be the path and filename of the jar file i dropped.
To give it a name here i call it ScratchView.jar here.
The filename i drop is (in this example): E:\Basic4android3\Projekte\Libs\ScratchView\ScratchView.jar
What the batch should do then:
- Extract the filename of the dropped file and remember it´s name for later use ($filename). the variable should hold "ScratchView" then (based on the dropped file)
- Extract the path of the dropped file and remember it for later use ($patch). the variable should hold "E:\Basic4android3\Projekte\Libs\ScratchView\" then (based on the dropped file)
- Copy [filename].jar from additional libraries folder (path can be a fixed variable in batch i need to setup once) to the path of the dropped jar overwriting the existing jar there.
- Copy [filename].xml from additional libraries folder (path can be a fixed variable in batch i need to setup once) to the path of the dropped jar overwriting the existing xml there.
- Read the xml and get the version out of it. It is in the line
- ZIP the two copied files to a new zipfile with the name $filenameV$version.zip with 7zip (C:\Program Files\7-Zip\7zG.exe). The zip should be placed in the folder of the dropped jar. -> $path
My offer: $15
What i need:
A batch Copyandziplibrary.cmd which i place on desktop. I´ll drop a filename.jar via D&D to this batch.
So the 1. Parameter will be the path and filename of the jar file i dropped.
To give it a name here i call it ScratchView.jar here.
The filename i drop is (in this example): E:\Basic4android3\Projekte\Libs\ScratchView\ScratchView.jar
What the batch should do then:
- Extract the filename of the dropped file and remember it´s name for later use ($filename). the variable should hold "ScratchView" then (based on the dropped file)
- Extract the path of the dropped file and remember it for later use ($patch). the variable should hold "E:\Basic4android3\Projekte\Libs\ScratchView\" then (based on the dropped file)
- Copy [filename].jar from additional libraries folder (path can be a fixed variable in batch i need to setup once) to the path of the dropped jar overwriting the existing jar there.
- Copy [filename].xml from additional libraries folder (path can be a fixed variable in batch i need to setup once) to the path of the dropped jar overwriting the existing xml there.
- Read the xml and get the version out of it. It is in the line
in the xml. the version should be stored as variable fo later use in the batch ($version)<version>1.2</version>
- ZIP the two copied files to a new zipfile with the name $filenameV$version.zip with 7zip (C:\Program Files\7-Zip\7zG.exe). The zip should be placed in the folder of the dropped jar. -> $path
My offer: $15