Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iexpress extract files then run script referring extracted file

I was trying to deploy my project with IExpress. I have the following scenario. I want to extract some files to a location preferably c:\program files\. Then after it copies all the files i want it to run a .cmd file (which is a script). the script is also added in the project itself and it would refer to a file which is copied by IExpress. Now how can access the path on which the file was extracted. So that i can access it in my script.

like image 279
Anirudh Goel Avatar asked Mar 20 '09 10:03

Anirudh Goel


1 Answers

If the script is in the project itself, thus being extracted in the same directory when you send your files to, it should start in the same directory.

Test it easy, make a cmd like this:

cmdsetup.cmd:

@echo Source path: %~dp0 >> %temp%\%~n0.log

Put this in your package and when it's done, go check the %temp% directory, locate the cmdsetup.log file and look in it. This should be the path where your files are.
If so, go from there. If I got this wrong, come back and comment, also amend your question to make it clearer.

I hope this helps.

P.s.: Voted for the question as I don't see why the negative vote was given.

like image 172
Jay Avatar answered Oct 14 '22 05:10

Jay