Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How can i delete this specific registry key with a bat file ?

Reply
 
Old 08-22-2009   #1 (permalink)


Vista Home Premium 32bit
 
 

How can i delete this specific registry key with a bat file ?

Hy,

how can i delete this specific registry key ?
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Subkey name is RRT-Auto

Path to App is C:\Users\......\Documents\Startmenü Systemprogramme\Windows Tweaks+Zubehör\Zubehör\CaSIR +Anti-Malware Toolkit\RRT.exe

I know i can delete this key in ccleaner Extras-Autostart or msconfig,but is it possible to delete this registry key with a "bat or vbs" file?
I want to clean this key with start cleaner button.

Thanks

My System SpecsSystem Spec
Old 08-22-2009   #2 (permalink)
arno


 
 

Re: How can i delete this specific registry key with a bat file ?

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegDelete "keyname"

See VBScript documentation at
http://www.microsoft.com/downloads/d...6-1C4099D7BBB9

hth
arno

On Sat, 22 Aug 2009 10:33:00 -0500, purien <guest@xxxxxx-email.com>
wrote:
Quote:

>
>Hy,
>
>how can i delete this specific registry key ?
>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
>
>Subkey name is RRT-Auto
>
>Path to App is C:\Users\......\Documents\Startmenü
>Systemprogramme\Windows Tweaks+Zubehör\Zubehör\CaSIR +Anti-Malware
>Toolkit\RRT.exe
>
>I know i can delete this key in ccleaner Extras-Autostart or
>msconfig,but is it possible to delete this registry key with a "bat or
>vbs" file?
>I want to clean this key with start cleaner button.
>
>Thanks
My System SpecsSystem Spec
Old 08-22-2009   #3 (permalink)
Luuk


 
 

Re: How can i delete this specific registry key with a bat file ?

purien schreef:
Quote:

> Hy,
>
> how can i delete this specific registry key ?
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
>
> Subkey name is RRT-Auto
>
> Path to App is C:\Users\......\Documents\Startmenü
> Systemprogramme\Windows Tweaks+Zubehör\Zubehör\CaSIR +Anti-Malware
> Toolkit\RRT.exe
>
> I know i can delete this key in ccleaner Extras-Autostart or
> msconfig,but is it possible to delete this registry key with a "bat or
> vbs" file?
> I want to clean this key with start cleaner button.
>
> Thanks
>
>
REG /?

--
Luuk
My System SpecsSystem Spec
Old 08-23-2009   #4 (permalink)


Vista Home Premium 32bit
 
 

Sorry,

i tried several solutions,but i can`t get it to work.

Reg Delete also did not work.

Any other solutions?

Thanks
My System SpecsSystem Spec
Old 08-23-2009   #5 (permalink)
PaulM


 
 

Re: How can i delete this specific registry key with a bat file ?


Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegDelete
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\namehere"


"purien" <guest@xxxxxx-email.com> wrote in message
news:bd99be61245a859a2e914f0a0ccf8bb0@xxxxxx-gateway.com...
Quote:

>
> Sorry,
>
> i tried several solutions,but i can`t get it to work.
>
> Reg Delete also did not work.
>
> Any other solutions?
>
> Thanks
>
>
> --
> purien
My System SpecsSystem Spec
Old 08-24-2009   #6 (permalink)


Vista Home Premium 32bit
 
 

Thanks Paul M,

but this script also did not work.
My System SpecsSystem Spec
Old 08-24-2009   #7 (permalink)
mayayana


 
 

Re: How can i delete this specific registry key with a bat file ?

> this script also did not work.

* Did you try it this way? (Watch out for wordwrap.)

Dim SH
Set SH = CreateObject("WScript.Shell")
SH.RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\RRT-Auto\"

* Did you download the help file that arno linked,
so that you'll be able to understand the code
you're writing?

* If you're using Vista, are you sure that you have
permission?

It might help if you post what you know and
what you're trying to do. You say it didn't work
but no one knows exactly what didn't work.


My System SpecsSystem Spec
Old 08-24-2009   #8 (permalink)
PaulM


 
 

Re: How can i delete this specific registry key with a bat file ?

Which key are you trying to delete??

Is this XP or Vista?

"purien" <guest@xxxxxx-email.com> wrote in message
news:771055c6966794bca96afc485751c1af@xxxxxx-gateway.com...
Quote:

>
> Thanks Paul M,
>
> but this script also did not work.
>
>
> --
> purien
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Query Registry that contains specific Name and Value PowerShell
Re: working on a specific registry entry PowerShell
I can't delete a specific message - how do I do it? Vista mail
I need help-- Can't delete one specific e-mail ! Vista mail
NTFS/registry permissions for a service-specific SID Vista security


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46