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"
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.
Bookmarks