SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ws.RegDelete Issue/Problem

    Hi to all,
    Need Help guys urgent hope you can share your opinion and suggestion.
    I need to delete this file name "C:\sample\txt.exe" but error message still appear. Here is my shell codes ws.RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\Run\C:\sample\txt.exe")

    here is the error message:"OLE IDispatch exception code 0 from WshShell.RegDelete: Invalid root in registry key" "HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\Run\C:\Sample\txt.exe"

  2. #2
    SitePoint Addict Zarin Denatrose's Avatar
    Join Date
    Jan 2009
    Location
    Surrey BC, Canada
    Posts
    309
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem is that it can't be done with Wshell.RegDelete(). I looked around and found this: http://www.ureader.com/msg/1677274.aspx
    It's not an ideal solution, but it should work.

  3. #3
    SitePoint Member
    Join Date
    Apr 2010
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Bro. this would be such a great help. I am really appreciated your comments/links.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •