Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wscript.shell

Status
Not open for further replies.

nam4520

Programmer
Jan 7, 2003
14
US
Hey People,
Does anyone know why i'm getting this error. I know the root is correct. I'm using an IIS server and my platform is windows 2000 professional. Please help.

Error Type:
WshShell.RegWrite (0x80070005)
Invalid root in registry key "HKEY_CURRENT_USER\Software\ADOBE\Acrobat PDFwriter\PDFFileName".
/dll.asp, line 7

thanks in advance
 
this is the code that i'm trying to execute

<%
dim WshShell
Set WshShell = Server.CreateObject(&quot;WScript.Shell&quot;)
WshShell.RegWrite &quot;HKEY_CURRENT_USER\Software\ADOBE\Acrobat PDFwriter\PDFFileName&quot;, &quot;c:\pdfwriter\test.pdf&quot;, &quot;REG_SZ&quot;
Response.Write &quot;done&quot;
%>

I want &quot;PDFFileName&quot; to go under the &quot;Acrobat PDFWriter&quot; key, under the column, &quot;Name&quot;. &quot;c:\pdfwriter\test.pdf&quot; should then go under the column, &quot;Data&quot;. REG_SZ is the type. Thanks
 
I'm not sure you can use WSH functionality from ASP like that. If you place this in a .vbs file it will work perfectly, which leads me to believe that either you can't do this from the ASP page or the formatting will need to be different, ie you need to look for an ASP specific example.

-Tarwn
________________________________________________________________________________
Sometimes it is how you ask the question: faq333-2924
Many ASP questions have already been answered, please check faq333-3048 and use the search tool before posting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top