If the script is in the project itself, so it is extracted in the same directory when sending the files, it should start in the same directory.
Test it easily, create cmd as follows:
cmdsetup.cmd:
@echo Starting path:% ~ dp0 →% temp% \% ~ n0.log
Put this in your package and when it is done, go to the% temp% directory, find the cmdsetup.log file and see it. This should be the path where your files are.
If so, from there. If I am wrong, come back and comment, also correct your question to make it clearer.
Hope this helps.
Ps: I voted for the question, because I do not understand why a negative vote was given.
Jay
source share