• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 717
  • Last Modified:

C# code equivalent for STSADM AddTemplate.

I was wondering whether ther was a C# code equivalent for STSADM AddTemplate.

Thank you
0
snazaire
Asked:
snazaire
  • 2
1 Solution
 
snazaireAuthor Commented:
Hi,
I checked this link already and it doesn't answer the question. I need this answer from a programmer.

Thanks
0
 
cubaman_24Commented:
Hello:
You can use the Process class to create a new STSADM  process and pass AddTemplate as parameter.
Hope this helps, best regards.
Process.Start("STSADM .exe", "AddTemplate");

Open in new window

0
 
snazaireAuthor Commented:
That was the actual solution. Thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now