k2o — 2010-07-08T05:04:11-04:00 — #1
Hi to all,
Need Help guys urgent hope you can share your opinion and suggestion.
I need to delete this file name "C:\sample\ xt.exe" but error message still appear. Here is my shell codes ws.RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\Run\C:\sample\ xt.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\ xt.exe"
k2o — 2010-07-08T21:39:01-04:00 — #2
Thanks Bro. this would be such a great help. I am really appreciated your comments/links.
zarin_denatrose — 2010-07-08T06:22:07-04:00 — #3
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.