views:

606

answers:

1

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.

+1  A: 

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.

Jay
thanks, i will give it a try..
Anirudh Goel