sharepoint - How do I know the default batch file directory? -


I am creating a batch file for SharePoint deployment. I will batch solution installation and configuration, create a web application and create Restore the .dat file to a web app.

Instead of the hard code solution path and .dat , I want to know whether this root Therefore, if I move this folder elsewhere, then I will not need to update the path.

Is there any word in the batch command, which can say where I am (batch file directory)? Batch Script Sample:

  @SET STSADM = "c: \ Program Files \ General Files \ Microsoft Shared \ Web Server Extensions \ 12 \ bin \ stsadm "Echo Copy Solution Files ...% STSADM% - o Compilation -Filename SmilingGot. SharePoint Web Purses RSS.WSSP% STSADM% -o deplusolution -name SmileGot. SharePoint Webports RSS.space-mammaidet -lovegac derivatives -latentureral% STSADM% -o Employment -Filennum ReturnoffsSmartPartive1_3.vsp% STSADM% -o deploysolution -name ReturnoffsSmartPartv 1_3.wsp -immediate -allowgacdeployment -allcontenturls Learning pitch application making echo ...% STSADM % -o unextendvs -url http: // server: 70% STSADM% -o restoration -URL http: // server: 70 -filename 2010.02.03.dat -overwrite IISRESET PAUSE  

Thank you.

As far as I understand, % ~ p0 your What are you looking for For example, if you run

  resonance% ~ p0 pause  

and it will run with c: \ temp , this output "C: \ temp".

Edit: Actually explains this idea.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -