i have windows server 2008r2 with sharepoint 2010 intalled
I got backup of one of my site by performing " Export site or list" option in central administration. then i got a file named xxx.cmp as site backup. I am restoring onto my another website through windows powershell using
" Import-SPWeb -Identity http://mysitecollectionname -Path C:\Abc\xxx.cmp"
but when i run it as a batch file i need to precompile the -Identity option where it has to restore the xxx.cmp file. Is there an option where the batch file should prompt user to enter the site url where it has to restore the xxx.cmp file. Do i need to change anything in the Import SPWeb command for this? Or is there any different command to be followed?
Pls help me out..
Any help wil be appreciated
Thanks in advance