Tuesday, 27 August 2013

How can I read the current directory from a 7-zip SFX, to copy one file there after installing to another one?

How can I read the current directory from a 7-zip SFX, to copy one file
there after installing to another one?

I'm creating an application that needs to be copied at a certain fixed
directory but one file needs to be copied at the directory from which the
SFX was run.
I was not able to do this. I've created with a .bat and using FOR to read
a file I wrote to by calling to SET from the SFX execution. But it's
always related to the install directory.
So, to be clear, what I need to do is:
Copy all files from the SFX to a directory
Move one of these files to the directory from which the SFX was executed
Any ideas?

No comments:

Post a Comment