Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_discuss thread: WScript


Message #1 by "Madhankumar" <madan@l...> on Thu, 20 Dec 2001 11:57:09
Hi

  I want to add internet shortcuts for all the systems in the

intranet.It should be added in the folder "Favorites" for windows

98,2000 and NT. 

           But iam able to add for only windows 98.

            The coding is given below.







on error resume next

		if OsName="Windows 98" then

			response.write "1 " & Err.Number & "<br>"

			WinPath = "\\"&iRemoteHost&"\c\Windows\Favorites"

			response.write "2 " & Err.Number & "<br>"

			Response.write WinPath&" "&iRemoteHost & "<br>"

			response.write "3 " & Err.Number & "<br>"

         	Set oURL = oShell.CreateShortcut(WinPath&"\d.URL")

         	

         	response.write "4 " & Err.Number & "<br>"

			oURL.TargetPath = "http://d"

			response.write "5 " & Err.Number & "<br>"

			oURL.Save

		end if



  I have set the access permissions for both NT and 2000,but

still i was not able to add the shortcuts in the folder "favorites"

of both NT and 2000 which are of different paths.I have used the

same code as above for the both.

                     Please suggest me an option abt this.

                          With Regards

                               Madhan




  Return to Index