Stsadm.exe help???

S

Sameer

I tried to use the stsadm.exe to add a template for sharepoint but i always
recieve the same error.

I created a stp file called test.stp and the title is also test.

now when i type the following:

stsadm.exe -o addtemplate -test -test

it gives me an error saying "command line error"

do i have to save the test.stp file in a specific folder and then type this
command.

Any sort of help will be appreciated.

Thnx in advance.
Regards
 
R

Ross Andren

Sameer

Try putting quotations around the file name and title, and also using
test.stp rather than just 'test'
 
S

Sameer

Thnx for the reply, but it still doesnt work

I tried all the possible matches:

stsadmn.exe -o addtemplate -'test.stp' -'test'

stsadmn.exe -o addtemplate -'test.stp' -test

stsadmn.exe -o addtemplate -test.stp -test

stsadmn.exe -o addtemplate -test -test

stsadmn.exe -o addtemplate -test -[test]

Any one has some other command that i missed out
 
G

Grant 702

Hi Sameer

Try:

stsadmn.exe -o addtemplate -filename "c:\test.stp" -title "MyTitle"

That should work assuming the template was created successfully in the first
place. The filename should be the full path of where your template is stored
on the drive and the title is what will show up in the site template
selection dropdown.

Hope that helps.

--
Grant 702 - MCSD


Sameer said:
Thnx for the reply, but it still doesnt work

I tried all the possible matches:

stsadmn.exe -o addtemplate -'test.stp' -'test'

stsadmn.exe -o addtemplate -'test.stp' -test

stsadmn.exe -o addtemplate -test.stp -test

stsadmn.exe -o addtemplate -test -test

stsadmn.exe -o addtemplate -test -[test]

Any one has some other command that i missed out

Ross Andren said:
Sameer

Try putting quotations around the file name and title, and also using
test.stp rather than just 'test'

--
Hope this Helps!

Ross Andren
http://www.pcubed.com
 
R

Ross Andren

Sorry, not sure I was clear. Try double quotes.

--
Hope this Helps!

Ross Andren
http://www.pcubed.com
Sameer said:
Thnx for the reply, but it still doesnt work

I tried all the possible matches:

stsadmn.exe -o addtemplate -'test.stp' -'test'

stsadmn.exe -o addtemplate -'test.stp' -test

stsadmn.exe -o addtemplate -test.stp -test

stsadmn.exe -o addtemplate -test -test

stsadmn.exe -o addtemplate -test -[test]

Any one has some other command that i missed out

Ross Andren said:
Sameer

Try putting quotations around the file name and title, and also using
test.stp rather than just 'test'

--
Hope this Helps!

Ross Andren
http://www.pcubed.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top